SHAPER
9.13.0
|
Provides low-level API for WidgetFactory for reading xml definitions of widgets. More...
Public Member Functions | |
CONFIG_EXPORT std::string | widgetType () const |
Returns name of widget's node (attribute) More... | |
CONFIG_EXPORT bool | isGroupBoxWidget () const |
Returns true if widget has container type, which means it able to contain other widgets. More... | |
CONFIG_EXPORT bool | isPagedWidget () const |
Returns true if widget has page type; Page is container widget with combo box control to switch between pages. More... | |
CONFIG_EXPORT std::string | featureId () const |
Returns id of current feature. More... | |
CONFIG_EXPORT std::string | widgetId () const |
Returns id of current widget. More... | |
CONFIG_EXPORT std::string | widgetIcon () const |
Returns icon of current widget. More... | |
CONFIG_EXPORT std::string | widgetLabel () const |
Returns text for label of current widget. More... | |
CONFIG_EXPORT std::string | widgetTooltip () const |
Returns text for tooltip of current widget. More... | |
CONFIG_EXPORT std::string | getProperty (const char *thePropName) const |
Returns a custom property of current widget. More... | |
CONFIG_EXPORT bool | getBooleanAttribute (const char *theAttributeName, bool theDefault) const |
CONFIG_EXPORT | Config_WidgetAPI (std::string theRawXml, const std::string theAttributePrefix="") |
These fields are accessible for ModuleBase_WidgetFactory only. More... | |
CONFIG_EXPORT bool | toNextWidget () |
Pass to the next (sibling) node of widget's xml definition. If impossible, returns false. More... | |
CONFIG_EXPORT bool | toChildWidget () |
Pass into the child node of widget's xml definition. If impossible, returns false. More... | |
CONFIG_EXPORT bool | toParentWidget () |
Pass into the parent node of widget's xml definition. If impossible, returns false. More... | |
Friends | |
class | ModuleBase_WidgetFactory |
Provides low-level API for WidgetFactory for reading xml definitions of widgets.
Config_WidgetAPI::Config_WidgetAPI | ( | std::string | theRawXml, |
const std::string | theAttributePrefix = "" |
||
) |
These fields are accessible for ModuleBase_WidgetFactory only.
std::string Config_WidgetAPI::widgetType | ( | ) | const |
Returns name of widget's node (attribute)
bool Config_WidgetAPI::isGroupBoxWidget | ( | ) | const |
Returns true if widget has container type, which means it able to contain other widgets.
bool Config_WidgetAPI::isPagedWidget | ( | ) | const |
Returns true if widget has page type; Page is container widget with combo box control to switch between pages.
std::string Config_WidgetAPI::featureId | ( | ) | const |
Returns id of current feature.
std::string Config_WidgetAPI::widgetId | ( | ) | const |
Returns id of current widget.
std::string Config_WidgetAPI::widgetIcon | ( | ) | const |
Returns icon of current widget.
std::string Config_WidgetAPI::widgetLabel | ( | ) | const |
Returns text for label of current widget.
std::string Config_WidgetAPI::widgetTooltip | ( | ) | const |
Returns text for tooltip of current widget.
std::string Config_WidgetAPI::getProperty | ( | const char * | thePropName | ) | const |
Returns a custom property of current widget.
bool Config_WidgetAPI::getBooleanAttribute | ( | const char * | theAttributeName, |
bool | theDefault | ||
) | const |
Checks if the XML representation of widget has given attribute, if yes - returns it's bool value, if no, or if the value can not be converted to bool - returns theDefault.
theAttributeName | attribute to check |
theDefault | default value on bad data |
bool Config_WidgetAPI::toNextWidget | ( | ) |
Pass to the next (sibling) node of widget's xml definition. If impossible, returns false.
bool Config_WidgetAPI::toChildWidget | ( | ) |
Pass into the child node of widget's xml definition. If impossible, returns false.
bool Config_WidgetAPI::toParentWidget | ( | ) |
Pass into the parent node of widget's xml definition. If impossible, returns false.