+ //! Returns id of current widget
+ std::string widgetId() const;
+ //! Returns icon of current widget
+ std::string widgetIcon() const;
+ //! Returns text for label of current widget
+ std::string widgetLabel() const;
+ //! Returns text for tooltip of current widget
+ std::string widgetTooltip() const;
+ //! Returns a custom property of current widget
+ std::string getProperty(const char* thePropName) 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.
+ * \param theAttributeName attribute to check
+ * \param theDefault default value on bad data
+ * \return the boolean result
+ */
+ bool getBooleanAttribute(const char* theAttributeName, bool theDefault) const;
+
+ protected:
+ /// These fields are accessible for ModuleBase_WidgetFactory only
+ Config_WidgetAPI(std::string theRawXml);
+ //! Pass to the next (sibling) node of widget's xml definition. If impossible, returns false
+ bool toNextWidget();
+ //! Pass into the child node of widget's xml definition. If impossible, returns false
+ bool toChildWidget();
+ //! Pass into the parent node of widget's xml definition. If impossible, returns false
+ bool toParentWidget();