Mantid
Loading...
Searching...
No Matches
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
11#include <QString>
12
13class ScriptEditor;
14
16
23public:
25 PyObject *execute(const QString &codeStr, const QString &filename, int flags, PyObject *globals,
26 int lineOffset) const;
27
28private:
29 ScriptEditor *m_editor{nullptr};
30};
31
32} // namespace MantidQt::Widgets::Common::Python
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
The CodeExecution class support execution of arbitrary Python code with the option to install a trace...
Definition: CodeExecution.h:22
This class provides an area to write scripts.
Definition: ScriptEditor.h:37