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:
@@ -36,10 +36,20 @@ public:
|
||||
wxString GetName() const
|
||||
{ return m_name.empty() ? wxTheApp->GetAppDisplayName() : m_name; }
|
||||
|
||||
// version of the program, in free format (but without "version" word)
|
||||
void SetVersion(const wxString& version) { m_version = version; }
|
||||
// version should contain program version without "version" word (e.g.,
|
||||
// "1.2" or "RC2") while longVersion may contain the full version including
|
||||
// "version" word (e.g., "Version 1.2" or "Release Candidate 2")
|
||||
//
|
||||
// if longVersion is empty, it is automatically constructed from version
|
||||
//
|
||||
// generic and gtk native: use short version only, as a suffix to the
|
||||
// program name msw and osx native: use long version
|
||||
void SetVersion(const wxString& version,
|
||||
const wxString& longVersion = wxString());
|
||||
|
||||
bool HasVersion() const { return !m_version.empty(); }
|
||||
const wxString& GetVersion() const { return m_version; }
|
||||
const wxString& GetLongVersion() const { return m_longVersion; }
|
||||
|
||||
// brief, but possibly multiline, description of the program
|
||||
void SetDescription(const wxString& desc) { m_description = desc; }
|
||||
@@ -135,6 +145,7 @@ public:
|
||||
private:
|
||||
wxString m_name,
|
||||
m_version,
|
||||
m_longVersion,
|
||||
m_description,
|
||||
m_copyright,
|
||||
m_licence;
|
||||
|
Reference in New Issue
Block a user