VTK  9.3.20240424
vtkQtDebugLeaksView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17#ifndef vtkQtDebugLeaksView_h
18#define vtkQtDebugLeaksView_h
19
20#include "vtkGUISupportQtModule.h" // For export macro
21#include <QWidget>
22
23class QModelIndex;
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkObjectBase;
28
29class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
30{
31 Q_OBJECT
32
33public:
34 vtkQtDebugLeaksView(QWidget* p = nullptr);
36
38
42 bool filterEnabled() const;
43
47 void setFilterEnabled(bool value);
48
52 QString filterText() const;
53
57 void setFilterText(const QString& text);
58
59protected:
60 virtual void onObjectDoubleClicked(vtkObjectBase* object);
61 virtual void onClassNameDoubleClicked(const QString& className);
62
63protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
64
65 void onCurrentRowChanged(const QModelIndex& current);
66 void onRowDoubleClicked(const QModelIndex&);
67 void onFilterTextChanged(const QString& filterText);
70
71private:
72 class qInternal;
73 qInternal* Internal;
74
75 Q_DISABLE_COPY(vtkQtDebugLeaksView);
76};
77
78VTK_ABI_NAMESPACE_END
79#endif
80// VTK-HeaderTest-Exclude: vtkQtDebugLeaksView.h
abstract base class for most VTK objects
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 &)