tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIDSP.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef CMO_DSP_H
5 #define CMO_DSP_H
6 
7 #include <qlineedit.h>
8 
9 #include "Port.h"
10 #include "UIObject.h"
11 
12 #include <QGraphicsView>
13 #include <QStyleOptionGraphicsItem>
14 
15 #include "Preferences.h"
16 
17 namespace tilde {
18 
22 class UIDSP : public UIObject {
23  Q_OBJECT
24 
25 private:
26  bool _clicked;
27  bool _value;
28 
29  QGraphicsView* _widget;
30 
31 public:
32  explicit UIDSP();
33 
34  static UIObject* createObj(QString data);
35  void objectPressEvent(QGraphicsSceneMouseEvent*);
36 
37  QGraphicsView* widget();
38  void initProperties();
39 
40  // ---------------
41 
42  virtual void paint(QPainter* p, const QStyleOptionGraphicsItem* option, QWidget*);
43 
44  virtual void updateUI(t_cpd_list* l);
45 };
46 }
47 
48 #endif // CMO_MSG_H
UIDSP()
Definition: UIDSP.cpp:12
void initProperties()
Definition: UIDSP.cpp:54
static UIObject * createObj(QString data)
Definition: UIDSP.cpp:40
void objectPressEvent(QGraphicsSceneMouseEvent *)
Definition: UIDSP.cpp:103
gui object: dsp switch box (ui.dsp)
Definition: UIDSP.h:22
virtual void updateUI(t_cpd_list *l)
Definition: UIDSP.cpp:117
QGraphicsView * widget()
Definition: UIDSP.cpp:49
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *)
UIObject properties
Definition: UIDSP.cpp:63
Definition: UIObject.h:44