capitalize the application name in GetAppDisplayName() by default; this results in logging message appearance consistent with wx 2.8 and generally looks better
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -131,8 +131,10 @@ public:
|
|||||||
// so the app name could be myapp while display name could be "My App"
|
// so the app name could be myapp while display name could be "My App"
|
||||||
wxString GetAppDisplayName() const
|
wxString GetAppDisplayName() const
|
||||||
{
|
{
|
||||||
return m_appDisplayName.empty() ? GetAppName() : m_appDisplayName;
|
return m_appDisplayName.empty() ? GetAppName().Capitalize()
|
||||||
|
: m_appDisplayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetAppDisplayName(const wxString& name) { m_appDisplayName = name; }
|
void SetAppDisplayName(const wxString& name) { m_appDisplayName = name; }
|
||||||
|
|
||||||
// set/get the app class name
|
// set/get the app class name
|
||||||
|
@@ -76,11 +76,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the user-readable application name.
|
Returns the user-readable application name.
|
||||||
|
|
||||||
The difference between this string and the one returned by GetAppName() is that
|
The difference between this string and the one returned by GetAppName()
|
||||||
this one is meant to be shown to the user and so should be used for the window
|
is that this one is meant to be shown to the user and so should be used
|
||||||
titles, page headers and so on while the other one should be only used internally,
|
for the window titles, page headers and so on while the other one
|
||||||
e.g. for the file names or configuration file keys.
|
should be only used internally, e.g. for the file names or
|
||||||
By default, returns the same string as GetAppName().
|
configuration file keys. By default, returns the application name as
|
||||||
|
returned by GetAppName() capitalized using wxString::Capitalize().
|
||||||
|
|
||||||
@since 2.9.0
|
@since 2.9.0
|
||||||
*/
|
*/
|
||||||
@@ -370,9 +371,14 @@ public:
|
|||||||
virtual bool Pending();
|
virtual bool Pending();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the application name to be used in the user-visible places such as window
|
Set the application name to be used in the user-visible places such as
|
||||||
titles. See GetAppDisplayName() for more about the differences between the
|
window titles.
|
||||||
|
|
||||||
|
See GetAppDisplayName() for more about the differences between the
|
||||||
display name and name.
|
display name and name.
|
||||||
|
|
||||||
|
Notice that if this function is called, the name is used as is, without
|
||||||
|
any capitalization as done by default by GetAppDisplayName().
|
||||||
*/
|
*/
|
||||||
void SetAppDisplayName(const wxString& name);
|
void SetAppDisplayName(const wxString& name);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user