-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgtpy_pythonplotdata.h
More file actions
49 lines (39 loc) · 901 Bytes
/
gtpy_pythonplotdata.h
File metadata and controls
49 lines (39 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* GTlab - Gas Turbine laboratory
* Source File: gtpy_pythonplotdata.h
*
* SPDX-License-Identifier: Apache-2.0
* SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR)
*
* Created on: 13.08.2019
* Author: Stanislaus Reitenbach (DLR AT-TWK)
*/
#ifndef GTPY_PYTHONPLOTDATA_H
#define GTPY_PYTHONPLOTDATA_H
#include "gt_object.h"
/**
* @brief The GtpyPythonPlotData class
*/
class GtpyPythonPlotData : public GtObject
{
Q_OBJECT
Q_PROPERTY(QString script MEMBER m_script)
public:
/**
* @brief Constructor.
*/
Q_INVOKABLE GtpyPythonPlotData();
/**
* @brief Returns saved script.
* @return
*/
QString script() const;
/**
* @brief Sets given script.
* @param script Script string.
*/
void setScript(const QString& script);
private:
/// python script
QString m_script;
};
#endif // GTPY_PYTHONPLOTDATA_H