]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_FacesPanel.h
Salome HOME
add 'undo' shorcut on Hide Faces panel selection. WARNING The delete feature is stran...
[modules/shaper.git] / src / XGUI / XGUI_FacesPanel.h
index 7515fd9cb41b30b05670d63afac24745b166fabd..467f525ba4cc628640a89f3413fd4f1729211e9a 100644 (file)
@@ -121,6 +121,9 @@ public:
   /// \return whether the delete action is processed
   bool processDelete();
 
+  /// Delete last(s) item(s) added since the recent activation of the faces panel
+  void processUndo();
+
   /// Processing focus in/out for the faces control
   /// \param theObject source object of event
   /// \param theEvent an event
@@ -200,6 +203,7 @@ private:
 
   bool myIsActive; ///< current state about the panel is active
   int myLastItemIndex; ///< last index to be used in the map of items for the next added item
+  std::vector<int> myUndoList; ///< indexes of items for undo
 
   QMap<int, ModuleBase_ViewerPrsPtr> myItems; ///< selected face items
   std::set<ObjectPtr > myItemObjects; ///< cached objects of myItems
@@ -207,4 +211,4 @@ private:
   std::set<ObjectPtr > myHiddenGroups; ///< hidden objects
 };
 
-#endif
\ No newline at end of file
+#endif