]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_WidgetAPI.h
Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / Config / Config_WidgetAPI.h
index 0bcb4a454405e0b91769a97e66b452a82e0c26ea..d7c12e957e09f7bbcc587f0945971e498aacaa1e 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef CONFIG_WIDGETAPI_H_
 #define CONFIG_WIDGETAPI_H_
 
-#include <Config.h>
+#include <Config_def.h>
 
 #include <cstdarg>
 #include <string>
@@ -25,22 +25,28 @@ typedef xmlDoc *xmlDocPtr;
 struct _xmlDoc;
 //<<
 
-
 class CONFIG_EXPORT Config_WidgetAPI
 {
-public:
+ public:
   Config_WidgetAPI(std::string theRawXml);
   virtual ~Config_WidgetAPI();
 
-  void reset();
-  bool nextWidget();
-  std::string widgetType();
-  std::string getProperty(const char* thePropName);
+  bool toNextWidget();
+  bool toChildWidget();
+  bool toParentWidget();
+
+  std::string widgetType() const;
+  bool isContainerWidget() const;
+  bool isPagedWidget() const;
+
+  std::string widgetId() const;
+  std::string widgetIcon() const;
+  std::string widgetLabel() const;
+  std::string widgetTooltip() const;
 
-protected:
-  bool isNode(xmlNodePtr theNode, const char* name, ...);
+  std::string getProperty(const char* thePropName) const;
 
-private:
+ private:
   xmlDocPtr myDoc;
   xmlNodePtr myCurrentNode;