pqPythonDebugLeaksView.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqPythonDebugLeaksView_h
5 #define pqPythonDebugLeaksView_h
6 
7 #include "vtkQtDebugLeaksView.h"
8 
9 #include "pqPythonModule.h" // for exports
10 #include <QPointer> // for QPointer
11 
21 class pqPythonShell;
23 {
24  Q_OBJECT
25 
26 public:
27  pqPythonDebugLeaksView(QWidget* p = nullptr);
28  ~pqPythonDebugLeaksView() override;
29 
30  void setShell(pqPythonShell*);
31  pqPythonShell* shell() const;
32 
33 protected:
34  void onObjectDoubleClicked(vtkObjectBase* object) override;
35  void onClassNameDoubleClicked(const QString& className) override;
36 
37  virtual void addObjectToPython(vtkObjectBase* object);
38  virtual void addObjectsToPython(const QList<vtkObjectBase*>& objects);
39 
40  QPointer<pqPythonShell> Shell;
41 };
42 
43 #endif // !pqPythonDebugLeaksView_h
virtual void onObjectDoubleClicked(vtkObjectBase *object)
Widget for a Python shell.
Definition: pqPythonShell.h:33
#define PQPYTHON_EXPORT
Widget to track VTK object references.
virtual void onClassNameDoubleClicked(const QString &className)
QPointer< pqPythonShell > Shell