VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtDebugLeaksView.h 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 =========================================================================*/ 00028 #ifndef __vtkQtDebugLeaksView_h 00029 #define __vtkQtDebugLeaksView_h 00030 00031 #include "QVTKWin32Header.h" 00032 #include <QWidget> 00033 00034 class QModelIndex; 00035 class vtkObjectBase; 00036 class vtkQtDebugLeaksModel; 00037 00038 class QVTK_EXPORT vtkQtDebugLeaksView : public QWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00044 vtkQtDebugLeaksView(QWidget *p=0); 00045 virtual ~vtkQtDebugLeaksView(); 00046 00047 vtkQtDebugLeaksModel* model(); 00048 00050 bool filterEnabled() const; 00051 00053 void setFilterEnabled(bool value); 00054 00056 QString filterText() const; 00057 00059 void setFilterText(const QString& text); 00060 00061 protected: 00062 00063 virtual void onObjectDoubleClicked(vtkObjectBase* object); 00064 virtual void onClassNameDoubleClicked(const QString& className); 00065 00066 protected slots: 00067 00068 void onCurrentRowChanged(const QModelIndex& current); 00069 void onRowDoubleClicked(const QModelIndex&); 00070 void onFilterTextChanged(const QString& filterText); 00071 void onFilterToggled(); 00072 void onFilterHelp(); 00073 00074 private: 00075 00076 class qInternal; 00077 qInternal* Internal; 00078 00079 Q_DISABLE_COPY(vtkQtDebugLeaksView); 00080 00081 }; 00082 00083 #endif