summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-10-07 21:40:37 (UTC)
committer mickeyl <mickeyl>2003-10-07 21:40:37 (UTC)
commitb941b5b3e805e9d57cda58be73a6d4255fcb9e8b (patch) (unidiff)
tree4a53701ba1c8bf8d193cd57b6c6ddf720b0760e5
parent23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b (diff)
downloadopie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.zip
opie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.tar.gz
opie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.tar.bz2
prepare for standalone X11-release
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp3
-rwxr-xr-xnoncore/net/wellenreiter/makedist.sh5
2 files changed, 6 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 3ec190b..f82c088 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -3,66 +3,69 @@
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 "configwindow.h" 17#include "configwindow.h"
18#include "mainwindow.h" 18#include "mainwindow.h"
19 19
20/* QT */ 20/* QT */
21#include <qapplication.h> 21#include <qapplication.h>
22#include <qcheckbox.h> 22#include <qcheckbox.h>
23#include <qcombobox.h> 23#include <qcombobox.h>
24#include <qfile.h> 24#include <qfile.h>
25#include <qlineedit.h> 25#include <qlineedit.h>
26#include <qlayout.h> 26#include <qlayout.h>
27#include <qmap.h> 27#include <qmap.h>
28#include <qpushbutton.h> 28#include <qpushbutton.h>
29#include <qtoolbutton.h> 29#include <qtoolbutton.h>
30#include <qspinbox.h> 30#include <qspinbox.h>
31#include <qtextstream.h> 31#include <qtextstream.h>
32 32
33/* OPIE */ 33/* OPIE */
34#include <opie2/onetwork.h> 34#include <opie2/onetwork.h>
35
36#ifdef QWS
35#include <opie2/oapplication.h> 37#include <opie2/oapplication.h>
36#include <opie2/oconfig.h> 38#include <opie2/oconfig.h>
39#endif
37 40
38WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; 41WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0;
39 42
40WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) 43WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f )
41 :WellenreiterConfigBase( parent, name, true, f ) 44 :WellenreiterConfigBase( parent, name, true, f )
42{ 45{
43 _devicetype[ "cisco" ] = DEVTYPE_CISCO; 46 _devicetype[ "cisco" ] = DEVTYPE_CISCO;
44 _devicetype[ "wlan-ng" ] = DEVTYPE_WLAN_NG; 47 _devicetype[ "wlan-ng" ] = DEVTYPE_WLAN_NG;
45 _devicetype[ "hostap" ] = DEVTYPE_HOSTAP; 48 _devicetype[ "hostap" ] = DEVTYPE_HOSTAP;
46 _devicetype[ "orinoco" ] = DEVTYPE_ORINOCO; 49 _devicetype[ "orinoco" ] = DEVTYPE_ORINOCO;
47 _devicetype[ "<manual>" ] = DEVTYPE_MANUAL; 50 _devicetype[ "<manual>" ] = DEVTYPE_MANUAL;
48 _devicetype[ "<file>" ] = DEVTYPE_FILE; 51 _devicetype[ "<file>" ] = DEVTYPE_FILE;
49 52
50 // gather possible interface names from ONetwork 53 // gather possible interface names from ONetwork
51 ONetwork* net = ONetwork::instance(); 54 ONetwork* net = ONetwork::instance();
52 ONetwork::InterfaceIterator it = net->iterator(); 55 ONetwork::InterfaceIterator it = net->iterator();
53 while ( it.current() ) 56 while ( it.current() )
54 { 57 {
55 if ( it.current()->isWireless() ) 58 if ( it.current()->isWireless() )
56 interfaceName->insertItem( it.current()->name() ); 59 interfaceName->insertItem( it.current()->name() );
57 ++it; 60 ++it;
58 } 61 }
59 62
60 load(); 63 load();
61 64
62 #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here 65 #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here
63 QPushButton* okButton = new QPushButton( "ok", this ); 66 QPushButton* okButton = new QPushButton( "ok", this );
64 okButton->show(); 67 okButton->show();
65 WellenreiterConfigBaseLayout->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui 68 WellenreiterConfigBaseLayout->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui
66 connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); 69 connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
67 #endif 70 #endif
68 71
diff --git a/noncore/net/wellenreiter/makedist.sh b/noncore/net/wellenreiter/makedist.sh
index 64098d0..ccb9c85 100755
--- a/noncore/net/wellenreiter/makedist.sh
+++ b/noncore/net/wellenreiter/makedist.sh
@@ -1,54 +1,55 @@
1VERSION=2-1.0rc2 1VERSION=2-1.0.1-cvs
2 2
3TGZDIR=$PWD 3TGZDIR=$PWD
4 4
5# script to make a .tgz distributable for the Wellenreiter X11 Standalone Version 5# script to make a .tgz distributable for the Wellenreiter X11 Standalone Version
6 6
7find . -name "*.o"|xargs rm -f 7find . -name "*.o"|xargs rm -f
8find . -name "Makefile"|xargs rm -f 8find . -name "Makefile"|xargs rm -f
9find . -name "*moc*"|xargs rm -f 9find . -name "*moc*"|xargs rm -f
10#TMPFILE=`mktemp -d -q /tmp/build.XXXXXX` 10#TMPFILE=`mktemp -d -q /tmp/build.XXXXXX`
11TMPFILE=/tmp/build 11TMPFILE=/tmp/build
12#if [ $? -ne 0 ]; then 12#if [ $? -ne 0 ]; then
13# echo "$0: Can't create temp file, exiting..." 13# echo "$0: Can't create temp file, exiting..."
14# exit 1 14# exit 1
15#fi 15#fi
16 16
17TMPDIR=$TMPFILE/wellenreiter$VERSION 17TMPDIR=$TMPFILE/wellenreiter$VERSION
18OUTPUT=$TMPDIR/output 18OUTPUT=$TMPDIR/output
19 19
20mkdir -p $TMPDIR/libopie2/opieui 20mkdir -p $TMPDIR/libopie2/opieui
21mkdir -p $TMPDIR/libopie2/opienet 21mkdir -p $TMPDIR/libopie2/opienet
22mkdir -p $TMPDIR/include/opie2 22mkdir -p $TMPDIR/include/opie2
23mkdir -p $OUTPUT/share/wellenreiter/pics 23mkdir -p $OUTPUT/share/wellenreiter/pics
24mkdir -p $OUTPUT/share/wellenreiter 24mkdir -p $OUTPUT/share/wellenreiter
25cp -dfR gui $TMPDIR 25cp -dfR gui $TMPDIR
26cp -dfR lib $TMPDIR 26cp -dfR lib $TMPDIR
27cp -dfR build README wellenreiter.pro $TMPDIR 27cp -dfR build README wellenreiter.pro $TMPDIR
28cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/ 28cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/
29cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/ 29cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/
30 30
31# take care about sourcefiles 31# take care about sourcefiles
32 32
33FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \ 33FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \
34 libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp libopie2/opienet/802_11_user.h \ 34 libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp \
35 libopie2/opienet/802_11_user.h libopie2/opienet/dhcp.h libopie2/opienet/udp_ports.h \
35 libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \ 36 libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \
36 libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \ 37 libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \
37 libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h" 38 libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h"
38 39
39for i in $FILES 40for i in $FILES
40 do cp -dfR $OPIEDIR/$i $TMPDIR/$i 41 do cp -dfR $OPIEDIR/$i $TMPDIR/$i
41done 42done
42 43
43# make includes 44# make includes
44pushd $TMPDIR/include/opie2 45pushd $TMPDIR/include/opie2
45ln -sf ../../libopie2/opieui/*.h . 46ln -sf ../../libopie2/opieui/*.h .
46ln -sf ../../libopie2/opienet/*.h . 47ln -sf ../../libopie2/opienet/*.h .
47popd 48popd
48 49
49find $TMPDIR -name "CVS"|xargs rm -rf 50find $TMPDIR -name "CVS"|xargs rm -rf
50 51
51pushd $TMPFILE 52pushd $TMPFILE
52tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION 53tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION
53popd 54popd
54 55