#include <ModuleBase_WidgetFactory.h>
-#include <ModuleBase_WidgetSwitch.h>
-#include <ModuleBase_OperationDescription.h>
-
+#include <ModuleBase_MetaWidget.h>
#include <ModuleBase_Operation.h>
+#include <ModuleBase_OperationDescription.h>
#include <ModuleBase_WidgetPoint2D.h>
+#include <ModuleBase_WidgetSwitch.h>
+
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
QWidget* ModuleBase_WidgetFactory::pointSelectorControl(QWidget* theParent)
{
ModuleBase_WidgetPoint2D* aWidget = new ModuleBase_WidgetPoint2D(theParent,
- qs(myWidgetApi->getProperty(CONTAINER_PAGE_NAME)), myWidgetApi->widgetId());
+ qs(myWidgetApi->getProperty(CONTAINER_PAGE_NAME)),
+ myWidgetApi->widgetId());
connectWidget(aWidget, WDG_POINT_SELECTOR);
+ myModelWidgets.append(aWidget);
return aWidget->getControl();
}
myOperation, SLOT(storeReal(double)));
}
if (theType == WDG_POINT_SELECTOR) {
- ModuleBase_WidgetCustom* aCustom = dynamic_cast<ModuleBase_WidgetCustom*>(theWidget);
- result = QObject::connect(aCustom, SIGNAL(valuesChanged()),
+ result = QObject::connect(theWidget, SIGNAL(valuesChanged()),
myOperation, SLOT(storeCustomValue()));
}
return result;