]> git.saurik.com Git - wxWidgets.git/commitdiff
Document more wxCommandProcessor methods.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2011 09:21:37 +0000 (09:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2011 09:21:37 +0000 (09:21 +0000)
Document CanRedo(), Store() and GetCurrentCommand().

Closes #13700.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/cmdproc.h

index 932cca841c84fb1b1fb1df72a40a893dbba20f15..5d948d6c27e0a6e4428f2027f2509db0b65cc677 100644 (file)
@@ -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.
     */