tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIScriptCommon.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef UISCRIPTCOMMON_H
5 #define UISCRIPTCOMMON_H
6 
7 #include <QObject>
8 
9 #include "UIScriptEditor.h"
10 
11 #include <QFileDialog>
12 #include <QStringList>
13 
14 #include "UIScriptCommon.h"
15 
16 namespace ceammc {
17 class AtomList;
18 }
19 
20 class ServerInstance;
21 
22 using namespace ceammc;
23 
24 namespace tilde {
25 
29 class UIScriptData {
30 public:
31  QStringList inputList;
32 };
33 
37 class UIScriptCommon : public QObject {
38  Q_OBJECT
39 
40 private:
41  UIScriptData* _scriptData;
42 
44  QStringList getEditorData();
45 
46  UIScriptCommon* _scriptCommon;
47 
48 public:
49  explicit UIScriptCommon(QObject* parent = 0);
50 
51  UIScriptData* scriptData();
52 
53  void setEditor(UIScriptEditor* editor);
54  UIScriptEditor* editor();
55 
56  // temp
57  // XPD-TODO
58  // static QStringList AtomListToStringList(AtomList list);
59 
60 signals:
61  void callRun();
62 
63 public slots:
64 
65  void btnRun();
66  void btnLoad();
67  void btnSave();
68  void btnClear();
69 };
70 }
71 
72 #endif // UISCRIPTCOMMON_H
Basic data model for scripteditor.
Definition: UIScriptCommon.h:29
QStringList inputList
Definition: UIScriptCommon.h:31
Sort of view controller for UIScript/UISCriptBox.
Definition: UIScriptCommon.h:37
Definition: ceammc_atomlist.h:29
Script editor QWidget.
Definition: UIScriptEditor.h:18
Definition: g_canvas.h:89