VTK  9.2.6
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  vtkQtDebugLeaksView(QWidget* p = nullptr);
45  ~vtkQtDebugLeaksView() 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  virtual void onObjectDoubleClicked(vtkObjectBase* object);
71  virtual void onClassNameDoubleClicked(const QString& className);
72 
73 protected Q_SLOTS:
74 
75  void onCurrentRowChanged(const QModelIndex& current);
76  void onRowDoubleClicked(const QModelIndex&);
77  void onFilterTextChanged(const QString& filterText);
78  void onFilterToggled();
79  void onFilterHelp();
80 
81 private:
82  class qInternal;
83  qInternal* Internal;
84 
85  Q_DISABLE_COPY(vtkQtDebugLeaksView);
86 };
87 
88 #endif
89 // VTK-HeaderTest-Exclude: vtkQtDebugLeaksView.h
view class to display contents of vtkQtDebugLeaksModel
model class that observes the vtkDebugLeaks singleton
abstract base class for most VTK objects
Definition: vtkObjectBase.h:73