tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UINewPatchcord.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef NewLine_H
5 #define NewLine_H
6 
7 #include "UIItem.h"
8 
9 namespace tilde {
10 
13 class UINewPatchcord : public UIItem {
14  bool _active;
15  QPoint _start;
16  QPoint _end;
17 
18  //todo
19  int _patchcordType;
20 
21  bool _error;
22 
23 public:
25 
26  void setActive(bool active) { _active = active; }
27  bool active() { return _active; }
28 
29  void setError(bool error) { _error = error; }
30  bool error() { return _error; }
31 
32  void setPatchcordType(int type) { _patchcordType = type; }
33  bool patchcordType() { return _patchcordType; }
34 
35  void setStart(QPoint start) { _start = start; }
36  void setEnd(QPoint end) { _end = end; }
37 
38  void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*);
39 };
40 }
41 #endif // NewLine_H
bool patchcordType()
Definition: UINewPatchcord.h:33
bool error()
Definition: UINewPatchcord.h:30
void setPatchcordType(int type)
Definition: UINewPatchcord.h:32
UIItem QGraphicsObject class.
Definition: UIItem.h:15
New patchcord - dashed line.
Definition: UINewPatchcord.h:13
UINewPatchcord()
Definition: UINewPatchcord.cpp:9
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
Definition: UINewPatchcord.cpp:16
void setActive(bool active)
Definition: UINewPatchcord.h:26
void setEnd(QPoint end)
Definition: UINewPatchcord.h:36
void setStart(QPoint start)
Definition: UINewPatchcord.h:35
void setError(bool error)
Definition: UINewPatchcord.h:29
bool active()
Definition: UINewPatchcord.h:27