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=nullptr);
47 
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);
81  void onFilterHelp();
82 
83 private:
84 
85  class qInternal;
86  qInternal* Internal;
87 
88  Q_DISABLE_COPY(vtkQtDebugLeaksView);
89 
90 };
91 
92 #endif
vtkQtDebugLeaksView::onObjectDoubleClicked
virtual void onObjectDoubleClicked(vtkObjectBase *object)
vtkQtDebugLeaksModel
model class that observes the vtkDebugLeaks singleton
Definition: vtkQtDebugLeaksModel.h:37
vtkQtDebugLeaksView::onFilterToggled
void onFilterToggled()
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkQtDebugLeaksView
view class to display contents of vtkQtDebugLeaksModel
Definition: vtkQtDebugLeaksView.h:40
vtkQtDebugLeaksView::onClassNameDoubleClicked
virtual void onClassNameDoubleClicked(const QString &className)
vtkQtDebugLeaksView::filterText
QString filterText() const
Returns the regexp filter line edit's current text.
vtkQtDebugLeaksView::onCurrentRowChanged
void onCurrentRowChanged(const QModelIndex &current)
vtkQtDebugLeaksView::setFilterText
void setFilterText(const QString &text)
Sets the current text in the regexp filter line edit.
vtkQtDebugLeaksView::onFilterTextChanged
void onFilterTextChanged(const QString &filterText)
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
vtkQtDebugLeaksView::model
vtkQtDebugLeaksModel * model()
vtkQtDebugLeaksView::onRowDoubleClicked
void onRowDoubleClicked(const QModelIndex &)
vtkQtDebugLeaksView::~vtkQtDebugLeaksView
~vtkQtDebugLeaksView() override
vtkQtDebugLeaksView::onFilterHelp
void onFilterHelp()
vtkQtDebugLeaksView::vtkQtDebugLeaksView
vtkQtDebugLeaksView(QWidget *p=nullptr)
vtkQtDebugLeaksView::filterEnabled
bool filterEnabled() const
Returns whether or not the regexp filter is enabled.
vtkQtDebugLeaksView::setFilterEnabled
void setFilterEnabled(bool value)
Enabled or disables the regexp filter.