Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bos #29480 Merge branch 'CR29480'
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Workshop.cpp
diff --git
a/src/XGUI/XGUI_Workshop.cpp
b/src/XGUI/XGUI_Workshop.cpp
index d5b78f0e0f312c0dc52ce5ab72268cf6426abb07..febea937bccd31377007d727e76eb45294ccd7a7 100644
(file)
--- a/
src/XGUI/XGUI_Workshop.cpp
+++ b/
src/XGUI/XGUI_Workshop.cpp
@@
-1775,6
+1775,8
@@
void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked)
cleanHistory();
else if (theId == "MOVE_CMD" || theId == "MOVE_SPLIT_CMD")
moveObjects(theId == "MOVE_SPLIT_CMD");
cleanHistory();
else if (theId == "MOVE_CMD" || theId == "MOVE_SPLIT_CMD")
moveObjects(theId == "MOVE_SPLIT_CMD");
+ else if (theId == "RECOVER_CMD")
+ recoverFeature();
else if (theId == "COLOR_CMD")
changeColor(anObjects);
else if (theId == "AUTOCOLOR_CMD")
else if (theId == "COLOR_CMD")
changeColor(anObjects);
else if (theId == "AUTOCOLOR_CMD")
@@
-2289,6
+2291,15
@@
void XGUI_Workshop::moveObjects(const bool theSplit)
myViewerProxy->update();
}
myViewerProxy->update();
}
+void XGUI_Workshop::recoverFeature()
+{
+ if (!abortAllOperations())
+ return;
+
+ static const QString RECOVER_OP_NAME = "Recover";
+ module()->launchOperation(RECOVER_OP_NAME, false);
+}
+
//**************************************************************
bool XGUI_Workshop::deleteFeatures(const QObjectPtrList& theObjects)
{
//**************************************************************
bool XGUI_Workshop::deleteFeatures(const QObjectPtrList& theObjects)
{