4 * Created on: Apr 1, 2014
8 #ifndef CONFIG_WIDGETAPI_H_
9 #define CONFIG_WIDGETAPI_H_
11 #include <Config_def.h>
16 //>> Forward declaration of xmlNodePtr.
17 typedef struct _xmlNode xmlNode;
18 typedef xmlNode *xmlNodePtr;
22 //>> Forward declaration of xmlDocPtr.
23 typedef struct _xmlDoc xmlDoc;
24 typedef xmlDoc *xmlDocPtr;
28 class CONFIG_EXPORT Config_WidgetAPI
31 virtual ~Config_WidgetAPI();
33 std::string widgetType() const;
34 bool isContainerWidget() const;
35 bool isPagedWidget() const;
37 std::string widgetId() const;
38 std::string widgetIcon() const;
39 std::string widgetLabel() const;
40 std::string widgetTooltip() const;
42 std::string getProperty(const char* thePropName) const;
44 bool isComputedDefault() const;
47 /// These fields are accessible for ModuleBase_WidgetFactory only
48 Config_WidgetAPI(std::string theRawXml);
51 bool toParentWidget();
55 xmlNodePtr myCurrentNode;
57 friend class ModuleBase_WidgetFactory;
60 #endif /* CONFIG_WIDGETAPI_H_ */