X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Workshop.h;h=1cf400d0f89a52956cf8e9d05516641cfea30c80;hb=4b713fff3138a7cea908a85b58ed90cf99cfacd1;hp=a79b8e20970b8477fd6fafb4161d5f22d3820b7f;hpb=9e10a25021a539ae9bb44e85e244a8e3fa8119ed;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index a79b8e209..1cf400d0f 100644 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -385,6 +385,13 @@ signals: /// Displaus object and fit all viewer if the object is first (update viewer will not be called) void displayObject(ObjectPtr theObj); + //! Extends undo/redo toolbutton's with history menu + //! \param theObject - in the OpenParts it is a QToolButton by itself, + //! in salome mode - QAction that creates a button. + //! \param theSignal - void "updateUndoHistory" or "updateRedoHistory" SIGNAL; + //! \param theSlot - onUndo(int) or onRedo(int) SLOT + void addHistoryMenu(QObject* theObject, const char* theSignal, const char* theSlot); + private: AppElements_MainWindow* myMainWindow; ModuleBase_IModule* myModule;