4 #ifndef CM_PROPERTYLIST_H
5 #define CM_PROPERTYLIST_H
26 #define PROPERTY_LISTENER(x, y) connect(objectData()->properties()->get(x), &Property::changed, this, y)
27 #define PROPERTY_DISCONNECT_LISTENER(x, y) disconnect(objectData()->properties()->get(x), &Property::changed, this, y)
28 #define PROPERTY_SET(x, y) objectData()->properties()->set(x, y)
29 #define PROPERTY_GET(x) objectData()->properties()->get(x)
48 void create(
string pName,
string pGroup, QString pVersion, T defaultData)
54 newP->
set(defaultData);
64 _groups[pGroup] = grp;
70 void set(
string pName, U value)
73 _data[pName]->set(value);
76 emit
get(pName.c_str())->changed();
100 string asPdFileString();
119 QStringList groupNames();
126 QString extractFromPdFileString(QString input);
141 void propertyChangedSignal();
145 #endif // CM_PROPERTYLIST_H
void create(string pName, string pGroup, QString pVersion, T defaultData)
Definition: PropertyList.h:48
void setVersion(QString version)
copy current value to default value
Definition: Property.cpp:306
property handling class for ui object.
Definition: Property.h:44
void copyDataToDefault()
Definition: Property.cpp:301
Property handling class for ui object - property list.
Definition: PropertyList.h:34
map< string, UIPropertyData * > UIPropertyGroups
Definition: PropertyList.h:21
map< string, UIPropertyData * >::iterator UIPropertyGroupIterator
Definition: PropertyList.h:24
map< string, Property * >::iterator UIPropertyDataIterator
Definition: PropertyList.h:23
Definition: UIObject.h:44
map< string, Property * > UIPropertyData
Definition: PropertyList.h:18
PropertyList()
Definition: PropertyList.h:42
void set(string pName, U value)
Definition: PropertyList.h:70