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 @@ -26,5 +26,4 @@ SOURCES = main.cpp \ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lopiecore2 -lopieui2 -lopienet2 INTERFACES = configbase.ui TARGET = wellenreiter @@ -33,9 +32,9 @@ TARGET = wellenreiter message( qws ) include ( $(OPIEDIR)/include.pro ) - LIBS += -lqpe -lopie + LIBS += -lqpe -lopie -lopiecore2 -lopieui2 -lopienet2 } contains( platform, x11 ) { - LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib + LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lwellenreiter SOURCES += resource.cpp HEADERS += resource.h 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 @@ -15,11 +15,24 @@ #include "mainwindow.h" +#ifdef QWS #include <opie2/oapplication.h> +#else +#include <qapplication.h> +#endif 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(); delete w; 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 @@ -14,12 +14,4 @@ ***********************************************************************/ -// Qt - -#include <qpushbutton.h> -#include <qmessagebox.h> -#include <qcombobox.h> -#include <qspinbox.h> -#include <qsocketnotifier.h> - // Opie @@ -29,8 +21,20 @@ using namespace Opie; #endif +#ifdef QWS #include <opie2/oapplication.h> +#else +#include <qapplication.h> +#endif #include <opie2/onetwork.h> #include <opie2/opcap.h> +// Qt + +#include <qpushbutton.h> +#include <qmessagebox.h> +#include <qcombobox.h> +#include <qspinbox.h> +#include <qsocketnotifier.h> + // Standard @@ -144,5 +148,9 @@ void Wellenreiter::startStopClicked() pcap->close(); sniffing = false; + #ifdef QWS oApp->setTitle(); + #else + qApp->mainWidget()->setCaption( "Wellenreiter II" ); + #endif // get interface name from config window @@ -222,5 +230,9 @@ 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; |