-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 3 | ||||
-rwxr-xr-x | noncore/net/wellenreiter/makedist.sh | 5 |
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 @@ -1,84 +1,87 @@ /********************************************************************** ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. ** ** This file is part of Opie Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ /* LOCAL */ #include "configwindow.h" #include "mainwindow.h" /* QT */ #include <qapplication.h> #include <qcheckbox.h> #include <qcombobox.h> #include <qfile.h> #include <qlineedit.h> #include <qlayout.h> #include <qmap.h> #include <qpushbutton.h> #include <qtoolbutton.h> #include <qspinbox.h> #include <qtextstream.h> /* OPIE */ #include <opie2/onetwork.h> + +#ifdef QWS #include <opie2/oapplication.h> #include <opie2/oconfig.h> +#endif WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) :WellenreiterConfigBase( parent, name, true, f ) { _devicetype[ "cisco" ] = DEVTYPE_CISCO; _devicetype[ "wlan-ng" ] = DEVTYPE_WLAN_NG; _devicetype[ "hostap" ] = DEVTYPE_HOSTAP; _devicetype[ "orinoco" ] = DEVTYPE_ORINOCO; _devicetype[ "<manual>" ] = DEVTYPE_MANUAL; _devicetype[ "<file>" ] = DEVTYPE_FILE; // gather possible interface names from ONetwork ONetwork* net = ONetwork::instance(); ONetwork::InterfaceIterator it = net->iterator(); while ( it.current() ) { if ( it.current()->isWireless() ) interfaceName->insertItem( it.current()->name() ); ++it; } load(); #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here QPushButton* okButton = new QPushButton( "ok", this ); okButton->show(); WellenreiterConfigBaseLayout->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); #endif WellenreiterConfigWindow::_instance = this; connect( deviceType, SIGNAL( activated(int) ), this, SLOT( changedDeviceType(int) ) ); connect( getCaptureFileName, SIGNAL( clicked() ), this, SLOT( getCaptureFileNameClicked() ) ); // make the checkbox 'channelAll' control all other channels connect( channelAll, SIGNAL( stateChanged(int) ), this, SLOT( channelAllClicked(int) ) ); connect( autodetect, SIGNAL( clicked() ), this, SLOT( performAutodetection() ) ); }; WellenreiterConfigWindow::~WellenreiterConfigWindow() { save(); } 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 @@ -VERSION=2-1.0rc2 +VERSION=2-1.0.1-cvs TGZDIR=$PWD # script to make a .tgz distributable for the Wellenreiter X11 Standalone Version find . -name "*.o"|xargs rm -f find . -name "Makefile"|xargs rm -f find . -name "*moc*"|xargs rm -f #TMPFILE=`mktemp -d -q /tmp/build.XXXXXX` TMPFILE=/tmp/build #if [ $? -ne 0 ]; then # echo "$0: Can't create temp file, exiting..." # exit 1 #fi TMPDIR=$TMPFILE/wellenreiter$VERSION OUTPUT=$TMPDIR/output mkdir -p $TMPDIR/libopie2/opieui mkdir -p $TMPDIR/libopie2/opienet mkdir -p $TMPDIR/include/opie2 mkdir -p $OUTPUT/share/wellenreiter/pics mkdir -p $OUTPUT/share/wellenreiter cp -dfR gui $TMPDIR cp -dfR lib $TMPDIR cp -dfR build README wellenreiter.pro $TMPDIR cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/ cp -dfR $OPIEDIR/etc/manufacturers $OUTPUT/share/wellenreiter/ # take care about sourcefiles FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \ - libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp libopie2/opienet/802_11_user.h \ + libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp \ + libopie2/opienet/802_11_user.h libopie2/opienet/dhcp.h libopie2/opienet/udp_ports.h \ libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \ libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \ libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h" for i in $FILES do cp -dfR $OPIEDIR/$i $TMPDIR/$i done # make includes pushd $TMPDIR/include/opie2 ln -sf ../../libopie2/opieui/*.h . ln -sf ../../libopie2/opienet/*.h . popd find $TMPDIR -name "CVS"|xargs rm -rf pushd $TMPFILE tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION popd |