30 #include <QStringList>
199 Property(QString name,
const QVariant &variant, QString description, QString unit);
202 const QString & getName()
const;
205 const QVariant &getInitialValue()
const;
208 void setReadOnly(
bool);
211 bool getReadOnly()
const;
214 void setDescription(QString);
217 const QString & getDescription()
const;
233 void setAttribute(
const QString &attribute,
const QVariant &value );
245 QVariant getAttribute(QString attName);
248 QStringList getAttributeList();
251 void setEnumTypeName(QString);
254 QString getEnumTypeName()
const;
263 QString getEnumValueAsString(
const QObject *objectDeclaringTheEnum)
const;
266 QMap<int,QIcon> getEnumIcons()
const;
269 void setEnumIcons(
const QMap<int,QIcon>& enumIcons);
275 void setGroupName(QString groupName);
280 QString getGroupName()
const;
bool readOnly
is the property read only
Definition: Property.h:300
QVariant initialValue
initial value of the property, Only needed between the time when the property is instanciated and the...
Definition: Property.h:294
#define CAMITK_API
Definition: CamiTKAPI.h:49
QString enumTypeName
if the property's type is an enum, this is the Qt registered enum name, otherwise it is the null stri...
Definition: Property.h:306
QMap< int, QIcon > enumIcons
map containing all the icons for the enum
Definition: Property.h:309
QString groupName
name of the group in which this property is classified (null if no group name were set) ...
Definition: Property.h:287
QString name
name of the property
Definition: Property.h:284
QString description
description of the property, can be rich text
Definition: Property.h:297
QMap< QString, QVariant > attributeValues
map containing all the attributes and their values
Definition: Property.h:303
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:188