X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=f81ee61c982ff850b9747c050a3a4394e8764d04;hb=d090d2a84b306232c2bfc888594339f0042c9040;hp=e2162872cdce5d040f655feff688a0e94aa03227;hpb=1f2a62003cac25a91d8517f3af1940c774f10433;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index e2162872c..f81ee61c9 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * ModuleBase_WidgetFactory.h * @@ -21,8 +23,9 @@ class ModuleBase_IWorkshop; class MODULEBASE_EXPORT ModuleBase_WidgetFactory { -public: - ModuleBase_WidgetFactory(const std::string& theXmlRepresentation, ModuleBase_IWorkshop* theWorkshop); + public: + ModuleBase_WidgetFactory(const std::string& theXmlRepresentation, + ModuleBase_IWorkshop* theWorkshop); virtual ~ModuleBase_WidgetFactory(); void createWidget(QWidget* theParent); @@ -32,24 +35,29 @@ 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* featureSelectorControl(QWidget* theParent); - QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL); - QWidget* selectorControl(QWidget* theParent); + QWidget* doubleValueEditor(QWidget* theParent); + QWidget* shapeSelectorControl(QWidget* theParent); QWidget* booleanControl(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; -private: + private: Config_WidgetAPI* myWidgetApi; - ModuleBase_IWorkshop* myWorkshop; + ModuleBase_IWorkshop* myWorkshop; QList myModelWidgets; + std::string myParentId; }; #endif /* ModuleBase_WidgetFactory_H_ */