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 #include "vtkConfigure.h" //for VTK_OVERRIDE
36 
37 class QModelIndex;
38 class vtkObjectBase;
40 
41 class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
42 {
43  Q_OBJECT
44 
45 public:
46 
47  vtkQtDebugLeaksView(QWidget *p=0);
48  ~vtkQtDebugLeaksView() VTK_OVERRIDE;
49 
50  vtkQtDebugLeaksModel* model();
51 
55  bool filterEnabled() const;
56 
60  void setFilterEnabled(bool value);
61 
65  QString filterText() const;
66 
70  void setFilterText(const QString& text);
71 
72 protected:
73 
74  virtual void onObjectDoubleClicked(vtkObjectBase* object);
75  virtual void onClassNameDoubleClicked(const QString& className);
76 
77 protected slots:
78 
79  void onCurrentRowChanged(const QModelIndex& current);
80  void onRowDoubleClicked(const QModelIndex&);
81  void onFilterTextChanged(const QString& filterText);
82  void onFilterToggled();
83  void onFilterHelp();
84 
85 private:
86 
87  class qInternal;
88  qInternal* Internal;
89 
90  Q_DISABLE_COPY(vtkQtDebugLeaksView);
91 
92 };
93 
94 #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:68