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 class vtkTable; 00043 00044 class QVTK_EXPORT vtkQtTableView : public vtkQtItemView 00045 { 00046 public: 00047 static vtkQtTableView *New(); 00048 vtkTypeRevisionMacro(vtkQtTableView, vtkQtItemView); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 virtual void SetItemView(QAbstractItemView*); 00053 00055 virtual void SetItemModelAdapter(vtkQtAbstractModelAdapter* qma); 00056 00058 virtual vtkTable* GetVTKTable(); 00059 00060 protected: 00061 vtkQtTableView(); 00062 ~vtkQtTableView(); 00063 00064 private: 00065 vtkQtTableView(const vtkQtTableView&); // Not implemented. 00066 void operator=(const vtkQtTableView&); // Not implemented. 00067 00068 QTableView* TableViewPtr; 00069 vtkQtTableModelAdapter* TableAdapterPtr; 00070 00071 bool IOwnTableView; 00072 bool IOwnTableAdapter; 00073 }; 00074 00075 #endif