ParameterSettable::EnumDescriptor Class Reference

Utility Class for customize the description of Enum-like parameter. More...

List of all members.

Public Member Functions

 EnumDescriptor (QString paramPath)
 Add (if not exists) the description of a Enum-like parameter.
EnumDescriptordef (QString defaultValue)
 set the default value when the parameter is not present into the configuration
EnumDescriptorhelp (QString shortHelp, QString longHelp=QString(""))
 Add a short help comment and a complete help comment.
EnumDescriptorprops (Properties properties)
 set the Properties of this parameter (see Property documentation)
EnumDescriptorvalues (QStringList allValues)
 set all the possible values acceptable for this parameter

Detailed Description

Utility Class for customize the description of Enum-like parameter.

Definition at line 413 of file parametersettable.h.


Constructor & Destructor Documentation

EnumDescriptor ( QString  paramPath)

Add (if not exists) the description of a Enum-like parameter.

Warning:
Don't call it directly; use Descriptor::describeEnum instead

Definition at line 311 of file parametersettable.cpp.

References ConfigurationParameters::createGroup(), ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().


Member Function Documentation

ParameterSettable::EnumDescriptor & def ( QString  defaultValue)

set the default value when the parameter is not present into the configuration

Definition at line 318 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().

ParameterSettable::EnumDescriptor & help ( QString  shortHelp,
QString  longHelp = QString("") 
)

Add a short help comment and a complete help comment.

The short help comment is typically used as a tooltip help, while the complete help comment will be shown in the help section for the type

Parameters:
shortHelpis the short comment (rich text here is not allowed)
longHelpis the long help (rich text here is allowed); if not specified the longHelp will be the same of the shortHelp

Definition at line 333 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().

ParameterSettable::EnumDescriptor & props ( Properties  properties)

set the Properties of this parameter (see Property documentation)

Definition at line 323 of file parametersettable.cpp.

References Factory::getTypeDescriptions().

ParameterSettable::EnumDescriptor & values ( QStringList  allValues)

set all the possible values acceptable for this parameter

Definition at line 328 of file parametersettable.cpp.

References ConfigurationParameters::createParameter(), and Factory::getTypeDescriptions().


The documentation for this class was generated from the following files: