#include "XGUI_Displayer.h"
#include "XGUI_OperationMgr.h"
#include "XGUI_SalomeConnector.h"
+#include "XGUI_ActionsMgr.h"
#include <ModelAPI_PluginManager.h>
#include <ModelAPI_Feature.h>
mySelector = new XGUI_SelectionMgr(this);
connect(mySelector, SIGNAL(selectionChanged()), this, SLOT(changeCurrentDocument()));
myOperationMgr = new XGUI_OperationMgr(this);
+ myActionsMgr = new XGUI_ActionsMgr(this);
connect(myOperationMgr, SIGNAL(operationStarted()), this, SLOT(onOperationStarted()));
connect(myOperationMgr, SIGNAL(operationStopped(ModuleBase_Operation*)),
this, SLOT(onOperationStopped(ModuleBase_Operation*)));
hidePropertyPanel();
updateCommandStatus();
- if (myMainWindow) {
- XGUI_MainMenu* aMenu = myMainWindow->menuObject();
- aMenu->restoreCommandState();
- }
+ if (myMainWindow) {
+ myActionsMgr->restoreCommandState();
+ }
}
}
QString::fromStdString(theMessage->tooltip()),
QIcon(theMessage->icon().c_str()),
QKeySequence(), isUsePropPanel);
-
- connect(aCommand, SIGNAL(toggled(bool)),
- myMainWindow->menuObject(), SLOT(onFeatureChecked(bool)));
+ myActionsMgr->addCommand(aCommand);
myPartSetModule->featureCreated(aCommand);
}
}
aCommand = aMenu->feature(theOperation->operationId());
}
//Abort operation on uncheck the command
- connect(aCommand, SIGNAL(toggled(bool)), theOperation, SLOT(setRunning(bool)));
+ connect(aCommand, SIGNAL(triggered(bool)), theOperation, SLOT(setRunning(bool)));
}
//******************************************************
void XGUI_Workshop::salomeViewerSelectionChanged()
{
emit salomeViewerSelection();
-}
\ No newline at end of file
+}