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