| 803 | } |
| 804 | |
| 805 | void App::updateDisplayTitleBar() |
| 806 | { |
| 807 | std::string defaultTitle = PACKAGE_AND_VERSION; |
| 808 | std::string title; |
| 809 | |
| 810 | DocumentView* docView = UIContext::instance()->activeView(); |
| 811 | if (docView) { |
| 812 | // Prepend the document's filename. |
| 813 | title += docView->document()->name(); |
| 814 | title += " - "; |
| 815 | } |
| 816 | |
| 817 | title += defaultTitle; |
| 818 | she::instance()->defaultDisplay()->setTitleBar(title); |
| 819 | } |
| 820 | |
| 821 | InputChain& App::inputChain() |
| 822 | { |
no test coverage detected