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 =========================================================================*/
26 #ifndef vtkQtDebugLeaksView_h
27 #define vtkQtDebugLeaksView_h
28 
29 #include "vtkGUISupportQtModule.h" // For export macro
30 #include <QWidget>
31 
32 #include "vtkConfigure.h" //for VTK_OVERRIDE
33 
34 class QModelIndex;
35 class vtkObjectBase;
37 
38 class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
39 {
40  Q_OBJECT
41 
42 public:
43 
44  vtkQtDebugLeaksView(QWidget *p=0);
45  ~vtkQtDebugLeaksView() VTK_OVERRIDE;
46 
47  vtkQtDebugLeaksModel* model();
48 
52  bool filterEnabled() const;
53 
57  void setFilterEnabled(bool value);
58 
62  QString filterText() const;
63 
67  void setFilterText(const QString& text);
68 
69 protected:
70 
71  virtual void onObjectDoubleClicked(vtkObjectBase* object);
72  virtual void onClassNameDoubleClicked(const QString& className);
73 
74 protected slots:
75 
76  void onCurrentRowChanged(const QModelIndex& current);
77  void onRowDoubleClicked(const QModelIndex&);
78  void onFilterTextChanged(const QString& filterText);
79  void onFilterToggled();
80  void onFilterHelp();
81 
82 private:
83 
84  class qInternal;
85  qInternal* Internal;
86 
87  Q_DISABLE_COPY(vtkQtDebugLeaksView);
88 
89 };
90 
91 #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:62