Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index f86b109..6dd862f 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp | |||
@@ -13,13 +13,19 @@ | |||
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | /* LOCAL */ | ||
16 | #include "configwindow.h" | 17 | #include "configwindow.h" |
18 | |||
19 | /* QT */ | ||
17 | #include <qmap.h> | 20 | #include <qmap.h> |
18 | #include <qcombobox.h> | 21 | #include <qcombobox.h> |
19 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> |
20 | #include <qspinbox.h> | 23 | #include <qspinbox.h> |
21 | #include <qlayout.h> | 24 | #include <qlayout.h> |
22 | 25 | ||
26 | /* OPIE */ | ||
27 | #include <opie2/onetwork.h> | ||
28 | |||
23 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) | 29 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) |
24 | :WellenreiterConfigBase( parent, name, true, f ) | 30 | :WellenreiterConfigBase( parent, name, true, f ) |
25 | { | 31 | { |
@@ -29,6 +35,16 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char | |||
29 | _devicetype[ "orinoco" ] = 4; | 35 | _devicetype[ "orinoco" ] = 4; |
30 | _devicetype[ "<manual>" ] = 5; | 36 | _devicetype[ "<manual>" ] = 5; |
31 | 37 | ||
38 | // gather possible interface names from ONetwork | ||
39 | ONetwork* net = ONetwork::instance(); | ||
40 | ONetwork::InterfaceIterator it = net->iterator(); | ||
41 | while ( it.current() ) | ||
42 | { | ||
43 | if ( it.current()->isWireless() ) | ||
44 | interfaceName->insertItem( it.current()->name() ); | ||
45 | ++it; | ||
46 | } | ||
47 | |||
32 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here | 48 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here |
33 | QPushButton* okButton = new QPushButton( "ok", this ); | 49 | QPushButton* okButton = new QPushButton( "ok", this ); |
34 | okButton->show(); | 50 | okButton->show(); |