Implemented B_ABOUT_REQUESTED in TermView, for the replicant version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21752 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
#include "VTkeymap.h"
|
#include "VTkeymap.h"
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Autolock.h>
|
#include <Alert.h>
|
||||||
#include <Beep.h>
|
#include <Beep.h>
|
||||||
#include <Clipboard.h>
|
#include <Clipboard.h>
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
@@ -1620,6 +1620,11 @@ TermView::MessageReceived(BMessage *msg)
|
|||||||
char *ctrl_l = "";
|
char *ctrl_l = "";
|
||||||
|
|
||||||
switch (msg->what){
|
switch (msg->what){
|
||||||
|
case B_ABOUT_REQUESTED:
|
||||||
|
// (replicant) about box requested
|
||||||
|
_AboutRequested();
|
||||||
|
break;
|
||||||
|
|
||||||
case B_SIMPLE_DATA:
|
case B_SIMPLE_DATA:
|
||||||
{
|
{
|
||||||
int32 i = 0;
|
int32 i = 0;
|
||||||
@@ -2474,3 +2479,16 @@ TermView::_FixFontAttributes(BFont &font)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TermView::_AboutRequested()
|
||||||
|
{
|
||||||
|
BAlert *alert = new (std::nothrow) BAlert("about",
|
||||||
|
"Terminal\n"
|
||||||
|
"\twritten by Kazuho Okui and Takashi Murai\n"
|
||||||
|
"\tupdated by Kian Duffy and others\n\n"
|
||||||
|
"\tCopyright " B_UTF8_COPYRIGHT "2003-2007, Haiku.\n", "Ok");
|
||||||
|
if (alert != NULL)
|
||||||
|
alert->Go();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#define CUROFF 0
|
#define CUROFF 0
|
||||||
#define CURON 1
|
#define CURON 1
|
||||||
|
|
||||||
|
|
||||||
class BMessageRunner;
|
class BMessageRunner;
|
||||||
class BPopUpMenu;
|
class BPopUpMenu;
|
||||||
class BScrollBar;
|
class BScrollBar;
|
||||||
@@ -133,10 +134,14 @@ protected:
|
|||||||
private:
|
private:
|
||||||
status_t _InitObject(const char *command);
|
status_t _InitObject(const char *command);
|
||||||
status_t _InitMouseThread(void);
|
status_t _InitMouseThread(void);
|
||||||
|
|
||||||
|
void _AboutRequested();
|
||||||
|
|
||||||
void _DrawLines(int , int, ushort, uchar *, int, int, int, BView *);
|
void _DrawLines(int , int, ushort, uchar *, int, int, int, BView *);
|
||||||
int _TermDraw(const CurPos &start, const CurPos &end);
|
int _TermDraw(const CurPos &start, const CurPos &end);
|
||||||
int _TermDrawRegion(CurPos start, CurPos end);
|
int _TermDrawRegion(CurPos start, CurPos end);
|
||||||
int _TermDrawSelectedRegion(CurPos start, CurPos end);
|
int _TermDrawSelectedRegion(CurPos start, CurPos end);
|
||||||
|
inline void _Redraw(int, int, int, int);
|
||||||
|
|
||||||
void _DoPrint(BRect updateRect);
|
void _DoPrint(BRect updateRect);
|
||||||
void _ResizeScrBarRange (void);
|
void _ResizeScrBarRange (void);
|
||||||
@@ -177,9 +182,10 @@ private:
|
|||||||
BPoint _CurPosToBPoint(const CurPos &pos);
|
BPoint _CurPosToBPoint(const CurPos &pos);
|
||||||
|
|
||||||
bool _CheckSelectedRegion(const CurPos &pos);
|
bool _CheckSelectedRegion(const CurPos &pos);
|
||||||
inline void _Redraw(int, int, int, int);
|
|
||||||
|
|
||||||
void _UpdateSIGWINCH();
|
void _UpdateSIGWINCH();
|
||||||
|
|
||||||
static void _FixFontAttributes(BFont &font);
|
static void _FixFontAttributes(BFont &font);
|
||||||
|
|
||||||
static int32 _MouseTrackingEntryFunction(void *);
|
static int32 _MouseTrackingEntryFunction(void *);
|
||||||
|
|||||||
Reference in New Issue
Block a user