Diffstat (limited to 'noncore/net/wellenreiter/gui') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/protolistview.cpp | 4 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/resource.cpp | 1 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.cpp | 1 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 9 |
4 files changed, 0 insertions, 15 deletions
diff --git a/noncore/net/wellenreiter/gui/protolistview.cpp b/noncore/net/wellenreiter/gui/protolistview.cpp index daca095..ed22bdd 100644 --- a/noncore/net/wellenreiter/gui/protolistview.cpp +++ b/noncore/net/wellenreiter/gui/protolistview.cpp | |||
@@ -1,50 +1,46 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | /* LOCAL */ | 16 | /* LOCAL */ |
17 | #include "protolistview.h" | 17 | #include "protolistview.h" |
18 | 18 | ||
19 | #include <qcheckbox.h> | 19 | #include <qcheckbox.h> |
20 | #include <qcombobox.h> | 20 | #include <qcombobox.h> |
21 | #include <qhbox.h> | ||
22 | #include <qvbox.h> | 21 | #include <qvbox.h> |
23 | #include <qpalette.h> | ||
24 | #include <qcolor.h> | ||
25 | #include <qlabel.h> | 22 | #include <qlabel.h> |
26 | #include <qframe.h> | ||
27 | 23 | ||
28 | ProtocolListView::ProtocolListView( QWidget* parent, const char* name, WFlags f ) | 24 | ProtocolListView::ProtocolListView( QWidget* parent, const char* name, WFlags f ) |
29 | :QScrollView( parent, name, f ) | 25 | :QScrollView( parent, name, f ) |
30 | { | 26 | { |
31 | parse = ( QString( "parsePackets" ) == QString( name ) ); | 27 | parse = ( QString( "parsePackets" ) == QString( name ) ); |
32 | 28 | ||
33 | setMargins( 3, 3, 0, 0 ); | 29 | setMargins( 3, 3, 0, 0 ); |
34 | viewport()->setBackgroundColor( QCheckBox(0).palette().color( QPalette::Active, QColorGroup::Background ) ); | 30 | viewport()->setBackgroundColor( QCheckBox(0).palette().color( QPalette::Active, QColorGroup::Background ) ); |
35 | 31 | ||
36 | vbox = new QVBox( viewport() ); | 32 | vbox = new QVBox( viewport() ); |
37 | vbox->setSpacing( 1 ); | 33 | vbox->setSpacing( 1 ); |
38 | addChild( vbox ); | 34 | addChild( vbox ); |
39 | 35 | ||
40 | QHBox* hbox = new QHBox( vbox ); | 36 | QHBox* hbox = new QHBox( vbox ); |
41 | hbox->setSpacing( 40 ); | 37 | hbox->setSpacing( 40 ); |
42 | new QLabel( tr( "Protocol Family" ), hbox ); | 38 | new QLabel( tr( "Protocol Family" ), hbox ); |
43 | new QLabel( tr( "Perform Action" ), hbox ); | 39 | new QLabel( tr( "Perform Action" ), hbox ); |
44 | QFrame* frame = new QFrame( vbox ); | 40 | QFrame* frame = new QFrame( vbox ); |
45 | frame->setFrameStyle( QFrame::HLine + QFrame::Sunken ); | 41 | frame->setFrameStyle( QFrame::HLine + QFrame::Sunken ); |
46 | 42 | ||
47 | //TODO: hardcoded for now...a protocol database would be nice!? | 43 | //TODO: hardcoded for now...a protocol database would be nice!? |
48 | 44 | ||
49 | //addProtocol( "Ethernet" ); | 45 | //addProtocol( "Ethernet" ); |
50 | addProtocol( "Prism" ); | 46 | addProtocol( "Prism" ); |
diff --git a/noncore/net/wellenreiter/gui/resource.cpp b/noncore/net/wellenreiter/gui/resource.cpp index a39bbcc..5e5ddc6 100644 --- a/noncore/net/wellenreiter/gui/resource.cpp +++ b/noncore/net/wellenreiter/gui/resource.cpp | |||
@@ -1,44 +1,43 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "resource.h" | 16 | #include "resource.h" |
17 | 17 | ||
18 | #define PIXMAPPATH "/usr/local/share" | 18 | #define PIXMAPPATH "/usr/local/share" |
19 | 19 | ||
20 | #include <qpixmap.h> | ||
21 | #include <qiconset.h> | 20 | #include <qiconset.h> |
22 | 21 | ||
23 | namespace Resource | 22 | namespace Resource |
24 | { | 23 | { |
25 | 24 | ||
26 | QPixmap loadPixmap( const QString& pix ) | 25 | QPixmap loadPixmap( const QString& pix ) |
27 | { | 26 | { |
28 | QString filename; | 27 | QString filename; |
29 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | 28 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); |
30 | QPixmap pixmap( filename ); | 29 | QPixmap pixmap( filename ); |
31 | if ( pixmap.isNull() ) | 30 | if ( pixmap.isNull() ) |
32 | { | 31 | { |
33 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); | 32 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); |
34 | } | 33 | } |
35 | return pixmap; | 34 | return pixmap; |
36 | }; | 35 | }; |
37 | 36 | ||
38 | QIconSet loadIconSet( const QString& pix ) | 37 | QIconSet loadIconSet( const QString& pix ) |
39 | { | 38 | { |
40 | QString filename; | 39 | QString filename; |
41 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | 40 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); |
42 | QPixmap pixmap( filename ); | 41 | QPixmap pixmap( filename ); |
43 | if ( pixmap.isNull() ) | 42 | if ( pixmap.isNull() ) |
44 | { | 43 | { |
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index b42f1df..c75f9b1 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp | |||
@@ -1,47 +1,46 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "scanlist.h" | 16 | #include "scanlist.h" |
17 | #include "configwindow.h" | 17 | #include "configwindow.h" |
18 | #include "logwindow.h" | 18 | #include "logwindow.h" |
19 | 19 | ||
20 | #include <assert.h> | 20 | #include <assert.h> |
21 | #include <qcursor.h> | 21 | #include <qcursor.h> |
22 | #include <qdatetime.h> | 22 | #include <qdatetime.h> |
23 | #include <qtextstream.h> | ||
24 | #include <qpopupmenu.h> | 23 | #include <qpopupmenu.h> |
25 | #include <qcheckbox.h> | 24 | #include <qcheckbox.h> |
26 | 25 | ||
27 | #ifdef QWS | 26 | #ifdef QWS |
28 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
29 | #endif | 28 | #endif |
30 | 29 | ||
31 | #ifdef QWS | 30 | #ifdef QWS |
32 | #include <qpe/resource.h> | 31 | #include <qpe/resource.h> |
33 | #else | 32 | #else |
34 | #include "resource.h" | 33 | #include "resource.h" |
35 | #endif | 34 | #endif |
36 | 35 | ||
37 | const int col_type = 0; | 36 | const int col_type = 0; |
38 | const int col_essid = 0; | 37 | const int col_essid = 0; |
39 | const int col_sig = 1; | 38 | const int col_sig = 1; |
40 | const int col_ap = 2; | 39 | const int col_ap = 2; |
41 | const int col_channel = 3; | 40 | const int col_channel = 3; |
42 | const int col_wep = 4; | 41 | const int col_wep = 4; |
43 | const int col_traffic = 5; | 42 | const int col_traffic = 5; |
44 | const int col_ip = 6; | 43 | const int col_ip = 6; |
45 | const int col_manuf = 7; | 44 | const int col_manuf = 7; |
46 | const int col_firstseen = 8; | 45 | const int col_firstseen = 8; |
47 | const int col_lastseen = 9; | 46 | const int col_lastseen = 9; |
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index c2413dc..b8b6730 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -1,52 +1,43 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ***********************************************************************/ | 14 | ***********************************************************************/ |
15 | 15 | ||
16 | #include "wellenreiterbase.h" | 16 | #include "wellenreiterbase.h" |
17 | 17 | ||
18 | #include <qheader.h> | ||
19 | #include <qlabel.h> | 18 | #include <qlabel.h> |
20 | #include <qlistview.h> | ||
21 | #include <qmultilineedit.h> | ||
22 | #include <qpushbutton.h> | ||
23 | #include <qlayout.h> | 19 | #include <qlayout.h> |
24 | #include <qvariant.h> | ||
25 | #include <qtooltip.h> | ||
26 | #include <qwhatsthis.h> | ||
27 | #include <qimage.h> | ||
28 | #include <qpixmap.h> | ||
29 | 20 | ||
30 | #include "logwindow.h" | 21 | #include "logwindow.h" |
31 | #include "hexwindow.h" | 22 | #include "hexwindow.h" |
32 | #include "scanlist.h" | 23 | #include "scanlist.h" |
33 | #include "statwindow.h" | 24 | #include "statwindow.h" |
34 | #include "graphwindow.h" | 25 | #include "graphwindow.h" |
35 | 26 | ||
36 | #ifdef QWS | 27 | #ifdef QWS |
37 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
38 | #include <opie2/otabwidget.h> | 29 | #include <opie2/otabwidget.h> |
39 | using namespace Opie; | 30 | using namespace Opie; |
40 | #else | 31 | #else |
41 | #include "resource.h" | 32 | #include "resource.h" |
42 | #include <qtabwidget.h> | 33 | #include <qtabwidget.h> |
43 | #endif | 34 | #endif |
44 | 35 | ||
45 | 36 | ||
46 | /* | 37 | /* |
47 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 38 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
48 | * name 'name' and widget flags set to 'f' | 39 | * name 'name' and widget flags set to 'f' |
49 | */ | 40 | */ |
50 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) | 41 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) |
51 | : QWidget( parent, name, fl ) | 42 | : QWidget( parent, name, fl ) |
52 | { | 43 | { |