297 const QString& getName()
const;
300 const QVariant& getInitialValue()
const;
303 void setReadOnly(
bool);
306 bool getReadOnly()
const;
309 void setDescription(QString);
312 const QString& getDescription()
const;
328 void setAttribute(
const QString& attribute,
const QVariant& value);
341 QVariant getAttribute(QString attName);
344 QStringList getAttributeList();
349 void setEnumTypeName(QString);
360 void setEnumTypeName(QString enumTypeName, QObject* objectDeclaringTheEnum);
363 QString getEnumTypeName()
const;
372 QString getEnumValueAsString(
const QObject* objectDeclaringTheEnum)
const;
375 QMap<int, QIcon> getEnumIcons()
const;
378 void setEnumIcons(
const QMap<int, QIcon>& enumIcons);
384 void setGroupName(QString groupName);
389 QString getGroupName()
const;
#define CAMITK_API
Definition: CamiTKAPI.h:49
const char * description
Definition: applications/cepgenerator/main.cpp:38
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:280
QString name
name of the property
Definition: Property.h:393
QMap< int, QIcon > enumIcons
map containing all the icons for the enum
Definition: Property.h:418
virtual ~Property()=default
Destructor.
QMap< QString, QVariant > attributeValues
map containing all the attributes and their values
Definition: Property.h:412
bool readOnly
is the property read only
Definition: Property.h:409
QString description
description of the property, can be rich text
Definition: Property.h:406
QVariant initialValue
initial value of the property, Only needed between the time when the property is instantiated and the...
Definition: Property.h:403
QString groupName
name of the group in which this property is classified (null if no group name were set)
Definition: Property.h:396
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:415
Definition: Action.cpp:35