|
STK++ 1.0
|
A descriptor for a property to be presented by a standard property sheet page (PropertySheetPage).
More...
#include <STK_PropertyDescriptor.h>

Public Member Functions | |
| PropertyDescriptor (String const &id, String const &displayName, String const &category=STRING_NA, String const &description=STRING_NA, String const &helpId=STRING_NA) | |
| constructor Creates a new property descriptor with the given id and display name | |
| virtual | ~PropertyDescriptor () |
| virtual destructor. | |
| String const & | category () const |
| Returns the name of the category to which this property belongs. | |
| String const & | getDescription () const |
| Returns a brief description of this property. | |
| String const & | getDisplayName () const |
| Returns the display name for this property. | |
| String const & | getHelpContextId () const |
Returns the help context id for this property or NA if this property has no help context id. | |
| String const & | getId () const |
| Returns the id for this property. | |
| void | setCategory (String const &category) |
| Sets the category for this property descriptor. | |
| void | setDescription (String const &description) |
| Sets the description for this property descriptor. | |
| void | setHelpContextIds (String const &contextId) |
| Sets the help context id for this property descriptor. | |
Private Attributes | |
| String | id_ |
| The property id. | |
| String | display_ |
| The name to display for the property. | |
| String | category_ |
Category name, or NA if none (the default). | |
| String | description_ |
Description of the property, or NA if none (the default). | |
| String | helpId_ |
The help context id, or NA if none (the default). | |
A descriptor for a property to be presented by a standard property sheet page (PropertySheetPage).
The required attributes of property descriptors (id and display name) are passed to the constructor; the optional attributes can be configured using the various set methods (all have reasonable default values):
setDescription setCategory setHelpContextId Definition at line 61 of file STK_PropertyDescriptor.h.
| STK::PropertyDescriptor::PropertyDescriptor | ( | String const & | id, |
| String const & | displayName, | ||
| String const & | category = STRING_NA, |
||
| String const & | description = STRING_NA, |
||
| String const & | helpId = STRING_NA |
||
| ) |
constructor Creates a new property descriptor with the given id and display name
| id | the property id |
| displayName | a display name |
| category | Category of the property (optional) |
| description | a description of the property (optional) |
| helpId | Id of the property (optional) |
Definition at line 46 of file STK_PropertyDescriptor.cpp.
| STK::PropertyDescriptor::~PropertyDescriptor | ( | ) | [virtual] |
| String const& STK::PropertyDescriptor::category | ( | ) | const [inline] |
Returns the name of the category to which this property belongs.
Properties belonging to the same category are grouped together visually. This localized string is shown to the user.
NA if the default category is to be used Definition at line 119 of file STK_PropertyDescriptor.h.
References category_.
Referenced by setCategory().
{ return category_;}
| String const& STK::PropertyDescriptor::getDescription | ( | ) | const [inline] |
Returns a brief description of this property.
This localized string is shown to the user when this property is selected.
NA if none Definition at line 128 of file STK_PropertyDescriptor.h.
References description_.
{ return description_;}
| String const& STK::PropertyDescriptor::getDisplayName | ( | ) | const [inline] |
Returns the display name for this property.
This localized string is shown to the user as the name of this property.
Definition at line 137 of file STK_PropertyDescriptor.h.
References display_.
{ return display_;}
| String const& STK::PropertyDescriptor::getHelpContextId | ( | ) | const [inline] |
Returns the help context id for this property or NA if this property has no help context id.
Definition at line 146 of file STK_PropertyDescriptor.h.
References helpId_.
{ return helpId_;}
| String const& STK::PropertyDescriptor::getId | ( | ) | const [inline] |
Returns the id for this property.
This object is used internally to distinguish one property descriptor from another.
Definition at line 156 of file STK_PropertyDescriptor.h.
References id_.
{ return id_;}
| void STK::PropertyDescriptor::setCategory | ( | String const & | category | ) | [inline] |
Sets the category for this property descriptor.
| category | the category for the descriptor, or NA if none |
Definition at line 166 of file STK_PropertyDescriptor.h.
References category(), and category_.

| void STK::PropertyDescriptor::setDescription | ( | String const & | description | ) | [inline] |
Sets the description for this property descriptor.
The description should be limited to a single line so that it can be displayed in the status line.
| description | the description, or NA if none |
Definition at line 177 of file STK_PropertyDescriptor.h.
References description_.
{ description_ = description;}
| void STK::PropertyDescriptor::setHelpContextIds | ( | String const & | contextId | ) | [inline] |
Sets the help context id for this property descriptor.
| contextId | the help context id, or NA if none |
Definition at line 186 of file STK_PropertyDescriptor.h.
References helpId_.
{ helpId_ = contextId;}
String STK::PropertyDescriptor::id_ [private] |
String STK::PropertyDescriptor::display_ [private] |
The name to display for the property.
Definition at line 72 of file STK_PropertyDescriptor.h.
Referenced by getDisplayName().
String STK::PropertyDescriptor::category_ [private] |
Category name, or NA if none (the default).
Definition at line 77 of file STK_PropertyDescriptor.h.
Referenced by category(), and setCategory().
String STK::PropertyDescriptor::description_ [private] |
Description of the property, or NA if none (the default).
Definition at line 82 of file STK_PropertyDescriptor.h.
Referenced by getDescription(), and setDescription().
String STK::PropertyDescriptor::helpId_ [private] |
The help context id, or NA if none (the default).
Definition at line 87 of file STK_PropertyDescriptor.h.
Referenced by getHelpContextId(), and setHelpContextIds().