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
35class QModelIndex;
36class vtkObjectBase;
38
39class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
40{
41 Q_OBJECT
42
43public:
44
45 vtkQtDebugLeaksView(QWidget *p=0);
47
49
53 bool filterEnabled() const;
54
59
63 QString filterText() const;
64
68 void setFilterText(const QString& text);
69
70protected:
71
72 virtual void onObjectDoubleClicked(vtkObjectBase* object);
73 virtual void onClassNameDoubleClicked(const QString& className);
74
75protected slots:
76
77 void onCurrentRowChanged(const QModelIndex& current);
78 void onRowDoubleClicked(const QModelIndex&);
79 void onFilterTextChanged(const QString& filterText);
82
83private:
84
85 class qInternal;
86 qInternal* Internal;
87
88 Q_DISABLE_COPY(vtkQtDebugLeaksView);
89
90};
91
92#endif
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
model class that observes the vtkDebugLeaks singleton
view class to display contents of vtkQtDebugLeaksModel
vtkQtDebugLeaksModel * model()
void onFilterTextChanged(const QString &filterText)
void setFilterText(const QString &text)
Sets the current text in the regexp filter line edit.
virtual void onObjectDoubleClicked(vtkObjectBase *object)
vtkQtDebugLeaksView(QWidget *p=0)
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)
virtual ~vtkQtDebugLeaksView()
void onRowDoubleClicked(const QModelIndex &)
@ value
Definition: vtkX3D.h:220