2 * ModuleBase_WidgetFactory.h
4 * Created on: Apr 3, 2014
8 #ifndef ModuleBase_WidgetFactory_H_
9 #define ModuleBase_WidgetFactory_H_
11 #include <ModuleBase.h>
16 class Config_WidgetAPI;
17 class ModuleBase_Operation;
19 class MODULEBASE_EXPORT ModuleBase_WidgetFactory
22 ModuleBase_WidgetFactory(ModuleBase_Operation*);
23 virtual ~ModuleBase_WidgetFactory();
25 void createWidget(QWidget* theParent);
29 QWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL);
30 QWidget* labelControl(QWidget* theParent);
31 QWidget* doubleSpinBoxControl();
32 QWidget* pointSelectorControl(QWidget* theParent);
33 QWidget* createContainer(const std::string& theType, QWidget* theParent = NULL);
35 bool connectWidget(QObject*, const QString&);
36 QString qs(const std::string& theStdString) const;
39 Config_WidgetAPI* myWidgetApi;
40 ModuleBase_Operation* myOperation;
45 #endif /* ModuleBase_WidgetFactory_H_ */