Cleaned up SetMenuStrings, factoring out redo and undo label accessors at the same time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -20,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}}
|
||||
|
||||
@@ -76,12 +76,24 @@ Returns the edit menu associated with the command processor.
|
||||
|
||||
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}
|
||||
@@ -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.
|
||||
|
||||
\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}}
|
||||
|
Reference in New Issue
Block a user