tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIScript.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef UI_script_H
5 #define UI_script_H
6 
7 #include <QPlainTextEdit>
8 
9 #include "Port.h"
10 #include "UIBox.h"
11 #include "UIObject.h"
12 
13 #include <QFileDialog>
14 
15 #include "UIScriptCommon.h"
16 #include "UIScriptEditor.h"
17 
18 class QGraphicsView;
19 
20 namespace tilde {
21 
24 class UIScript : public UIBox {
25  Q_OBJECT
26 
27 private:
28  bool _clicked;
30 
31  //temporary
32  UIScriptCommon* _scriptCommon;
33 
34 public:
35  explicit UIScript();
36 
37  static UIObject* createObj(QString data);
38  //static UIObject* createObject(QString, t_canvas*, QGraphicsView*);
39 
40  void initProperties();
41  void resizeEvent();
42 
43  virtual void paint(QPainter* p, const QStyleOptionGraphicsItem* option, QWidget*);
44 
45  // ------------------------
46  // mouse?
47  // ----------------------
48 
49  void setPdMessage(QString message);
50 
51  virtual void fromQString(QString message);
52 
53  virtual void updateUI(t_cpd_list* list);
54 
55  virtual void sync();
56 
57 private slots:
58  void editorChanged();
59 };
60 }
61 #endif // cmo_text_H
void initProperties()
Definition: UIScript.cpp:81
void setPdMessage(QString message)
Definition: UIScript.cpp:120
void resizeEvent()
Definition: UIScript.cpp:87
virtual void fromQString(QString message)
basic mouse up
Definition: UIScript.cpp:125
virtual void sync()
Definition: UIScript.cpp:131
virtual void updateUI(t_cpd_list *list)
Definition: UIScript.cpp:141
UIScript()
Definition: UIScript.cpp:24
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *)
UIObject properties
Definition: UIScript.cpp:92
static UIObject * createObj(QString data)
Definition: UIScript.cpp:72
Sort of view controller for UIScript/UISCriptBox.
Definition: UIScriptCommon.h:37
Script editor QWidget.
Definition: UIScriptEditor.h:18
Definition: UIObject.h:44
gui object: script editor embedded box (ui.script)
Definition: UIScript.h:24
Definition: g_canvas.h:89
gui object: standard object box
Definition: UIBox.h:46