tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UIObjectData.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef UIOBJECTDATA_H
5 #define UIOBJECTDATA_H
6 
7 #include "CommonTypes.h"
8 #include <QObject>
9 
10 namespace tilde {
11 
12 class PropertyList;
13 class Port;
14 
15 typedef std::vector<Port*> portItemVec;
16 
20 class UIObjectData : public QObject {
21  Q_OBJECT
22 
23  QString _dataString;
24  PropertyList* _properties;
25 
26  QString _fullHelpName;
27  bool _errorBox;
28 
29  t_objectSize _objectSizeMode;
30  int _minimumBoxWidth;
31  int _minimumBoxHeight;
32 
33 public:
34  QString toQString();
36 
37  QString fullHelpName();
38  bool errorBox();
39  void setFullHelpName(QString fullHelpName);
40  void setErrorBox(bool errorBox);
41 
42  void setData(QString inputData);
43  QString data();
44 
45  void setObjectSize(t_objectSize sizeMode, int minW, int minH);
46 
47  void setMminimumBoxWidth(int w);
48  void setMminimumBoxHeight(int h);
49 
50  int minimumBoxWidth();
51  int minimumBoxHeight();
53 
54  explicit UIObjectData(QObject* parent = 0);
55 
56 signals:
57 
58 public slots:
59 };
60 }
61 
62 #endif // UIOBJECTDATA_H
int minimumBoxWidth()
Definition: UIObjectData.cpp:58
void setMminimumBoxHeight(int h)
Definition: UIObjectData.cpp:56
QString data()
set both properties and Pd object string
Definition: UIObjectData.cpp:35
bool errorBox()
Definition: UIObjectData.cpp:51
std::vector< Port * > portItemVec
Definition: UIObjectData.h:13
void setMminimumBoxWidth(int w)
sets all size constraints
Definition: UIObjectData.cpp:55
QString toQString()
Definition: UIObjectData.cpp:47
void setErrorBox(bool errorBox)
Definition: UIObjectData.cpp:53
t_objectSize
object box size constraints
Definition: CommonTypes.h:26
PropertyList * properties()
Definition: UIObjectData.cpp:48
t_objectSize objectSizeMode()
Definition: UIObjectData.cpp:60
Property handling class for ui object - property list.
Definition: PropertyList.h:34
UIObjectData(QObject *parent=0)
Definition: UIObjectData.cpp:12
int minimumBoxHeight()
Definition: UIObjectData.cpp:59
Port QGraphicsItem class.
Definition: Port.h:18
Data model for UIObject.
Definition: UIObjectData.h:20
QString fullHelpName()
Definition: UIObjectData.cpp:50
void setFullHelpName(QString fullHelpName)
Definition: UIObjectData.cpp:52
void setData(QString inputData)
set both properties and Pd object string
Definition: UIObjectData.cpp:25
void setObjectSize(t_objectSize sizeMode, int minW, int minH)
sets all size constraints
Definition: UIObjectData.cpp:40