X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=7d40f5b7215f1d1ee8667ac2fc1b424d16eba615;hb=32e205a228d74cdc2627143cb32360e9a557d7dc;hp=5360f35dbba39a443ee05b2e460c5a06f4fe2b54;hpb=9d39123efbd6bde772377542ce40fb51f7925c1f;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index 5360f35db..7d40f5b72 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -21,8 +21,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,30 +33,28 @@ 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* featureOrAttributeSelectorControl(QWidget* theParent); + //QWidget* featureSelectorControl(QWidget* theParent); + //QWidget* featureOrAttributeSelectorControl(QWidget* theParent); QWidget* doubleValueEditor(QWidget* theParent); - QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL); - QWidget* selectorControl(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); - /// Check whether the XML definition for the given type contains internal property - /// \param theType the widget type - /// \return the boolean result - bool isInternalWidget(const std::string& theType); QString qs(const std::string& theStdString) const; -private: + private: Config_WidgetAPI* myWidgetApi; - ModuleBase_IWorkshop* myWorkshop; + ModuleBase_IWorkshop* myWorkshop; QList myModelWidgets; std::string myParentId;