More fixing main window title to be Apple HIG-alike

Originally committed to SVN as r1577.
This commit is contained in:
Niels Martin Hansen 2007-09-22 03:49:18 +00:00
parent 50f6d65ace
commit b20dcaaa5f

View file

@ -767,13 +767,22 @@ void FrameMain::UpdateTitle() {
wxString newTitle = _T("");
#ifndef __WXMAC__
if (subsMod) newTitle << _T("* ");
#endif
if (AssFile::top->filename != _T("")) {
wxFileName file (AssFile::top->filename);
newTitle << file.GetFullName();
}
else newTitle << _T("Untitled");
newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString();
#else
// Apple HIG says "untitled" should not be capitalised
// and the window is a document window, it shouldn't contain the app name
// (The app name is already present in the menu bar)
if (AssFile::top->filename != _T("")) {
wxFileName file (AssFile::top->filename);
newTitle << file.GetFullName();
}
else newTitle << _T("untitled");
#endif
#ifdef __WXMAC__
// On Mac, set the mark in the close button