Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
Python
CodeExecution.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#pragma once
8
9
#include "
MantidPythonInterface/core/WrapPython.h
"
10
#include "
MantidQtWidgets/Common/DllOption.h
"
11
#include <QString>
12
13
class
ScriptEditor
;
14
15
namespace
MantidQt::Widgets::Common::Python
{
16
22
class
EXPORT_OPT_MANTIDQT_COMMON
CodeExecution
{
23
public
:
24
CodeExecution
(
ScriptEditor
*editor);
25
PyObject *execute(
const
QString &codeStr,
const
QString &filename,
int
flags, PyObject *globals,
26
int
lineOffset)
const
;
27
28
private
:
29
ScriptEditor
*m_editor{
nullptr
};
30
};
31
32
}
// namespace MantidQt::Widgets::Common::Python
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition:
DllOption.h:15
WrapPython.h
MantidQt::Widgets::Common::Python::CodeExecution
The CodeExecution class support execution of arbitrary Python code with the option to install a trace...
Definition:
CodeExecution.h:22
ScriptEditor
This class provides an area to write scripts.
Definition:
ScriptEditor.h:37
MantidQt::Widgets::Common::Python
Definition:
CodeExecution.h:15
Generated on Tue Jan 3 2023 11:58:01 for Mantid by
1.9.5