foreach (ModuleBase_ModelWidget* aWidget, aWidgets) {
myModule->connectToPropertyPanel(aWidget, isToConnect);
if (isToConnect) {
- connect(aWidget, SIGNAL(valueStateChanged()), this, SLOT(onValueStateChanged()));
+ connect(aWidget, SIGNAL(valueStateChanged(int)), this, SLOT(onWidgetStateChanged(int)));
}
else {
- disconnect(aWidget, SIGNAL(valueStateChanged()), this, SLOT(onValueStateChanged()));
+ disconnect(aWidget, SIGNAL(valueStateChanged(int)), this, SLOT(onWidgetStateChanged(int)));
}
}
}
}
//******************************************************
-}
-
-//******************************************************
-void XGUI_Workshop::onValueStateChanged()
+void XGUI_Workshop::onWidgetStateChanged(int thePreviousState)
{
ModuleBase_ModelWidget* anActiveWidget = 0;
ModuleBase_Operation* anOperation = myOperationMgr->currentOperation();
}
if (anActiveWidget)
operationMgr()->onValidateOperation();
+
+ myModule->widgetStateChanged(thePreviousState);
+}
+
ModuleBase_IModule* XGUI_Workshop::loadModule(const QString& theModule)
{
QString libName = QString::fromStdString(library(theModule.toStdString()));