tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIScriptEditor.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef UISCRIPTEDITOR_H
5 #define UISCRIPTEDITOR_H
6 
7 #include <QWidget>
8 
9 #include "UIScriptTextEdit.h"
10 
11 namespace tilde {
12 
13 class UIScriptCommon;
14 
18 class UIScriptEditor : public QWidget {
19  Q_OBJECT
20 
21 private:
22  UIScriptTextEdit* _textEdit;
23 
24  UIScriptCommon* _scriptCommon;
25 
26 public:
27  explicit UIScriptEditor(QWidget* parent = 0);
28 
29  void resizeEvent(QResizeEvent*);
30 
32  void setTextEdit(UIScriptTextEdit* textEdit);
33 
34  void enableStandalone();
35 
36 signals:
37 
38  void btnRunSignal();
39  void btnLoadSignal();
40  void btnSaveSignal();
41  void btnClearSignal();
42  void textChangedSignal();
43 
44 public slots:
45 
46 private slots:
47  void btnRun() { emit btnRunSignal(); };
48  void btnLoad() { emit btnLoadSignal(); };
49  void btnSave() { emit btnSaveSignal(); };
50  void btnClear() { emit btnClearSignal(); };
51 
52 
53 };
54 }
55 #endif // UISCRIPTEDITOR_H
UIScriptEditor(QWidget *parent=0)
Definition: UIScriptEditor.cpp:11
UIScriptTextEdit * textEdit()
Definition: UIScriptEditor.cpp:72
Sort of view controller for UIScript/UISCriptBox.
Definition: UIScriptCommon.h:37
The text editor for UIScript editor widget.
Definition: UIScriptTextEdit.h:26
Script editor QWidget.
Definition: UIScriptEditor.h:18
void enableStandalone()
Definition: UIScriptEditor.cpp:75
void setTextEdit(UIScriptTextEdit *textEdit)
Definition: UIScriptEditor.cpp:73
void resizeEvent(QResizeEvent *)
Definition: UIScriptEditor.cpp:66