Follow-up on r41108. Removal of About-windows and menu items.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41115 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2011-03-26 17:29:28 +00:00
parent be348b0216
commit 62769fc6d5
14 changed files with 1 additions and 108 deletions
-1
View File
@@ -1121,7 +1121,6 @@ CalcView::_CreatePopUpMenu()
// preflet.
// fPopUpMenu->AddItem(fAudioFeedbackItem);
fPopUpMenu->AddItem(fShowKeypadItem);
fPopUpMenu->AddSeparatorItem();
}
-1
View File
@@ -79,7 +79,6 @@ FileWindow::FileWindow(BRect rect, entry_ref *ref, const BMessage *settings)
menu->AddSeparatorItem();
// the ProbeView print menu items will be inserted here
menu->AddSeparatorItem();
menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
new BMessage(B_QUIT_REQUESTED), 'Q', B_COMMAND_KEY));
-12
View File
@@ -7,7 +7,6 @@
#include <stdio.h>
#include <AboutWindow.h>
#include <Catalog.h>
#include <Entry.h>
#include <Message.h>
@@ -104,17 +103,6 @@ App::MessageReceived(BMessage* message)
}
void
App::AboutRequested()
{
const char* authors[2];
authors[0] = B_TRANSLATE("Stephan Aßmus (aka stippi)");
authors[1] = NULL;
BString appName = B_TRANSLATE_SYSTEM_NAME("LaunchBox");
BAboutWindow(appName, 2004, authors).Show();
}
void
App::Pulse()
{
-1
View File
@@ -18,7 +18,6 @@ public:
virtual bool QuitRequested();
virtual void ReadyToRun();
virtual void MessageReceived(BMessage* message);
virtual void AboutRequested();
virtual void Pulse();
private:
-3
View File
@@ -252,9 +252,6 @@ MainWindow::MessageReceived(BMessage* message)
case B_PASTE:
case B_MODIFIERS_CHANGED:
break;
case B_ABOUT_REQUESTED:
be_app->PostMessage(message);
break;
default:
BWindow::MessageReceived(message);
break;
-4
View File
@@ -425,10 +425,6 @@ PadView::DisplayMenu(BPoint where, LaunchButton* button) const
// app commands
BMenu* appM = new BMenu(B_TRANSLATE_SYSTEM_NAME("LaunchBox"));
appM->SetFont(be_plain_font);
// about
item = new BMenuItem(B_TRANSLATE("About"), new BMessage(B_ABOUT_REQUESTED));
item->SetTarget(be_app);
appM->AddItem(item);
// quit
item = new BMenuItem(B_TRANSLATE("Quit"), new BMessage(B_QUIT_REQUESTED));
item->SetTarget(be_app);
-26
View File
@@ -144,32 +144,6 @@ TMailApp::~TMailApp()
}
void
TMailApp::AboutRequested()
{
BString aboutText;
aboutText << B_TRANSLATE("Mail\n\n");
int titleLength = aboutText.Length();
aboutText << B_TRANSLATE(
"Written by Robert Polic.\n"
"Enhanced by the Dr. Zoidberg crew.\n\n"
"Copyright 1991-2001, Be Incorporated.\n"
"Copyright 2005-2010 Haiku, Inc.\n");
BAlert *alert = new BAlert("about", aboutText, B_TRANSLATE("OK"));
BTextView *view = alert->TextView();
BFont font;
view->SetStylable(true);
view->GetFont(&font);
font.SetSize(font.Size() + 7.0f);
font.SetFace(B_BOLD_FACE);
view->SetFontAndColor(0, titleLength, &font);
alert->Go();
}
void
TMailApp::ArgvReceived(int32 argc, char **argv)
{
-1
View File
@@ -54,7 +54,6 @@ class TMailApp : public BApplication {
TMailApp();
virtual ~TMailApp();
virtual void AboutRequested();
virtual void ArgvReceived(int32, char**);
virtual void MessageReceived(BMessage*);
virtual bool QuitRequested();
-6
View File
@@ -300,12 +300,6 @@ TMailWindow::TMailWindow(BRect rect, const char* title, TMailApp* app,
new BMessage(M_PRINT), 'P'));
fMenuBar->AddItem(menu);
menu->AddSeparatorItem();
menu->AddItem(item = new BMenuItem(
B_TRANSLATE("About Mail" B_UTF8_ELLIPSIS),
new BMessage(B_ABOUT_REQUESTED)));
item->SetTarget(be_app);
menu->AddSeparatorItem();
menu->AddItem(item = new BMenuItem(B_TRANSLATE("Quit"),
new BMessage(B_QUIT_REQUESTED), 'Q'));
-24
View File
@@ -64,7 +64,6 @@ public:
virtual void ArgvReceived(int32 argc, char** argv);
virtual void MessageReceived(BMessage* message);
virtual void AboutRequested();
virtual bool QuitRequested();
private:
@@ -416,29 +415,6 @@ FileTypes::MessageReceived(BMessage* message)
}
void
FileTypes::AboutRequested()
{
BString aboutText(B_TRANSLATE("FileTypes"));
int32 titleLength = aboutText.Length();
aboutText << "\n";
aboutText << B_TRANSLATE("\twritten by Axel Dörfler\n"
"\tCopyright 2006-2007, Haiku.\n");
BAlert* alert = new BAlert("about", aboutText.String(), B_TRANSLATE("OK"));
BTextView* view = alert->TextView();
BFont font;
view->SetStylable(true);
view->GetFont(&font);
font.SetSize(18);
font.SetFace(B_BOLD_FACE);
view->SetFontAndColor(0, titleLength, &font);
alert->Go();
}
bool
FileTypes::QuitRequested()
{
@@ -345,10 +345,6 @@ FileTypesWindow::FileTypesWindow(const BMessage& settings)
new BMessage(kMsgOpenApplicationTypesWindow)));
menu->AddSeparatorItem();
menu->AddItem(new BMenuItem(B_TRANSLATE("About FileTypes" B_UTF8_ELLIPSIS),
new BMessage(B_ABOUT_REQUESTED)));
menu->AddSeparatorItem();
menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
new BMessage(B_QUIT_REQUESTED), 'Q', B_COMMAND_KEY));
menu->SetTargetForItems(be_app);
+1 -17
View File
@@ -10,22 +10,18 @@
#include "ShortcutsApp.h"
#include <Alert.h>
#include <Catalog.h>
#include <Locale.h>
#include "ShortcutsWindow.h"
#define APPLICATION_SIGNATURE "application/x-vnd.Haiku-Shortcuts"
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "ShortcutsApp"
ShortcutsApp::ShortcutsApp()
:
BApplication(APPLICATION_SIGNATURE)
BApplication("application/x-vnd.Haiku-Shortcuts")
{
}
@@ -41,15 +37,3 @@ ShortcutsApp::ReadyToRun()
ShortcutsApp::~ShortcutsApp()
{
}
void
ShortcutsApp::AboutRequested()
{
BAlert* alert = new BAlert(B_TRANSLATE("About Shortcuts"),
B_TRANSLATE("Shortcuts\n\n"
"Based on SpicyKeys for BeOS made by Jeremy Friesner."),
B_TRANSLATE("OK"));
alert->Go();
}
-1
View File
@@ -18,7 +18,6 @@ public:
ShortcutsApp();
~ShortcutsApp();
virtual void ReadyToRun();
virtual void AboutRequested();
};
@@ -121,9 +121,6 @@ ShortcutsWindow::ShortcutsWindow()
B_TRANSLATE("Save KeySet as" B_UTF8_ELLIPSIS),
new BMessage(SAVE_KEYSET_AS), 'S'));
fileMenu->AddItem(new BSeparatorItem);
fileMenu->AddItem(new BMenuItem(B_TRANSLATE("About Shortcuts"),
new BMessage(B_ABOUT_REQUESTED)));
fileMenu->AddItem(new BSeparatorItem);
fileMenu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
new BMessage(B_QUIT_REQUESTED), 'Q'));
menuBar->AddItem(fileMenu);
@@ -537,10 +534,6 @@ ShortcutsWindow::MessageReceived(BMessage* msg)
break;
}
case B_ABOUT_REQUESTED:
be_app_messenger.SendMessage(B_ABOUT_REQUESTED);
break;
case ADD_HOTKEY_ITEM:
_AddNewSpec(NULL);
break;