Allow setting long version field in About dialog.

Long version is constructed by concatenating "Version " with the short version but can be overridden for the platforms which use it (currently MSW and OS X).

Closes 11027.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-25 22:53:23 +00:00
parent 1c54277e53
commit 704006b381
8 changed files with 59 additions and 13 deletions

View File

@@ -148,10 +148,19 @@ public:
void SetTranslators(const wxArrayString& translators);
/**
Set the version of the program. The version is in free format, i.e. not
necessarily in the @c x.y.z form but it shouldn't contain the "version" word.
Set the version of the program. The word "version" shouldn't be included
in @a version. Example @a version values: "1.2" and "RC2". In about dialogs
with more space set aside for version information, @a longVersion is used.
Example @a longVersion values: "Version 1.2" and "Release Candidate 2".
If @a version is non-empty but @a longVersion is empty, a long version
is constructed automatically, using @a version (by simply prepending
"Version " to @a version).
The generic about dialog and native GTK+ dialog use @a version only,
as a suffix to the program name. The native MSW and OS X about dialogs
use the long version.
*/
void SetVersion(const wxString& version);
void SetVersion(const wxString& version, const wxString& longVersion = wxString());
/**
Set the web site for the program and its description (which defaults to @a url