Added accelerators to Undo/Redo menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
wxCmdLineParser is a class for parsing command line.
|
||||
|
||||
It has the following features:
|
||||
\begin{enumerate}
|
||||
|
||||
\begin{enumerate}\itemsep=0pt
|
||||
\item distinguishes options, switches and parameters; allows option grouping
|
||||
\item allows both short and long options
|
||||
\item automatically generates the usage message from the command line description
|
||||
@@ -22,7 +23,8 @@ It has the following features:
|
||||
\end{enumerate}
|
||||
|
||||
To use it you should follow these steps:
|
||||
\begin{enumerate}
|
||||
|
||||
\begin{enumerate}\itemsep=0pt
|
||||
\item \helpref{construct}{wxcmdlineparserconstruction} an object of this class
|
||||
giving it the command line to parse and optionally its description or use
|
||||
{\tt AddXXX()} functions later
|
||||
@@ -73,7 +75,9 @@ struct wxCmdLineEntryDesc
|
||||
|
||||
The type of a command line entity is in the {\tt kind} field and may be one of
|
||||
the following constants:
|
||||
{\small \begin{verbatim}
|
||||
|
||||
{\small%
|
||||
\begin{verbatim}
|
||||
enum wxCmdLineEntryType
|
||||
{
|
||||
wxCMD\_LINE\_SWITCH,
|
||||
@@ -93,7 +97,9 @@ to construct a help message explaining the syntax of the program.
|
||||
|
||||
The possible values of {\tt type} which specifies the type of the value accepted
|
||||
by an option or parameter are:
|
||||
{\small \begin{verbatim}
|
||||
|
||||
{\small%
|
||||
\begin{verbatim}
|
||||
enum wxCmdLineParamType
|
||||
{
|
||||
wxCMD\_LINE\_VAL\_STRING, // default
|
||||
@@ -104,7 +110,9 @@ enum wxCmdLineParamType
|
||||
\end{verbatim}}
|
||||
|
||||
Finally, the {\tt flags} field is a combination of the following bit masks:
|
||||
{\small \begin{verbatim}
|
||||
|
||||
{\small%
|
||||
\begin{verbatim}
|
||||
enum
|
||||
{
|
||||
wxCMD\_LINE\_OPTION\_MANDATORY = 0x01, // this option must be given
|
||||
|
@@ -70,6 +70,18 @@ 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::GetUndoAccelerator}\label{wxcommandprocessorgetundoaccelerator}
|
||||
|
||||
\constfunc{const wxString\&}{GetUndoAccelerator}{\void}
|
||||
|
||||
Returns the string that will be appended to the Undo menu item.
|
||||
|
||||
\membersection{wxCommandProcessor::Initialize}
|
||||
|
||||
\func{virtual void}{Initialize}{\void}
|
||||
@@ -87,6 +99,18 @@ 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::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}}
|
||||
|
Reference in New Issue
Block a user