diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp
index b65cfb1..bca4b95 100644
a
|
b
|
class WorkspacesView : public BView {
|
111 | 111 | virtual void MouseDown(BPoint where); |
112 | 112 | |
113 | 113 | private: |
114 | | void _AboutRequested(); |
115 | | |
116 | 114 | void _UpdateParentClipping(); |
117 | 115 | void _ExcludeFromParentClipping(); |
118 | 116 | void _CleanupParentClipping(); |
… |
… |
class WorkspacesApp : public BApplication {
|
147 | 145 | WorkspacesApp(); |
148 | 146 | virtual ~WorkspacesApp(); |
149 | 147 | |
150 | | virtual void AboutRequested(); |
151 | 148 | virtual void ArgvReceived(int32 argc, char **argv); |
152 | 149 | virtual void ReadyToRun(); |
153 | 150 | |
… |
… |
WorkspacesView::Archive(BMessage* archive, bool deep) const
|
398 | 395 | |
399 | 396 | |
400 | 397 | void |
401 | | WorkspacesView::_AboutRequested() |
402 | | { |
403 | | BString text = B_TRANSLATE("Workspaces\n" |
404 | | "written by %1, and %2.\n\n" |
405 | | "Copyright %3, Haiku.\n\n" |
406 | | "Send windows behind using the Option key. " |
407 | | "Move windows to front using the Control key.\n"); |
408 | | text.ReplaceFirst("%1", "François Revol, Axel Dörfler"); |
409 | | text.ReplaceFirst("%2", "Matt Madia"); |
410 | | text.ReplaceFirst("%3", "2002-2008"); |
411 | | |
412 | | BAlert *alert = new BAlert("about", text.String(), B_TRANSLATE("OK")); |
413 | | BTextView *view = alert->TextView(); |
414 | | BFont font; |
415 | | |
416 | | view->SetStylable(true); |
417 | | |
418 | | view->GetFont(&font); |
419 | | font.SetSize(18); |
420 | | font.SetFace(B_BOLD_FACE); |
421 | | view->SetFontAndColor(0, 10, &font); |
422 | | |
423 | | alert->Go(); |
424 | | } |
425 | | |
426 | | |
427 | | void |
428 | 398 | WorkspacesView::AttachedToWindow() |
429 | 399 | { |
430 | 400 | BView* parent = Parent(); |
… |
… |
void
|
497 | 467 | WorkspacesView::MessageReceived(BMessage* message) |
498 | 468 | { |
499 | 469 | switch (message->what) { |
500 | | case B_ABOUT_REQUESTED: |
501 | | _AboutRequested(); |
502 | | break; |
503 | | |
504 | 470 | case kMsgChangeCount: |
505 | 471 | be_roster->Launch(kScreenPrefletSignature); |
506 | 472 | break; |
… |
… |
WorkspacesView::MouseDown(BPoint where)
|
602 | 568 | } |
603 | 569 | |
604 | 570 | menu->AddSeparatorItem(); |
605 | | menu->AddItem(new BMenuItem(B_TRANSLATE("About Workspaces" |
606 | | B_UTF8_ELLIPSIS), new BMessage(B_ABOUT_REQUESTED))); |
607 | 571 | menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"), |
608 | 572 | new BMessage(B_QUIT_REQUESTED))); |
609 | 573 | menu->SetTargetForItems(window); |
… |
… |
WorkspacesWindow::MessageReceived(BMessage *message)
|
755 | 719 | break; |
756 | 720 | } |
757 | 721 | |
758 | | case B_ABOUT_REQUESTED: |
759 | | PostMessage(message, ChildAt(0)); |
760 | | break; |
761 | | |
762 | 722 | case kMsgToggleBorder: |
763 | 723 | { |
764 | 724 | bool enable = false; |
… |
… |
WorkspacesApp::~WorkspacesApp()
|
876 | 836 | |
877 | 837 | |
878 | 838 | void |
879 | | WorkspacesApp::AboutRequested() |
880 | | { |
881 | | fWindow->PostMessage(B_ABOUT_REQUESTED); |
882 | | } |
883 | | |
884 | | |
885 | | void |
886 | 839 | WorkspacesApp::Usage(const char *programName) |
887 | 840 | { |
888 | 841 | printf(B_TRANSLATE("Usage: %s [options] [workspace]\n" |