author | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-31 10:20:23 (UTC) |
commit | 2318b309ef4c5147fa1a975b7b261ceec5dd13a7 (patch) (side-by-side diff) | |
tree | 6deeb4aa1179bb69d6bb1b0bd0ee731e80ad896c /noncore/net/wellenreiter/gui | |
parent | ab65bc6a80f1c93ebd54b8c65563efde934dc45a (diff) | |
download | opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.zip opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.gz opie-2318b309ef4c5147fa1a975b7b261ceec5dd13a7.tar.bz2 |
reenable the X11 standalone build (qmake platform=x11 wellenreiter.pro)
Diffstat (limited to 'noncore/net/wellenreiter/gui') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/gui.pro | 5 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/main.cpp | 13 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 28 |
3 files changed, 35 insertions, 11 deletions
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro index 505d376..5a8972c 100644 --- a/noncore/net/wellenreiter/gui/gui.pro +++ b/noncore/net/wellenreiter/gui/gui.pro @@ -27,3 +27,2 @@ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lopiecore2 -lopieui2 -lopienet2 INTERFACES = configbase.ui @@ -34,3 +33,3 @@ TARGET = wellenreiter include ( $(OPIEDIR)/include.pro ) - LIBS += -lqpe -lopie + LIBS += -lqpe -lopie -lopiecore2 -lopieui2 -lopienet2 } @@ -38,3 +37,3 @@ TARGET = wellenreiter contains( platform, x11 ) { - LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib + LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lwellenreiter SOURCES += resource.cpp diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index 96a8c1c..8d4ef57 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp @@ -16,3 +16,7 @@ #include "mainwindow.h" +#ifdef QWS #include <opie2/oapplication.h> +#else +#include <qapplication.h> +#endif @@ -20,5 +24,14 @@ int main( int argc, char **argv ) { + #ifdef QWS OApplication a( argc, argv, "Wellenreiter II" ); + #else + QApplication a( argc, argv ); + #endif WellenreiterMainWindow* w = new WellenreiterMainWindow(); + #ifdef QWS a.showMainWidget( w ); + #else + a.setMainWidget( w ); + w->show(); + #endif a.exec(); diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 3bff7c4..41ffdcc 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -15,10 +15,2 @@ -// Qt - -#include <qpushbutton.h> -#include <qmessagebox.h> -#include <qcombobox.h> -#include <qspinbox.h> -#include <qsocketnotifier.h> - // Opie @@ -30,3 +22,7 @@ using namespace Opie; +#ifdef QWS #include <opie2/oapplication.h> +#else +#include <qapplication.h> +#endif #include <opie2/onetwork.h> @@ -34,2 +30,10 @@ using namespace Opie; +// Qt + +#include <qpushbutton.h> +#include <qmessagebox.h> +#include <qcombobox.h> +#include <qspinbox.h> +#include <qsocketnotifier.h> + // Standard @@ -145,3 +149,7 @@ void Wellenreiter::startStopClicked() sniffing = false; + #ifdef QWS oApp->setTitle(); + #else + qApp->mainWidget()->setCaption( "Wellenreiter II" ); + #endif @@ -223,3 +231,7 @@ void Wellenreiter::startStopClicked() logwindow->log( "(i) Daemon has been started." ); + #ifdef QWS oApp->setTitle( "Scanning ..." ); + #else + qApp->mainWidget()->setCaption( "Wellenreiter II / Scanning ..." ); + #endif sniffing = true; |