X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=81be16e7147393948d10d37798436a0342d03f50;hb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;hp=5dd799d62c706a0f71748dd60d573bc2a9b23a07;hpb=dc4b9ee9f5445b39bcaeb3b7f05627774e343ffa;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index 5dd799d62..81be16e71 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,25 +33,33 @@ public: return myModelWidgets; } -protected: + protected: //Widgets QWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL); QWidget* labelControl(QWidget* theParent); - QWidget* doubleSpinBoxControl(); + QWidget* doubleSpinBoxControl(QWidget* theParent); QWidget* pointSelectorControl(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* booleanControl(QWidget* theParent); + QWidget* point2dDistanceControl(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); - bool connectWidget(QObject*, const QString&); QString qs(const std::string& theStdString) const; -private: + private: Config_WidgetAPI* myWidgetApi; - ModuleBase_Operation* myOperation; - ModuleBase_IWorkshop* myWorkshop; + ModuleBase_IWorkshop* myWorkshop; QList myModelWidgets; + std::string myParentId; }; #endif /* ModuleBase_WidgetFactory_H_ */