VTK
vtkQtDebugLeaksView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtDebugLeaksView.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkQtDebugLeaksView_h
30 #define vtkQtDebugLeaksView_h
31 
32 #include "vtkGUISupportQtModule.h" // For export macro
33 #include <QWidget>
34 
35 class QModelIndex;
36 class vtkObjectBase;
38 
39 class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
44 
45  vtkQtDebugLeaksView(QWidget *p=0);
46  virtual ~vtkQtDebugLeaksView();
47 
48  vtkQtDebugLeaksModel* model();
49 
53  bool filterEnabled() const;
54 
58  void setFilterEnabled(bool value);
59 
63  QString filterText() const;
64 
68  void setFilterText(const QString& text);
69 
70 protected:
71 
72  virtual void onObjectDoubleClicked(vtkObjectBase* object);
73  virtual void onClassNameDoubleClicked(const QString& className);
74 
75 protected slots:
76 
77  void onCurrentRowChanged(const QModelIndex& current);
78  void onRowDoubleClicked(const QModelIndex&);
79  void onFilterTextChanged(const QString& filterText);
80  void onFilterToggled();
81  void onFilterHelp();
82 
83 private:
84 
85  class qInternal;
86  qInternal* Internal;
87 
88  Q_DISABLE_COPY(vtkQtDebugLeaksView);
89 
90 };
91 
92 #endif
view class to display contents of vtkQtDebugLeaksModel
model class that observes the vtkDebugLeaks singleton
abstract base class for most VTK objects
Definition: vtkObjectBase.h:65