[haiku-commits] r41128 - haiku/trunk/src/apps/terminal

  • From: jonas@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 27 Mar 2011 23:59:50 +0200 (CEST)

Author: kirilla
Date: 2011-03-27 23:59:49 +0200 (Sun, 27 Mar 2011)
New Revision: 41128
Changeset: https://dev.haiku-os.org/changeset/41128

Modified:
   haiku/trunk/src/apps/terminal/TermApp.cpp
   haiku/trunk/src/apps/terminal/TermApp.h
   haiku/trunk/src/apps/terminal/TermView.cpp
   haiku/trunk/src/apps/terminal/TermView.h
   haiku/trunk/src/apps/terminal/TermWindow.cpp
Log:
Removal of the About window.

Modified: haiku/trunk/src/apps/terminal/TermApp.cpp
===================================================================
--- haiku/trunk/src/apps/terminal/TermApp.cpp   2011-03-27 19:14:55 UTC (rev 
41127)
+++ haiku/trunk/src/apps/terminal/TermApp.cpp   2011-03-27 21:59:49 UTC (rev 
41128)
@@ -31,7 +31,6 @@
 #include "Globals.h"
 #include "PrefHandler.h"
 #include "TermConst.h"
-#include "TermView.h"
 #include "TermWindow.h"
 
 
@@ -144,13 +143,6 @@
 
 
 void
-TermApp::AboutRequested()
-{
-       TermView::AboutRequested();
-}
-
-
-void
 TermApp::MessageReceived(BMessage* message)
 {
        switch (message->what) {

Modified: haiku/trunk/src/apps/terminal/TermApp.h
===================================================================
--- haiku/trunk/src/apps/terminal/TermApp.h     2011-03-27 19:14:55 UTC (rev 
41127)
+++ haiku/trunk/src/apps/terminal/TermApp.h     2011-03-27 21:59:49 UTC (rev 
41128)
@@ -52,7 +52,6 @@
        virtual void                            ReadyToRun();
        virtual bool                            QuitRequested();
        virtual void                            Quit();
-       virtual void                            AboutRequested();
        virtual void                            MessageReceived(BMessage* 
message);
        virtual void                            RefsReceived(BMessage* message);
        virtual void                            ArgvReceived(int32 argc, char** 
argv);

Modified: haiku/trunk/src/apps/terminal/TermView.cpp
===================================================================
--- haiku/trunk/src/apps/terminal/TermView.cpp  2011-03-27 19:14:55 UTC (rev 
41127)
+++ haiku/trunk/src/apps/terminal/TermView.cpp  2011-03-27 21:59:49 UTC (rev 
41128)
@@ -1790,11 +1790,6 @@
        }
 
        switch (msg->what){
-               case B_ABOUT_REQUESTED:
-                       // (replicant) about box requested
-                       AboutRequested();
-                       break;
-
                case B_SIMPLE_DATA:
                case B_REFS_RECEIVED:
                {
@@ -3090,23 +3085,7 @@
 }
 
 
-/* static */
 void
-TermView::AboutRequested()
-{
-       BAlert *alert = new (std::nothrow) BAlert("about",
-               B_TRANSLATE("Terminal\n\n"
-                       "written by Kazuho Okui and Takashi Murai\n"
-                       "updated by Kian Duffy and others\n\n"
-                       "Copyright " B_UTF8_COPYRIGHT "2003-2009, Haiku.\n"),
-               B_TRANSLATE("OK"));
-       alert->SetShortcut(0, B_ESCAPE);
-       if (alert != NULL)
-               alert->Go();
-}
-
-
-void
 TermView::_ScrollTo(float y, bool scrollGfx)
 {
        if (!scrollGfx)

Modified: haiku/trunk/src/apps/terminal/TermView.h
===================================================================
--- haiku/trunk/src/apps/terminal/TermView.h    2011-03-27 19:14:55 UTC (rev 
41127)
+++ haiku/trunk/src/apps/terminal/TermView.h    2011-03-27 21:59:49 UTC (rev 
41128)
@@ -104,7 +104,6 @@
                        void                            InitiateDrag();
 
                        void                            DisableResizeView(int32 
disableCount = 1);
-       static  void                            AboutRequested();
 
                        void                            SetListener(Listener* 
listener)
                                                                        { 
fListener = listener; }

Modified: haiku/trunk/src/apps/terminal/TermWindow.cpp
===================================================================
--- haiku/trunk/src/apps/terminal/TermWindow.cpp        2011-03-27 19:14:55 UTC 
(rev 41127)
+++ haiku/trunk/src/apps/terminal/TermWindow.cpp        2011-03-27 21:59:49 UTC 
(rev 41128)
@@ -435,9 +435,6 @@
                        .AddItem(B_TRANSLATE("Page setup" B_UTF8_ELLIPSIS), 
MENU_PAGE_SETUP)
                        .AddItem(B_TRANSLATE("Print"), MENU_PRINT,'P')
                        .AddSeparator()
-                       .AddItem(B_TRANSLATE("About Terminal" B_UTF8_ELLIPSIS),
-                               B_ABOUT_REQUESTED)
-                       .AddSeparator()
                        .AddItem(B_TRANSLATE("Close window"), B_QUIT_REQUESTED, 
'W',
                                B_SHIFT_KEY)
                        .AddItem(B_TRANSLATE("Close active tab"), kCloseView, 
'W')
@@ -618,10 +615,6 @@
                        _ActiveTermView()->SelectAll();
                        break;
 
-               case B_ABOUT_REQUESTED:
-                       be_app->PostMessage(B_ABOUT_REQUESTED);
-                       break;
-
                case MENU_CLEAR_ALL:
                        _ActiveTermView()->Clear();
                        break;


Other related posts: