VTK  9.1.0
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
32class QModelIndex;
33class vtkObjectBase;
35
36class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
37{
38 Q_OBJECT
39
40public:
41 vtkQtDebugLeaksView(QWidget* p = nullptr);
43
45
49 bool filterEnabled() const;
50
55
59 QString filterText() const;
60
64 void setFilterText(const QString& text);
65
66protected:
67 virtual void onObjectDoubleClicked(vtkObjectBase* object);
68 virtual void onClassNameDoubleClicked(const QString& className);
69
70protected Q_SLOTS:
71
72 void onCurrentRowChanged(const QModelIndex& current);
73 void onRowDoubleClicked(const QModelIndex&);
74 void onFilterTextChanged(const QString& filterText);
77
78private:
79 class qInternal;
80 qInternal* Internal;
81
82 Q_DISABLE_COPY(vtkQtDebugLeaksView);
83};
84
85#endif
86// VTK-HeaderTest-Exclude: vtkQtDebugLeaksView.h
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
model class that observes the vtkDebugLeaks singleton
view class to display contents of vtkQtDebugLeaksModel
~vtkQtDebugLeaksView() override
vtkQtDebugLeaksModel * model()
void onFilterTextChanged(const QString &filterText)
vtkQtDebugLeaksView(QWidget *p=nullptr)
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