X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13b34d3f2be575d59747a5926000be7b28a45dc..ca282726be518ce2f214b890dbaafce736f14e36:/interface/wx/cmdproc.h diff --git a/interface/wx/cmdproc.h b/interface/wx/cmdproc.h index 932cca841c..5d948d6c27 100644 --- a/interface/wx/cmdproc.h +++ b/interface/wx/cmdproc.h @@ -126,6 +126,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 +143,11 @@ public: */ wxList& GetCommands(); + /** + Returns the current command. + */ + wxCommand *GetCurrentCommand() const; + /** Returns the edit menu associated with the command processor. */ @@ -235,6 +246,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. */