Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiterbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index aa94c81..5017b08 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp @@ -22,3 +22,2 @@ #include <qpushbutton.h> -#include <opie/otabwidget.h> #include <qlayout.h> @@ -34,3 +33,9 @@ +#ifdef QWS #include <qpe/resource.h> +#include <opie/otabwidget.h> +#else +#include "resource.h" +#include <qtabwidget.h> +#endif @@ -51,5 +56,7 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f WellenreiterBaseLayout->setMargin( 0 ); - +#ifdef QWS TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); - +#else + TabWidget = new QTabWidget( this, "TabWidget" ); +#endif ap = new QWidget( TabWidget, "ap" ); @@ -79,3 +86,3 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f apLayout->addWidget( netview ); - TabWidget->addTab( ap, "wellenreiter/networks", tr( "Networks" ) ); + @@ -84,3 +91,3 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f logwindow = new MLogWindow( TabWidget, "Log" ); - TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); + @@ -89,3 +96,2 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f hexwindow = new MHexWindow( TabWidget, "Hex" ); - TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); @@ -94,3 +100,2 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f configwindow = new WellenreiterConfigWindow( TabWidget, "Config" ); - TabWidget->addTab( configwindow, "wellenreiter/config", tr( "Config" ) ); @@ -131,4 +136,2 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); - TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); - WellenreiterBaseLayout->addWidget( TabWidget ); @@ -137,5 +140,22 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f button->setText( tr( "Start Scanning" ) ); + +#ifdef QWS + TabWidget->addTab( ap, "wellenreiter/networks", tr( "Networks" ) ); + TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); + TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); + TabWidget->addTab( configwindow, "wellenreiter/config", tr( "Config" ) ); + TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); +#else + TabWidget->addTab( ap, /* "wellenreiter/networks", */ tr( "Networks" ) ); + TabWidget->addTab( logwindow, /* "wellenreiter/log", */ tr( "Log" ) ); + TabWidget->addTab( hexwindow, /* "wellenreiter/hex", */ tr( "Hex" ) ); + TabWidget->addTab( configwindow, /* "wellenreiter/config", */ tr( "Config" ) ); + TabWidget->addTab( about, /* "wellenreiter/about", */ tr( "About" ) ); +#endif + WellenreiterBaseLayout->addWidget( TabWidget ); WellenreiterBaseLayout->addWidget( button ); +#ifdef QWS TabWidget->setCurrentTab( tr( "Networks" ) ); +#endif |