- result = booleanControl(theParent);
-
- } else if (theType == WDG_POINT_SELECTOR) {
- result = pointSelectorControl(theParent);
-
- } else if (myWidgetApi->isContainerWidget() || myWidgetApi->isPagedWidget()) {
- result = createContainer(theType, theParent);
- }
-#ifdef _DEBUG
- else { qDebug() << "ModuleBase_WidgetFactory::fillWidget: find bad widget type"; }
-#endif
- return result;
-}
-
-QWidget* ModuleBase_WidgetFactory::createContainer(const std::string& theType, QWidget* theParent)
-{
- QWidget* result = NULL;
- if (theType == WDG_GROUP || theType == WDG_CHECK_GROUP) {
- QGroupBox* aGroupBox = new QGroupBox(theParent);
- aGroupBox->setCheckable(theType == WDG_CHECK_GROUP);
- result = aGroupBox;
+ result = new ModuleBase_WidgetBoolValue(theParent, myWidgetApi, myParentId);
+ //} else if (theType == WDG_DOUBLEVALUE_EDITOR) {
+ // result = new ModuleBase_WidgetEditor(theParent, myWidgetApi, myParentId);
+ } else if (theType == WDG_FILE_SELECTOR) {
+ result = new ModuleBase_WidgetFileSelector(theParent, myWidgetApi, myParentId);
+ } else if (theType == WDG_CHOICE) {
+ result = new ModuleBase_WidgetChoice(theParent, myWidgetApi, myParentId);
+ } else if (theType == WDG_STRINGVALUE) {
+ result = new ModuleBase_WidgetLineEdit(theParent, myWidgetApi, myParentId);
+ } else if (theType == WDG_EXPR_EDITOR) {
+ result = new ModuleBase_WidgetExprEditor(theParent, myWidgetApi, myParentId);
+ } else if (theType == WDG_MULTISELECTOR) {
+ result = new ModuleBase_WidgetMultiSelector(theParent, myWorkshop, myWidgetApi, myParentId);