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 
40 {
41  Q_OBJECT
42 
43 public:
44 
45  vtkQtDebugLeaksView(QWidget *p=0);
47 
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);
73  void onFilterHelp();
74 
75 private:
76 
77  class qInternal;
78  qInternal* Internal;
79 
80  Q_DISABLE_COPY(vtkQtDebugLeaksView);
81 
82 };
83 
84 #endif
vtkGUISupportQtModule.h
vtkQtDebugLeaksView::onObjectDoubleClicked
virtual void onObjectDoubleClicked(vtkObjectBase *object)
vtkQtDebugLeaksModel
model class that observes the vtkDebugLeaks singleton
Definition: vtkQtDebugLeaksModel.h:37
vtkQtDebugLeaksView::onFilterToggled
void onFilterToggled()
vtkQtDebugLeaksView
view class to display contents of vtkQtDebugLeaksModel
Definition: vtkQtDebugLeaksView.h:40
vtkQtDebugLeaksView::~vtkQtDebugLeaksView
virtual ~vtkQtDebugLeaksView()
vtkQtDebugLeaksView::onClassNameDoubleClicked
virtual void onClassNameDoubleClicked(const QString &className)
vtkQtDebugLeaksView::filterText
QString filterText() const
vtkQtDebugLeaksView::onCurrentRowChanged
void onCurrentRowChanged(const QModelIndex &current)
vtkQtDebugLeaksView::setFilterText
void setFilterText(const QString &text)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkQtDebugLeaksView::onFilterTextChanged
void onFilterTextChanged(const QString &filterText)
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:60
vtkQtDebugLeaksView::model
vtkQtDebugLeaksModel * model()
VTKGUISUPPORTQT_EXPORT
#define VTKGUISUPPORTQT_EXPORT
Definition: vtkGUISupportQtModule.h:15
vtkQtDebugLeaksView::onRowDoubleClicked
void onRowDoubleClicked(const QModelIndex &)
vtkQtDebugLeaksView::vtkQtDebugLeaksView
vtkQtDebugLeaksView(QWidget *p=0)
vtkQtDebugLeaksView::onFilterHelp
void onFilterHelp()
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkQtDebugLeaksView::filterEnabled
bool filterEnabled() const
vtkQtDebugLeaksView::setFilterEnabled
void setFilterEnabled(bool value)