+ int aS = myWidgets.size();
+ if (theWidgets.empty()) return;
+
+ QList<ModuleBase_ModelWidget*>::const_iterator anIt = theWidgets.begin(), aLast =
+ theWidgets.end();
+ for (; anIt != aLast; anIt++) {
+ connect(*anIt, SIGNAL(keyReleased(QKeyEvent*)), this, SIGNAL(keyReleased(QKeyEvent*)));
+
+ connect(*anIt, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*)), this,
+ SLOT(activateNextWidget(ModuleBase_ModelWidget*)));
+ connect(*anIt, SIGNAL(focusInWidget(ModuleBase_ModelWidget*)),
+ this, SLOT(activateWidget(ModuleBase_ModelWidget*)));
+
+ ModuleBase_WidgetPoint2D* aPointWidget = dynamic_cast<ModuleBase_WidgetPoint2D*>(*anIt);
+ if (aPointWidget)
+ connect(aPointWidget, SIGNAL(storedPoint2D(ObjectPtr, const std::string&)), this,
+ SIGNAL(storedPoint2D(ObjectPtr, const std::string&)));
+ }
+ ModuleBase_ModelWidget* aLastWidget = theWidgets.last();
+ if (aLastWidget) {
+ QList<QWidget*> aControls = aLastWidget->getControls();
+ if (!aControls.empty()) {
+ QWidget* aLastControl = aControls.last();