VTK
dox/GUISupport/Qt/vtkQtDebugLeaksView.h
Go to the documentation of this file.
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 "vtkGUISupportQtModule.h" // For export macro
00032 #include "QVTKWin32Header.h"
00033 #include <QWidget>
00034 
00035 class QModelIndex;
00036 class vtkObjectBase;
00037 class vtkQtDebugLeaksModel;
00038 
00039 class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
00040 {
00041   Q_OBJECT
00042 
00043 public:
00044 
00045   vtkQtDebugLeaksView(QWidget *p=0);
00046   virtual ~vtkQtDebugLeaksView();
00047 
00048   vtkQtDebugLeaksModel* model();
00049 
00051   bool filterEnabled() const;
00052 
00054   void setFilterEnabled(bool value);
00055 
00057   QString filterText() const;
00058 
00060   void setFilterText(const QString& text);
00061 
00062 protected:
00063 
00064   virtual void onObjectDoubleClicked(vtkObjectBase* object);
00065   virtual void onClassNameDoubleClicked(const QString& className);
00066 
00067 protected slots:
00068 
00069   void onCurrentRowChanged(const QModelIndex& current);
00070   void onRowDoubleClicked(const QModelIndex&);
00071   void onFilterTextChanged(const QString& filterText);
00072   void onFilterToggled();
00073   void onFilterHelp();
00074 
00075 private:
00076 
00077   class qInternal;
00078   qInternal* Internal;
00079 
00080   Q_DISABLE_COPY(vtkQtDebugLeaksView);
00081 
00082 };
00083 
00084 #endif