author | mickeyl <mickeyl> | 2003-05-03 18:26:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-03 18:26:18 (UTC) |
commit | d7b68bdcfad0ee98f755c0b76e720a2e30cd57c6 (patch) (unidiff) | |
tree | a6dfe6bd99116122f1edd486594ff386942d53f1 /noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |
parent | 998cfb14d533aadd453949ed70d57203a7bfbd0d (diff) | |
download | opie-d7b68bdcfad0ee98f755c0b76e720a2e30cd57c6.zip opie-d7b68bdcfad0ee98f755c0b76e720a2e30cd57c6.tar.gz opie-d7b68bdcfad0ee98f755c0b76e720a2e30cd57c6.tar.bz2 |
start work on graph window
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiterbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index 9745069..36fbb9a 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -22,24 +22,25 @@ | |||
22 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> |
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qvariant.h> | 24 | #include <qvariant.h> |
25 | #include <qtooltip.h> | 25 | #include <qtooltip.h> |
26 | #include <qwhatsthis.h> | 26 | #include <qwhatsthis.h> |
27 | #include <qimage.h> | 27 | #include <qimage.h> |
28 | #include <qpixmap.h> | 28 | #include <qpixmap.h> |
29 | 29 | ||
30 | #include "logwindow.h" | 30 | #include "logwindow.h" |
31 | #include "hexwindow.h" | 31 | #include "hexwindow.h" |
32 | #include "scanlist.h" | 32 | #include "scanlist.h" |
33 | #include "statwindow.h" | 33 | #include "statwindow.h" |
34 | #include "graphwindow.h" | ||
34 | 35 | ||
35 | #ifdef QWS | 36 | #ifdef QWS |
36 | #include <qpe/resource.h> | 37 | #include <qpe/resource.h> |
37 | #include <opie/otabwidget.h> | 38 | #include <opie/otabwidget.h> |
38 | #else | 39 | #else |
39 | #include "resource.h" | 40 | #include "resource.h" |
40 | #include <qtabwidget.h> | 41 | #include <qtabwidget.h> |
41 | #endif | 42 | #endif |
42 | 43 | ||
43 | 44 | ||
44 | /* | 45 | /* |
45 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 46 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
@@ -70,24 +71,28 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
70 | TabWidget = new QTabWidget( this, "TabWidget" ); | 71 | TabWidget = new QTabWidget( this, "TabWidget" ); |
71 | #endif | 72 | #endif |
72 | ap = new QWidget( TabWidget, "ap" ); | 73 | ap = new QWidget( TabWidget, "ap" ); |
73 | apLayout = new QVBoxLayout( ap ); | 74 | apLayout = new QVBoxLayout( ap ); |
74 | apLayout->setSpacing( 2 ); | 75 | apLayout->setSpacing( 2 ); |
75 | apLayout->setMargin( 2 ); | 76 | apLayout->setMargin( 2 ); |
76 | 77 | ||
77 | //--------- NETVIEW TAB -------------- | 78 | //--------- NETVIEW TAB -------------- |
78 | 79 | ||
79 | netview = new MScanListView( ap ); | 80 | netview = new MScanListView( ap ); |
80 | apLayout->addWidget( netview ); | 81 | apLayout->addWidget( netview ); |
81 | 82 | ||
83 | //--------- GRAPH TAB -------------- | ||
84 | |||
85 | graphwindow = new MGraphWindow( TabWidget, "Graph" ); | ||
86 | |||
82 | //--------- LOG TAB -------------- | 87 | //--------- LOG TAB -------------- |
83 | 88 | ||
84 | logwindow = new MLogWindow( TabWidget, "Log" ); | 89 | logwindow = new MLogWindow( TabWidget, "Log" ); |
85 | 90 | ||
86 | //--------- HEX TAB -------------- | 91 | //--------- HEX TAB -------------- |
87 | 92 | ||
88 | hexwindow = new MHexWindow( TabWidget, "Hex" ); | 93 | hexwindow = new MHexWindow( TabWidget, "Hex" ); |
89 | 94 | ||
90 | //--------- STAT TAB -------------- | 95 | //--------- STAT TAB -------------- |
91 | 96 | ||
92 | statwindow = new MStatWindow( TabWidget, "Stat" ); | 97 | statwindow = new MStatWindow( TabWidget, "Stat" ); |
93 | 98 | ||
@@ -120,30 +125,32 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f | |||
120 | "<hr>\n" | 125 | "<hr>\n" |
121 | "Max Moser<br>\n" | 126 | "Max Moser<br>\n" |
122 | "Martin J. Muench<br>\n" | 127 | "Martin J. Muench<br>\n" |
123 | "Michael Lauer<br><hr>\n" | 128 | "Michael Lauer<br><hr>\n" |
124 | "<b>www.remote-exploit.org</b>\n" | 129 | "<b>www.remote-exploit.org</b>\n" |
125 | "</p>" ) ); | 130 | "</p>" ) ); |
126 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); | 131 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); |
127 | 132 | ||
128 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); | 133 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); |
129 | 134 | ||
130 | #ifdef QWS | 135 | #ifdef QWS |
131 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) ); | 136 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Nets" ) ); |
137 | TabWidget->addTab( graphwindow, "wellenreiter/graph", tr( "Graph" ) ); | ||
132 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); | 138 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); |
133 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); | 139 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); |
134 | TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) ); | 140 | TabWidget->addTab( statwindow, "wellenreiter/stat", tr( "Stat" ) ); |
135 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); | 141 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); |
136 | #else | 142 | #else |
137 | TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); | 143 | TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); |
144 | TabWidget->addTab( graphwindow, /* "wellenreiter/graph", */ tr( "Graph" ) ); | ||
138 | TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); | 145 | TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); |
139 | TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); | 146 | TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); |
140 | TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) ); | 147 | TabWidget->addTab( statwindow, /* "wellenreiter/hex", */ tr( "Stat" ) ); |
141 | TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); | 148 | TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); |
142 | #endif | 149 | #endif |
143 | WellenreiterBaseLayout->addWidget( TabWidget ); | 150 | WellenreiterBaseLayout->addWidget( TabWidget ); |
144 | 151 | ||
145 | #ifdef QWS | 152 | #ifdef QWS |
146 | TabWidget->setCurrentTab( tr( "Nets" ) ); | 153 | TabWidget->setCurrentTab( tr( "Nets" ) ); |
147 | #endif | 154 | #endif |
148 | 155 | ||
149 | } | 156 | } |
@@ -162,17 +169,17 @@ WellenreiterBase::~WellenreiterBase() | |||
162 | */ | 169 | */ |
163 | bool WellenreiterBase::event( QEvent* ev ) | 170 | bool WellenreiterBase::event( QEvent* ev ) |
164 | { | 171 | { |
165 | bool ret = QWidget::event( ev ); | 172 | bool ret = QWidget::event( ev ); |
166 | if ( ev->type() == QEvent::ApplicationFontChange ) { | 173 | if ( ev->type() == QEvent::ApplicationFontChange ) { |
167 | //QFont Log_2_font( Log_2->font() ); | 174 | //QFont Log_2_font( Log_2->font() ); |
168 | //Log_2_font.setFamily( "adobe-courier" ); | 175 | //Log_2_font.setFamily( "adobe-courier" ); |
169 | //Log_2_font.setPointSize( 8 ); | 176 | //Log_2_font.setPointSize( 8 ); |
170 | //Log_2->setFont( Log_2_font ); | 177 | //Log_2->setFont( Log_2_font ); |
171 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 178 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
172 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 179 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
173 | TextLabel1_4_2_font.setPointSize( 10 ); | 180 | TextLabel1_4_2_font.setPointSize( 10 ); |
174 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 181 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
175 | } | 182 | } |
176 | return ret; | 183 | return ret; |
177 | } | 184 | } |
178 | 185 | ||