-#ifdef _DEBUG
- else {qDebug() << "ModuleBase_WidgetFactory::fillWidget: find bad container type";}
-#endif
- return aResult;
-}
-
-QWidget* ModuleBase_WidgetFactory::labelControl(QWidget* theParent)
-{
- ModuleBase_WidgetLabel* aWgt =
- new ModuleBase_WidgetLabel(theParent, myWidgetApi, myParentId);
- myModelWidgets.append(aWgt);
- return aWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::doubleSpinBoxControl(QWidget* theParent)
-{
- ModuleBase_WidgetDoubleValue* aDblWgt =
- new ModuleBase_WidgetDoubleValue(theParent, myWidgetApi, myParentId);
- myModelWidgets.append(aDblWgt);
- return aDblWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::doubleValueEditor(QWidget* theParent)
-{
- ModuleBase_WidgetEditor* aWidget =
- new ModuleBase_WidgetEditor(theParent, myWidgetApi, myParentId);
- myModelWidgets.append(aWidget);
- return aWidget;
-}
-
-QWidget* ModuleBase_WidgetFactory::shapeSelectorControl(QWidget* theParent)
-{
- ModuleBase_WidgetShapeSelector* aSelector =
- new ModuleBase_WidgetShapeSelector(theParent, myWorkshop, myWidgetApi, myParentId);
- myModelWidgets.append(aSelector);
- return aSelector;
-}
-
-QWidget* ModuleBase_WidgetFactory::booleanControl(QWidget* theParent)
-{
- ModuleBase_WidgetBoolValue* aBoolWgt =
- new ModuleBase_WidgetBoolValue(theParent, myWidgetApi, myParentId);
- myModelWidgets.append(aBoolWgt);
- return aBoolWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::fileSelectorControl(QWidget* theParent)
-{
- ModuleBase_WidgetFileSelector* aFileSelectorWgt =
- new ModuleBase_WidgetFileSelector(theParent, myWidgetApi, myParentId);
- myModelWidgets.append(aFileSelectorWgt);
- return aFileSelectorWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::choiceControl(QWidget* theParent)
-{
- ModuleBase_WidgetChoice* aChoiceWgt =
- new ModuleBase_WidgetChoice(theParent, myWidgetApi,myParentId);
- myModelWidgets.append(aChoiceWgt);
- return aChoiceWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::lineEditControl(QWidget* theParent)
-{
- ModuleBase_WidgetLineEdit* aLineEditWgt =
- new ModuleBase_WidgetLineEdit(theParent, myWidgetApi,myParentId);
- myModelWidgets.append(aLineEditWgt);
- return aLineEditWgt;
-}
-
-QWidget* ModuleBase_WidgetFactory::multiSelectorControl(QWidget* theParent)
-{
- ModuleBase_WidgetMultiSelector* aMultiselectorWgt =
- new ModuleBase_WidgetMultiSelector(theParent, myWorkshop, myWidgetApi,myParentId);
- myModelWidgets.append(aMultiselectorWgt);
- return aMultiselectorWgt;