Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerWebPythonProxy.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Steve Pieper, Isomics, Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qSlicerWebPythonProxy_h
22#define __qSlicerWebPythonProxy_h
23
24// Qt includes
25#include <QObject>
26
27// QtGUI includes
28#include "qSlicerBaseQTGUIExport.h"
29
30class qSlicerWebPythonProxyPrivate;
31
32class Q_SLICER_BASE_QTGUI_EXPORT qSlicerWebPythonProxy
33 : public QObject
34{
35 Q_OBJECT
36 Q_PROPERTY(bool verbose READ verbose WRITE setVerbose)
37
38public:
39 typedef QObject Superclass;
40
42 explicit qSlicerWebPythonProxy(QObject *parent = nullptr);
44
60
62 bool verbose() const;
63 void setVerbose(bool value);
64
65public slots:
66
79 QString evalPython(const QString &python, int mode = FileInput);
80
81protected:
82 qSlicerWebPythonProxy(qSlicerWebPythonProxyPrivate* pimpl);
83 QScopedPointer<qSlicerWebPythonProxyPrivate> d_ptr;
84
85private:
86 Q_DECLARE_PRIVATE(qSlicerWebPythonProxy);
87 Q_DISABLE_COPY(qSlicerWebPythonProxy);
88};
89
90#endif
QString evalPython(const QString &python, int mode=FileInput)
virtual ~qSlicerWebPythonProxy()
void setVerbose(bool value)
qSlicerWebPythonProxy(QObject *parent=nullptr)
Constructor.
qSlicerWebPythonProxy(qSlicerWebPythonProxyPrivate *pimpl)
QScopedPointer< qSlicerWebPythonProxyPrivate > d_ptr
bool verbose() const
Enabled detailed logging during Python evaluation.
Q_ENUMS(EvalPythonMode)