X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b91c4601f2cc8fab375dc49a0a1222d58065cfdb..58cc15871d1a5ec5a6cc17f50be3e2006f57571f:/interface/wx/cmdproc.h diff --git a/interface/wx/cmdproc.h b/interface/wx/cmdproc.h index e81879174a..932cca841c 100644 --- a/interface/wx/cmdproc.h +++ b/interface/wx/cmdproc.h @@ -3,7 +3,7 @@ // Purpose: interface of wxCommandProcessor and wxCommand // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -75,7 +75,7 @@ public: know the ordering of Undos; the user can never Undo at an arbitrary position in the command history. - Restore the entire document state (perhaps using document - transactioning). Potentially very inefficient, but possibly easier to + transacting). Potentially very inefficient, but possibly easier to code if the user interface and data are complex, and an "inverse execute" operation is hard to write. The docview sample uses the first method, to remove or restore segments in the drawing. @@ -219,13 +219,16 @@ public: void SetUndoAccelerator(const wxString& accel); /** - Submits a new command to the command processor. The command processor - calls wxCommand::Do() to execute the command; if it succeeds, the - command is stored in the history list, and the associated edit menu (if - any) updated appropriately. If it fails, the command is deleted - immediately. Once Submit() has been called, the passed command should - not be deleted directly by the application. + Submits a new command to the command processor. + The command processor calls wxCommand::Do() to execute the command; + if it succeeds, the command is stored in the history list, and the + associated edit menu (if any) updated appropriately. + If it fails, the command is deleted immediately. Once Submit() has been + called, the passed command should not be deleted directly by the application. + + @param command + The command to submit @param storeIt Indicates whether the successful command should be stored in the history list.