-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscripteditor.h
More file actions
49 lines (34 loc) · 752 Bytes
/
scripteditor.h
File metadata and controls
49 lines (34 loc) · 752 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
#ifndef SCRIPTEDITOR_H
#define SCRIPTEDITOR_H
#include <QWidget>
#include <QString>
#include "ui_scripteditor.h"
namespace Ui {
class ScriptEditor;
}
namespace vfg {
namespace ui {
class ScriptEditor : public QWidget
{
Q_OBJECT
public:
explicit ScriptEditor(QWidget *parent = 0);
~ScriptEditor();
// Loads contents of script file
void setContent(const QString &content);
void save();
void reset();
QString path() const;
private slots:
void on_updateButton_clicked();
void on_btnSaveAs_clicked();
private:
::Ui::ScriptEditor ui;
QString savePath;
void setSavePath(const QString &path);
signals:
void scriptUpdated();
};
} // namespace ui
} // namespace vfg
#endif // SCRIPTEDITOR_H