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:
Vadim Zeitlin 2008-08-01 23:47:22 +00:00
parent 0c7db140c5
commit 328fafa1db
2 changed files with 16 additions and 8 deletions

View File

@ -131,8 +131,10 @@ public:
// so the app name could be myapp while display name could be "My App"
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; }
// set/get the app class name

View File

@ -76,11 +76,12 @@ public:
/**
Returns the user-readable application name.
The difference between this string and the one returned by GetAppName() 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 GetAppName().
The difference between this string and the one returned by GetAppName()
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 application name as
returned by GetAppName() capitalized using wxString::Capitalize().
@since 2.9.0
*/
@ -370,9 +371,14 @@ public:
virtual bool Pending();
/**
Set the application name to be used in the user-visible places such as window
titles. See GetAppDisplayName() for more about the differences between the
Set the application name to be used in the user-visible places such as
window titles.
See GetAppDisplayName() for more about the differences between the
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);