author | mickeyl <mickeyl> | 2003-10-07 21:40:37 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-07 21:40:37 (UTC) |
commit | b941b5b3e805e9d57cda58be73a6d4255fcb9e8b (patch) (side-by-side diff) | |
tree | 4a53701ba1c8bf8d193cd57b6c6ddf720b0760e5 | |
parent | 23fd77c2b4ea230af2915d4ce3f2e75cefdedb2b (diff) | |
download | opie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.zip opie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.tar.gz opie-b941b5b3e805e9d57cda58be73a6d4255fcb9e8b.tar.bz2 |
prepare for standalone X11-release
-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,100 +1,103 @@ /********************************************************************** ** 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(); } void WellenreiterConfigWindow::performAutodetection() { //TODO: insert modal splash screen here // and sleep a second, so that it looks // like we're actually doing something fancy... ;-) qDebug( "WellenreiterConfigWindow::performAutodetection()" ); // try to guess device type QFile m( "/proc/modules" ); if ( m.open( IO_ReadOnly ) ) { int devicetype(0); QString line; 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 |