00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtTableView.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00034 #ifndef __vtkQtTableView_h 00035 #define __vtkQtTableView_h 00036 00037 #include "QVTKWin32Header.h" 00038 #include "vtkQtItemView.h" 00039 00040 class QTableView; 00041 class vtkQtTableModelAdapter; 00042 00043 class QVTK_EXPORT vtkQtTableView : public vtkQtItemView 00044 { 00045 public: 00046 static vtkQtTableView *New(); 00047 vtkTypeRevisionMacro(vtkQtTableView, vtkQtItemView); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 virtual void SetItemView(QAbstractItemView*); 00052 00054 virtual void SetItemModelAdapter(vtkQtAbstractModelAdapter* qma); 00055 00057 virtual vtkTable* GetVTKTable(); 00058 00059 protected: 00060 vtkQtTableView(); 00061 ~vtkQtTableView(); 00062 00063 private: 00064 vtkQtTableView(const vtkQtTableView&); // Not implemented. 00065 void operator=(const vtkQtTableView&); // Not implemented. 00066 00067 QTableView* TableViewPtr; 00068 vtkQtTableModelAdapter* TableAdapterPtr; 00069 00070 bool IOwnTableView; 00071 bool IOwnTableAdapter; 00072 }; 00073 00074 #endif