tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIBang.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef CMO_BANG_H
5 #define CMO_BANG_H
6 
7 #include <QLineEdit>
8 #include <QTimer>
9 
10 #include "Port.h"
11 #include "UIObject.h"
12 
13 #include <QGraphicsView>
14 
15 namespace tilde {
16 
20 class UIBang : public UIObject {
21  Q_OBJECT
22 
23 private:
24  bool _clicked;
25  QTimer* _timer;
26 
27  void timerStart();
28 
29 public:
30  explicit UIBang();
31 
32  static UIObject* createObj(QString data);
33 
34  virtual void paint(QPainter* p, const QStyleOptionGraphicsItem* option, QWidget*);
35  virtual void resizeEvent();
36 
37  // -------------------
38 
39  void objectPressEvent(QGraphicsSceneMouseEvent* ev);
40 
41  // -------------------------
42 
43  void updateUI(t_cpd_list*);
44 
45 signals:
46  void setBangTimer(int msec);
47 
48  void signalBang();
49 
50 private slots:
51  void timerAction();
52 
53  void slotBang();
54 };
55 }
56 
57 #endif // CMO_MSG_H
void updateUI(t_cpd_list *)
Definition: UIBang.cpp:96
static UIObject * createObj(QString data)
Definition: UIBang.cpp:33
virtual void resizeEvent()
Definition: UIBang.cpp:72
gui object: message box (ui.msg)
Definition: UIBang.h:20
void signalBang()
void setBangTimer(int msec)
UIBang()
Definition: UIBang.cpp:13
Definition: UIObject.h:44
void objectPressEvent(QGraphicsSceneMouseEvent *ev)
Definition: UIBang.cpp:80
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *)
UIObject properties
Definition: UIBang.cpp:44