added vendor display name (for consistency with app display name &c) (patch 1831303)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -236,6 +236,21 @@ different visuals, false otherwise.
|
|||||||
\helpref{SetUseBestVisual}{wxappsetusebestvisual}
|
\helpref{SetUseBestVisual}{wxappsetusebestvisual}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxApp::GetVendorDisplayName}\label{wxappgetvendordisplayname}
|
||||||
|
|
||||||
|
\constfunc{wxString}{GetVendorDisplayName}{\void}
|
||||||
|
|
||||||
|
Returns the user-readable vendor name. The difference between this string
|
||||||
|
and the one returned by \helpref{GetVendorName}{wxappgetvendorname} is that this one
|
||||||
|
is meant to be shown to the user and so should be used for the window titles,
|
||||||
|
page headers and so on while the other one should be only used internally, e.g.
|
||||||
|
for the file names or configuration file keys.
|
||||||
|
|
||||||
|
By default, returns the same string as \helpref{GetVendorName}{wxappgetvendorname}.
|
||||||
|
|
||||||
|
\newsince{2.9.0}
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxApp::GetVendorName}\label{wxappgetvendorname}
|
\membersection{wxApp::GetVendorName}\label{wxappgetvendorname}
|
||||||
|
|
||||||
\constfunc{wxString}{GetVendorName}{\void}
|
\constfunc{wxString}{GetVendorName}{\void}
|
||||||
@@ -697,6 +712,14 @@ needs to use the top window.
|
|||||||
\helpref{wxApp::GetTopWindow}{wxappgettopwindow}, \helpref{wxApp::OnInit}{wxapponinit}
|
\helpref{wxApp::GetTopWindow}{wxappgettopwindow}, \helpref{wxApp::OnInit}{wxapponinit}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxApp::SetVendorDisplayName}\label{wxappsetvendordisplayname}
|
||||||
|
|
||||||
|
\func{void}{SetVendorDisplayName}{\param{const wxString\& }{name}}
|
||||||
|
|
||||||
|
Set the vendor name to be used in the user-visible places. See
|
||||||
|
\helpref{GetVendorDisplayName}{wxappgetvendordisplayname} for more about
|
||||||
|
the differences between the display name and name.
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxApp::SetVendorName}\label{wxappsetvendorname}
|
\membersection{wxApp::SetVendorName}\label{wxappsetvendorname}
|
||||||
|
|
||||||
|
@@ -143,6 +143,19 @@ public:
|
|||||||
const wxString& GetVendorName() const { return m_vendorName; }
|
const wxString& GetVendorName() const { return m_vendorName; }
|
||||||
void SetVendorName(const wxString& name) { m_vendorName = name; }
|
void SetVendorName(const wxString& name) { m_vendorName = name; }
|
||||||
|
|
||||||
|
// set/get the vendor display name: the display name is shown
|
||||||
|
// in titles/reports/dialogs to the user, while the vendor name
|
||||||
|
// is used in some areas such as wxConfig, wxStandardPaths, etc
|
||||||
|
const wxString& GetVendorDisplayName() const
|
||||||
|
{
|
||||||
|
return m_vendorDisplayName.empty() ? GetVendorName()
|
||||||
|
: m_vendorDisplayName;
|
||||||
|
}
|
||||||
|
void SetVendorDisplayName(const wxString& name)
|
||||||
|
{
|
||||||
|
m_vendorDisplayName = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// cmd line parsing stuff
|
// cmd line parsing stuff
|
||||||
// ----------------------
|
// ----------------------
|
||||||
@@ -346,7 +359,8 @@ protected:
|
|||||||
wxEventLoopBase *CreateMainLoop();
|
wxEventLoopBase *CreateMainLoop();
|
||||||
|
|
||||||
// application info (must be set from the user code)
|
// application info (must be set from the user code)
|
||||||
wxString m_vendorName, // vendor name (e.g. "ACME Inc")
|
wxString m_vendorName, // vendor name ("acme")
|
||||||
|
m_vendorDisplayName, // vendor display name (e.g. "ACME Inc")
|
||||||
m_appName, // app name ("myapp")
|
m_appName, // app name ("myapp")
|
||||||
m_appDisplayName, // app display name ("My Application")
|
m_appDisplayName, // app display name ("My Application")
|
||||||
m_className; // class name
|
m_className; // class name
|
||||||
|
Reference in New Issue
Block a user