VTK  9.3.20240328
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 
23 class QModelIndex;
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkObjectBase;
28 
29 class VTKGUISUPPORTQT_EXPORT vtkQtDebugLeaksView : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
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 
59 protected:
60  virtual void onObjectDoubleClicked(vtkObjectBase* object);
61  virtual void onClassNameDoubleClicked(const QString& className);
62 
63 protected 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);
69  void onFilterHelp();
70 
71 private:
72  class qInternal;
73  qInternal* Internal;
74 
75  Q_DISABLE_COPY(vtkQtDebugLeaksView);
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
80 // VTK-HeaderTest-Exclude: vtkQtDebugLeaksView.h
abstract base class for most VTK objects
Definition: vtkObjectBase.h:83
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:220