X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13b34d3f2be575d59747a5926000be7b28a45dc..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/cmdproc.h?ds=sidebyside diff --git a/interface/wx/cmdproc.h b/interface/wx/cmdproc.h index 932cca841c..123d4db17a 100644 --- a/interface/wx/cmdproc.h +++ b/interface/wx/cmdproc.h @@ -2,7 +2,6 @@ // Name: cmdproc.h // Purpose: interface of wxCommandProcessor and wxCommand // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -126,6 +125,12 @@ public: */ virtual bool CanUndo() const; + /** + Returns @true if the currently-active command can be redone, @false + otherwise. + */ + virtual bool CanRedo() const; + /** Deletes all commands in the list and sets the current command pointer to @NULL. @@ -137,6 +142,11 @@ public: */ wxList& GetCommands(); + /** + Returns the current command. + */ + wxCommand *GetCurrentCommand() const; + /** Returns the edit menu associated with the command processor. */ @@ -235,6 +245,12 @@ public: */ virtual bool Submit(wxCommand* command, bool storeIt = true); + /** + Just store the command without executing it. The command is stored in the + history list, and the associated edit menu (if any) updated appropriately. + */ + virtual void Store(wxCommand *command); + /** Undoes the last command executed. */