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 =========================================================================*/
28 #ifndef vtkQtDebugLeaksView_h
29 #define vtkQtDebugLeaksView_h
30 
31 #include "vtkGUISupportQtModule.h" // For export macro
32 #include <QWidget>
33 
34 class QModelIndex;
35 class vtkObjectBase;
37 
39 {
40  Q_OBJECT
41 
42 public:
43 
44  vtkQtDebugLeaksView(QWidget *p=0);
45  virtual ~vtkQtDebugLeaksView();
46 
47  vtkQtDebugLeaksModel* model();
48 
50  bool filterEnabled() const;
51 
53  void setFilterEnabled(bool value);
54 
56  QString filterText() const;
57 
59  void setFilterText(const QString& text);
60 
61 protected:
62 
63  virtual void onObjectDoubleClicked(vtkObjectBase* object);
64  virtual void onClassNameDoubleClicked(const QString& className);
65 
66 protected slots:
67 
68  void onCurrentRowChanged(const QModelIndex& current);
69  void onRowDoubleClicked(const QModelIndex&);
70  void onFilterTextChanged(const QString& filterText);
71  void onFilterToggled();
72  void onFilterHelp();
73 
74 private:
75 
76  class qInternal;
77  qInternal* Internal;
78 
79  Q_DISABLE_COPY(vtkQtDebugLeaksView);
80 
81 };
82 
83 #endif
view class to display contents of vtkQtDebugLeaksModel
model class that observes the vtkDebugLeaks singleton
#define VTKGUISUPPORTQT_EXPORT
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59