make GetUsageString() public, this is useful at least for the tests

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-05-11 23:46:24 +00:00
parent 2d63583fba
commit 16b627b06a
2 changed files with 10 additions and 3 deletions

View File

@@ -192,6 +192,9 @@ public:
// give the usage message describing all program options // give the usage message describing all program options
void Usage() const; void Usage() const;
// return the usage string, call Usage() to directly show it to the user
wxString GetUsageString() const;
// get the command line arguments // get the command line arguments
// ------------------------------ // ------------------------------
@@ -229,9 +232,6 @@ public:
static wxArrayString ConvertStringToArgs(const wxString& cmdline); static wxArrayString ConvertStringToArgs(const wxString& cmdline);
private: private:
// get usage string
wxString GetUsageString() const;
// common part of all ctors // common part of all ctors
void Init(); void Init();

View File

@@ -430,5 +430,12 @@ public:
@see SetLogo() @see SetLogo()
*/ */
void Usage() const; void Usage() const;
/**
Return the string containing the program usage description.
Call Usage() to directly show this string to the user.
*/
wxString GetUsageString() const;
}; };