Document CanRedo(), Store() and GetCurrentCommand().
Closes #13700.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69871
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
*/
virtual bool CanUndo() const;
*/
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.
/**
Deletes all commands in the list and sets the current command pointer
to @NULL.
*/
wxList& GetCommands();
*/
wxList& GetCommands();
+ /**
+ Returns the current command.
+ */
+ wxCommand *GetCurrentCommand() const;
+
/**
Returns the edit menu associated with the command processor.
*/
/**
Returns the edit menu associated with the command processor.
*/
*/
virtual bool Submit(wxCommand* command, bool storeIt = true);
*/
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.
*/
/**
Undoes the last command executed.
*/