2 * ModuleBase_WidgetFactory.h
4 * Created on: Apr 3, 2014
8 #ifndef ModuleBase_WidgetFactory_H_
9 #define ModuleBase_WidgetFactory_H_
11 #include "ModuleBase.h"
12 #include "ModuleBase_ModelWidget.h"
19 class Config_WidgetAPI;
20 class ModuleBase_IWorkshop;
22 class MODULEBASE_EXPORT ModuleBase_WidgetFactory
25 ModuleBase_WidgetFactory(const std::string& theXmlRepresentation,
26 ModuleBase_IWorkshop* theWorkshop);
27 virtual ~ModuleBase_WidgetFactory();
29 void createWidget(QWidget* theParent);
31 QList<ModuleBase_ModelWidget*> getModelWidgets() const
33 return myModelWidgets;
38 QWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL);
39 QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL);
40 QWidget* labelControl(QWidget* theParent);
41 QWidget* doubleSpinBoxControl(QWidget* theParent);
42 QWidget* doubleValueEditor(QWidget* theParent);
43 QWidget* shapeSelectorControl(QWidget* theParent);
44 QWidget* booleanControl(QWidget* theParent);
45 QWidget* fileSelectorControl(QWidget* theParent);
46 QWidget* choiceControl(QWidget* theParent);
47 QWidget* lineEditControl(QWidget* theParent);
48 QWidget* multiSelectorControl(QWidget* theParent);
51 QString qs(const std::string& theStdString) const;
54 Config_WidgetAPI* myWidgetApi;
55 ModuleBase_IWorkshop* myWorkshop;
57 QList<ModuleBase_ModelWidget*> myModelWidgets;
58 std::string myParentId;
61 #endif /* ModuleBase_WidgetFactory_H_ */