-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTraceRView.cpp
64 lines (53 loc) · 1.81 KB
/
TraceRView.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*******************************************************
* PortSpy©
*
* @author TheAbstractCompany, YNOP([email protected])
* @vertion beta
* @date October 19 1999
*******************************************************/
#include <AppKit.h>
#include <InterfaceKit.h>
#include "Globals.h"
#include "TraceRView.h"
/*******************************************************
*
*******************************************************/
TraceRView::TraceRView(BRect frame):BView(frame, "", B_FOLLOW_ALL_SIDES, B_FRAME_EVENTS|B_NAVIGABLE){
SetViewColor(216,216,216,0);
BRect b = Bounds();
b.InsetBy(5,5);
BBox *Bb = new BBox(BRect(b.left,b.top,b.right,125),"Box",B_FOLLOW_TOP_BOTTOM);
Bb->SetLabel("");
AddChild(Bb);
BRect t = Bb->Bounds();
BStringView *s = new BStringView(BRect(25,t.bottom/2-20,t.right-10,t.bottom/2),"","At this time it seems to me that TraceRoute (under BeOS sockets) is impossible to accomplish");
Bb->AddChild(s);
BStringView *s2 = new BStringView(BRect(100,t.bottom/2-20,t.right-10,t.bottom/2+20),"","due to the inablility to write raw packets. What do you think?");
Bb->AddChild(s2);
}
/*******************************************************
*
*******************************************************/
TraceRView::~TraceRView(){
}
/*******************************************************
*
*******************************************************/
void TraceRView::KeyDown(const char *bytes, int32 numBytes){
if(numBytes==1){
switch(bytes[0]){
default:
BView::KeyDown(bytes, numBytes);
break;
}
}
}
/*******************************************************
*
*******************************************************/
void TraceRView::MessageReceived(BMessage *msg){
switch(msg->what){
default:
BView::MessageReceived(msg);
}
}