]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/cmdproc.tex
added GetCurrentPage()
[wxWidgets.git] / docs / latex / wx / cmdproc.tex
index 76310b5d711f8465e5f34c70f72462a94dcda3ae..41dd71b4cd6b26ac084aa9e245d70f73f7ff405b 100644 (file)
@@ -18,53 +18,53 @@ if you want different behaviour.
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxCommandProcessor::wxCommandProcessor}
+\membersection{wxCommandProcessor::wxCommandProcessor}\label{wxcommandprocessorctor}
 
 
-\func{}{wxCommandProcessor}{\param{int}{ maxCommands = 100}}
+\func{}{wxCommandProcessor}{\param{int}{ maxCommands = $-1$}}
 
 Constructor.
 
 
 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}}
+\membersection{wxCommandProcessor::\destruct{wxCommandProcessor}}\label{wxcommandprocessordtor}
 
 \func{}{\destruct{wxCommandProcessor}}{\void}
 
 Destructor.
 
 
 \func{}{\destruct{wxCommandProcessor}}{\void}
 
 Destructor.
 
-\membersection{wxCommandProcessor::CanUndo}
+\membersection{wxCommandProcessor::CanUndo}\label{wxcommandprocessorcanundo}
 
 \func{virtual bool}{CanUndo}{\void}
 
 
 \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}
+\membersection{wxCommandProcessor::ClearCommands}\label{wxcommandprocessorclearcommands}
 
 \func{virtual void}{ClearCommands}{\void}
 
 Deletes all the commands in the list and sets the current command pointer to NULL.
 
 
 \func{virtual void}{ClearCommands}{\void}
 
 Deletes all the commands in the list and sets the current command pointer to NULL.
 
-\membersection{wxCommandProcessor::Do}
+\membersection{wxCommandProcessor::Redo}\label{wxcommandprocessorredo}
 
 
-\func{virtual bool}{Do}{\void}
+\func{virtual bool}{Redo}{\void}
 
 Executes (redoes) the current command (the command that has just been undone if any).
 
 
 Executes (redoes) the current command (the command that has just been undone if any).
 
-\membersection{wxCommandProcessor::GetCommands}
+\membersection{wxCommandProcessor::GetCommands}\label{wxcommandprocessorgetcommands}
 
 \constfunc{wxList\&}{GetCommands}{\void}
 
 Returns the list of commands.
 
 
 \constfunc{wxList\&}{GetCommands}{\void}
 
 Returns the list of commands.
 
-\membersection{wxCommandProcessor::GetMaxCommands}
+\membersection{wxCommandProcessor::GetMaxCommands}\label{wxcommandprocessorgetmaxcommands}
 
 \constfunc{int}{GetMaxCommands}{\void}
 
 Returns the maximum number of commands that the command processor stores.
 
 
 \constfunc{int}{GetMaxCommands}{\void}
 
 Returns the maximum number of commands that the command processor stores.
 
-\membersection{wxCommandProcessor::GetEditMenu}
+\membersection{wxCommandProcessor::GetEditMenu}\label{wxcommandprocessorgeteditmenu}
 
 \constfunc{wxMenu*}{GetEditMenu}{\void}
 
 
 \constfunc{wxMenu*}{GetEditMenu}{\void}
 
@@ -76,13 +76,25 @@ Returns the edit menu associated with the command processor.
 
 Returns the string that will be appended to the Redo menu item.
 
 
 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::GetUndoAccelerator}\label{wxcommandprocessorgetundoaccelerator}
 
 \constfunc{const wxString\&}{GetUndoAccelerator}{\void}
 
 Returns the string that will be appended to the Undo menu item.
 
-\membersection{wxCommandProcessor::Initialize}
+\membersection{wxCommandProcessor::GetUndoMenuLabel}\label{wxcommandprocessorgetundomenulabel}
+
+\constfunc{wxString}{GetUndoMenuLabel}{\void}
+
+Returns the string that will be shown for the undo menu item.
+
+\membersection{wxCommandProcessor::Initialize}\label{wxcommandprocessorinitialize}
 
 \func{virtual void}{Initialize}{\void}
 
 
 \func{virtual void}{Initialize}{\void}
 
@@ -90,7 +102,7 @@ Initializes the command processor, setting the current command to the
 last in the list (if any), and updating the edit menu (if one has been
 specified).
 
 last in the list (if any), and updating the edit menu (if one has been
 specified).
 
-\membersection{wxCommandProcessor::SetEditMenu}
+\membersection{wxCommandProcessor::SetEditMenu}\label{wxcommandprocessorseteditmenu}
 
 \func{void}{SetEditMenu}{\param{wxMenu* }{menu}}
 
 
 \func{void}{SetEditMenu}{\param{wxMenu* }{menu}}
 
@@ -99,6 +111,13 @@ 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.
 
 destroyed and command operations may still be performed, or the command
 processor may try to access an invalid pointer.
 
+\membersection{wxCommandProcessor::SetMenuStrings}\label{wxcommandprocessorsetmenustrings}
+
+\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}}
 \membersection{wxCommandProcessor::SetRedoAccelerator}\label{wxcommandprocessorsetredoaccelerator}
 
 \func{void}{SetRedoAccelerator}{\param{const wxString\&}{accel}}
@@ -111,9 +130,9 @@ Sets the string that will be appended to the Redo menu item.
 
 Sets the string that will be appended to the Undo menu item.
 
 
 Sets the string that will be appended to the Undo menu item.
 
-\membersection{wxCommandProcessor::Submit}
+\membersection{wxCommandProcessor::Submit}\label{wxcommandprocessorsubmit}
 
 
-\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
 
 Submits a new command to the command processor. The command processor
 calls wxCommand::Do to execute the command; if it succeeds, the command
@@ -125,7 +144,7 @@ be deleted directly by the application.
 {\it storeIt} indicates whether the successful command should be stored
 in the history list.
 
 {\it storeIt} indicates whether the successful command should be stored
 in the history list.
 
-\membersection{wxCommandProcessor::Undo}
+\membersection{wxCommandProcessor::Undo}\label{wxcommandprocessorundo}
 
 \func{virtual bool}{Undo}{\void}
 
 
 \func{virtual bool}{Undo}{\void}