author | mickeyl <mickeyl> | 2002-12-28 18:57:11 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-28 18:57:11 (UTC) |
commit | f70916f3ab05917a3d0dda64beb8db5ac16448ab (patch) (unidiff) | |
tree | bd138c1a901de7ea49b012b32e48d3f4b8b073f8 /noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |
parent | 1362726346f1ab497ad5822db1a9b284f5bdaa1a (diff) | |
download | opie-f70916f3ab05917a3d0dda64beb8db5ac16448ab.zip opie-f70916f3ab05917a3d0dda64beb8db5ac16448ab.tar.gz opie-f70916f3ab05917a3d0dda64beb8db5ac16448ab.tar.bz2 |
- refactored a number of classes
- removed dumb polling ==> QSocketNotifier rocks
- switched to parsing the daemon stuff in the gui,
since libwellenreiter still has problems.
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiterbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index 5017b08..d6b9891 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -21,61 +21,67 @@ | |||
21 | #include <qmultilineedit.h> | 21 | #include <qmultilineedit.h> |
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 "configwindow.h" | 32 | #include "configwindow.h" |
33 | #include "scanlist.h" | ||
33 | 34 | ||
34 | #ifdef QWS | 35 | #ifdef QWS |
35 | #include <qpe/resource.h> | 36 | #include <qpe/resource.h> |
36 | #include <opie/otabwidget.h> | 37 | #include <opie/otabwidget.h> |
37 | #else | 38 | #else |
38 | #include "resource.h" | 39 | #include "resource.h" |
39 | #include <qtabwidget.h> | 40 | #include <qtabwidget.h> |
40 | #endif | 41 | #endif |
41 | 42 | ||
42 | 43 | ||
43 | /* | 44 | /* |
44 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 45 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
45 | * name 'name' and widget flags set to 'f' | 46 | * name 'name' and widget flags set to 'f' |
46 | */ | 47 | */ |
47 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) | 48 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) |
48 | : QWidget( parent, name, fl ) | 49 | : QWidget( parent, name, fl ) |
49 | { | 50 | { |
51 | ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) ); | ||
52 | ani2 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot90" ) ); | ||
53 | ani3 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot180" ) ); | ||
54 | ani4 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot270" ) ); | ||
55 | |||
50 | if ( !name ) | 56 | if ( !name ) |
51 | setName( "WellenreiterBase" ); | 57 | setName( "WellenreiterBase" ); |
52 | resize( 191, 294 ); | 58 | resize( 191, 294 ); |
53 | setCaption( tr( "Wellenreiter" ) ); | 59 | setCaption( tr( "Wellenreiter" ) ); |
54 | WellenreiterBaseLayout = new QVBoxLayout( this ); | 60 | WellenreiterBaseLayout = new QVBoxLayout( this ); |
55 | WellenreiterBaseLayout->setSpacing( 2 ); | 61 | WellenreiterBaseLayout->setSpacing( 2 ); |
56 | WellenreiterBaseLayout->setMargin( 0 ); | 62 | WellenreiterBaseLayout->setMargin( 0 ); |
57 | #ifdef QWS | 63 | #ifdef QWS |
58 | TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); | 64 | TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); |
59 | #else | 65 | #else |
60 | TabWidget = new QTabWidget( this, "TabWidget" ); | 66 | TabWidget = new QTabWidget( this, "TabWidget" ); |
61 | #endif | 67 | #endif |
62 | ap = new QWidget( TabWidget, "ap" ); | 68 | ap = new QWidget( TabWidget, "ap" ); |
63 | apLayout = new QVBoxLayout( ap ); | 69 | apLayout = new QVBoxLayout( ap ); |
64 | apLayout->setSpacing( 2 ); | 70 | apLayout->setSpacing( 2 ); |
65 | apLayout->setMargin( 2 ); | 71 | apLayout->setMargin( 2 ); |
66 | 72 | ||
67 | //--------- NETVIEW TAB -------------- | 73 | //--------- NETVIEW TAB -------------- |
68 | 74 | ||
69 | netview = new QListView( ap, "netview" ); | 75 | netview = new MScanListView( ap ); |
70 | netview->addColumn( tr( "SSID" ) ); | 76 | netview->addColumn( tr( "SSID" ) ); |
71 | netview->setColumnAlignment( 0, AlignLeft || AlignVCenter ); | 77 | netview->setColumnAlignment( 0, AlignLeft || AlignVCenter ); |
72 | netview->addColumn( tr( "Sig" ) ); | 78 | netview->addColumn( tr( "Sig" ) ); |
73 | netview->setColumnAlignment( 1, AlignCenter ); | 79 | netview->setColumnAlignment( 1, AlignCenter ); |
74 | netview->addColumn( tr( "AP" ) ); | 80 | netview->addColumn( tr( "AP" ) ); |
75 | netview->setColumnAlignment( 2, AlignCenter ); | 81 | netview->setColumnAlignment( 2, AlignCenter ); |
76 | netview->addColumn( tr( "Chn" ) ); | 82 | netview->addColumn( tr( "Chn" ) ); |
77 | netview->setColumnAlignment( 3, AlignCenter ); | 83 | netview->setColumnAlignment( 3, AlignCenter ); |
78 | netview->addColumn( tr( "W" ) ); | 84 | netview->addColumn( tr( "W" ) ); |
79 | netview->setColumnAlignment( 4, AlignCenter ); | 85 | netview->setColumnAlignment( 4, AlignCenter ); |
80 | netview->addColumn( tr( "T" ) ); | 86 | netview->addColumn( tr( "T" ) ); |
81 | netview->setColumnAlignment( 5, AlignCenter ); | 87 | netview->setColumnAlignment( 5, AlignCenter ); |