Salome HOME
Providing Action class to have a common approach to start/finish/abort model transact...
authornds <nds@opencascade.com>
Wed, 26 Aug 2015 09:08:43 +0000 (12:08 +0300)
committernds <nds@opencascade.com>
Wed, 26 Aug 2015 09:09:08 +0000 (12:09 +0300)
commit03936c76cd52c555961e4636e640c12fe2d47f2f
treec5daa583cb5b0031e67a2b64e5047ffce4e8b3bf
parent7c06295aea6523048b676312fbeb5da673c0659d
Providing Action class to have a common approach to start/finish/abort model transactions for such actions as Delete/Detach and others.

The common functionality:
1.On the start of the action, the message about aborting the previous operation should be shown.
2. On commit, ApplyAll button[sketch operation] enable state should be updated, SetModified[sketch operation] of the parent operation update[in order to have a message about aborting transaction].
In the current integration, ModuleBase_Operation is separated to ModuleBase_OperationFeature and ModuleBase_OperationAction.
18 files changed:
src/ModuleBase/CMakeLists.txt
src/ModuleBase/ModuleBase_IModule.cpp
src/ModuleBase/ModuleBase_Operation.cpp
src/ModuleBase/ModuleBase_Operation.h
src/ModuleBase/ModuleBase_OperationAction.cpp [new file with mode: 0755]
src/ModuleBase/ModuleBase_OperationAction.h [new file with mode: 0755]
src/ModuleBase/ModuleBase_OperationFeature.cpp [new file with mode: 0755]
src/ModuleBase/ModuleBase_OperationFeature.h [new file with mode: 0755]
src/PartSet/PartSet_MenuMgr.cpp
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_SketcherMgr.cpp
src/PartSet/PartSet_SketcherMgr.h
src/PartSet/PartSet_WidgetSketchCreator.cpp
src/XGUI/XGUI_ActionsMgr.cpp
src/XGUI/XGUI_ErrorMgr.cpp
src/XGUI/XGUI_OperationMgr.cpp
src/XGUI/XGUI_Workshop.cpp
src/XGUI/XGUI_WorkshopListener.cpp