X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=43b8208b6596d3912f436ea914ded46e337e8ab5;hb=f40895b4d881810ef7d19c27ce6e952d72353d2c;hp=13f16601ba8d4188e0a489239677f3c439266531;hpb=641932ae44c7da06fe38a7689cfa7369452d47e9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index 13f16601b..43b8208b6 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -17,13 +17,13 @@ class QObject; class QWidget; class Config_WidgetAPI; -class ModuleBase_Operation; class ModuleBase_IWorkshop; class MODULEBASE_EXPORT ModuleBase_WidgetFactory { -public: - ModuleBase_WidgetFactory(ModuleBase_Operation* theOperation, ModuleBase_IWorkshop* theWorkshop); + public: + ModuleBase_WidgetFactory(const std::string& theXmlRepresentation, + ModuleBase_IWorkshop* theWorkshop); virtual ~ModuleBase_WidgetFactory(); void createWidget(QWidget* theParent); @@ -33,24 +33,34 @@ public: return myModelWidgets; } -protected: + protected: //Widgets QWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL); + QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL); QWidget* labelControl(QWidget* theParent); QWidget* doubleSpinBoxControl(QWidget* theParent); QWidget* pointSelectorControl(QWidget* theParent); - QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL); - QWidget* selectorControl(QWidget* theParent); + QWidget* featureSelectorControl(QWidget* theParent); + QWidget* featureOrAttributeSelectorControl(QWidget* theParent); + QWidget* doubleValueEditor(QWidget* theParent); + QWidget* shapeSelectorControl(QWidget* theParent); QWidget* booleanControl(QWidget* theParent); + QWidget* point2dDistanceControl(QWidget* theParent); + QWidget* fileSelectorControl(QWidget* theParent); + QWidget* choiceControl(QWidget* theParent); + QWidget* lineEditControl(QWidget* theParent); + QWidget* multiSelectorControl(QWidget* theParent); + QString qs(const std::string& theStdString) const; + void processAttributes(); -private: + private: Config_WidgetAPI* myWidgetApi; - ModuleBase_Operation* myOperation; - ModuleBase_IWorkshop* myWorkshop; + ModuleBase_IWorkshop* myWorkshop; QList myModelWidgets; + std::string myParentId; }; #endif /* ModuleBase_WidgetFactory_H_ */