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);
46 
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);
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
abstract base class for most VTK objects
Definition: vtkObjectBase.h:74
model class that observes the vtkDebugLeaks singleton
view class to display contents of vtkQtDebugLeaksModel
~vtkQtDebugLeaksView() override
void onFilterTextChanged(const QString &filterText)
vtkQtDebugLeaksView(QWidget *p=nullptr)
vtkQtDebugLeaksModel * model()
void setFilterText(const QString &text)
Sets the current text in the regexp filter line edit.
virtual void onObjectDoubleClicked(vtkObjectBase *object)
void setFilterEnabled(bool value)
Enabled or disables the regexp filter.
virtual void onClassNameDoubleClicked(const QString &className)
bool filterEnabled() const
Returns whether or not the regexp filter is enabled.
QString filterText() const
Returns the regexp filter line edit's current text.
void onCurrentRowChanged(const QModelIndex &current)
void onRowDoubleClicked(const QModelIndex &)
@ value
Definition: vtkX3D.h:226