X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..57c5293e49b50007e8fb19f4953d65d6aeb45293:/docs/latex/wx/cmdproc.tex diff --git a/docs/latex/wx/cmdproc.tex b/docs/latex/wx/cmdproc.tex index 1164bccfe6..e9509feab4 100644 --- a/docs/latex/wx/cmdproc.tex +++ b/docs/latex/wx/cmdproc.tex @@ -8,6 +8,10 @@ if you want different behaviour. \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{See also} \helpref{wxCommandProcessor overview}{wxcommandprocessoroverview}, \helpref{wxCommand}{wxcommand} @@ -16,13 +20,13 @@ if you want different behaviour. \membersection{wxCommandProcessor::wxCommandProcessor} -\func{}{wxCommandProcessor}{\param{int}{ maxCommands = 100}} +\func{}{wxCommandProcessor}{\param{int}{ maxCommands = $-1$}} Constructor. -{\it maxCommands} defaults to a rather arbitrary 100, but can be set from 1 to any integer. -If your wxCommand classes store a lot of data, you may wish the limit the number of -commands stored to a smaller number. +{\it maxCommands} may be set to a positive integer to limit the number of +commands stored to it, otherwise (and by default) the list of commands can grow +arbitrarily. \membersection{wxCommandProcessor::\destruct{wxCommandProcessor}} @@ -34,7 +38,7 @@ Destructor. \func{virtual bool}{CanUndo}{\void} -Returns TRUE if the currently-active command can be undone, FALSE otherwise. +Returns true if the currently-active command can be undone, false otherwise. \membersection{wxCommandProcessor::ClearCommands} @@ -42,9 +46,9 @@ Returns TRUE if the currently-active command can be undone, FALSE otherwise. Deletes all the commands in the list and sets the current command pointer to NULL. -\membersection{wxCommandProcessor::Do} +\membersection{wxCommandProcessor::Redo} -\func{virtual bool}{Do}{\void} +\func{virtual bool}{Redo}{\void} Executes (redoes) the current command (the command that has just been undone if any). @@ -66,6 +70,30 @@ Returns the maximum number of commands that the command processor stores. Returns the edit menu associated with the command processor. +\membersection{wxCommandProcessor::GetRedoAccelerator}\label{wxcommandprocessorgetredoaccelerator} + +\constfunc{const wxString\&}{GetRedoAccelerator}{\void} + +Returns the string that will be appended to the Redo menu item. + +\membersection{wxCommandProcessor::GetRedoMenuLabel}\label{wxcommandprocessorgetredomenulabel} + +\constfunc{wxString}{GetRedoMenuLabel}{\void} + +Returns the string that will be shown for the redo menu item. + +\membersection{wxCommandProcessor::GetUndoAccelerator}\label{wxcommandprocessorgetundoaccelerator} + +\constfunc{const wxString\&}{GetUndoAccelerator}{\void} + +Returns the string that will be appended to the Undo menu item. + +\membersection{wxCommandProcessor::GetUndoMenuLabel}\label{wxcommandprocessorgetundomenulabel} + +\constfunc{wxString}{GetUndoMenuLabel}{\void} + +Returns the string that will be shown for the undo menu item. + \membersection{wxCommandProcessor::Initialize} \func{virtual void}{Initialize}{\void} @@ -83,9 +111,28 @@ menu as appropriate. Set this to NULL if the menu is about to be destroyed and command operations may still be performed, or the command processor may try to access an invalid pointer. +\membersection{wxCommandProcessor::SetMenuStrings} + +\func{void}{SetMenuStrings}{\void} + +Sets the menu labels according to the currently set menu and the current +command state. + +\membersection{wxCommandProcessor::SetRedoAccelerator}\label{wxcommandprocessorsetredoaccelerator} + +\func{void}{SetRedoAccelerator}{\param{const wxString\&}{accel}} + +Sets the string that will be appended to the Redo menu item. + +\membersection{wxCommandProcessor::SetUndoAccelerator}\label{wxcommandprocessorsetundoaccelerator} + +\func{void}{SetUndoAccelerator}{\param{const wxString\&}{accel}} + +Sets the string that will be appended to the Undo menu item. + \membersection{wxCommandProcessor::Submit} -\func{virtual bool}{Submit}{\param{wxCommand *}{command}, \param{bool}{ storeIt = TRUE}} +\func{virtual bool}{Submit}{\param{wxCommand *}{command}, \param{bool}{ storeIt = true}} Submits a new command to the command processor. The command processor calls wxCommand::Do to execute the command; if it succeeds, the command