X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9c95884805a56442482036cd204e56c47a03d2c..180b5b4827d08f1ac13bbb5eca03f775ab35a0b1:/docs/latex/wx/cmdlpars.tex?ds=sidebyside diff --git a/docs/latex/wx/cmdlpars.tex b/docs/latex/wx/cmdlpars.tex index fcdbc0d457..8dd937c1a9 100644 --- a/docs/latex/wx/cmdlpars.tex +++ b/docs/latex/wx/cmdlpars.tex @@ -53,6 +53,10 @@ No base class +\wxheading{Library} + +\helpref{wxBase}{librarieslist} + \wxheading{Constants} The structure wxCmdLineEntryDesc is used to describe the one command @@ -65,9 +69,9 @@ this structure: struct wxCmdLineEntryDesc { wxCmdLineEntryType kind; - const wxChar *shortName; - const wxChar *longName; - const wxChar *description; + wxString shortName; + wxString longName; + wxString description; wxCmdLineParamType type; int flags; }; @@ -89,7 +93,7 @@ enum wxCmdLineEntryType } The field {\tt shortName} is the usual, short, name of the switch or the option. -{\tt longName} is the corresponding long name or NULL if the option has no long +{\tt longName} is the corresponding long name or empty if the option has no long name. Both of these fields are unused for the parameters. Both the short and long option names can contain only letters, digits and the underscores. @@ -163,15 +167,15 @@ the only restriction is that it must be done before calling \helpref{Parse}{wxcmdlineparserparse}. To specify the command line to parse you may use either one of constructors -accepting it (\tt{wxCmdLineParser(argc, argv)} or \tt{wxCmdLineParser(const wxString&)} usually) +accepting it (\tt{wxCmdLineParser(argc, argv)} or \tt{wxCmdLineParser(const wxString&)} usually) or, if you use the default constructor, you can do it later by calling \helpref{SetCmdLine}{wxcmdlineparsersetcmdline}. The same holds for command line description: it can be specified either in -the constructor (\helpref{without command line}{wxcmdlineparserwxcmdlineparserdesc} or -\helpref{together with it}{wxcmdlineparserwxcmdlineparserdescargc}) or -constructed later using either \helpref{SetDesc}{wxcmdlineparsersetdesc} or -combination of \helpref{AddSwitch}{wxcmdlineparseraddswitch}, +the \helpref{constructor}{wxcmdlineparserwxcmdlineparserctor} (with or without +the command line itself) or constructed later using either +\helpref{SetDesc}{wxcmdlineparsersetdesc} or combination of +\helpref{AddSwitch}{wxcmdlineparseraddswitch}, \helpref{AddOption}{wxcmdlineparseraddoption} and \helpref{AddParam}{wxcmdlineparseraddparam} methods. @@ -240,7 +244,7 @@ command line or false if they were not specified. }} -\membersection{wxCmdLineParser::wxCmdLineParser}\label{wxcmdlineparserwxcmdlineparser} +\membersection{wxCmdLineParser::wxCmdLineParser}\label{wxcmdlineparserwxcmdlineparserctor} \func{}{wxCmdLineParser}{\void}