summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp17
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.cpp12
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiterbase.cpp12
3 files changed, 23 insertions, 18 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index 3e18531..ccb3ec0 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -25,3 +25,3 @@
#ifdef QWS
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
#include <opie2/odebug.h>
@@ -70,3 +70,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
- setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) );
+ setIcon( Opie::Core::OResource::loadPixmap( "wellenreiter/appicon-trans", Opie::Core::OResource::SmallIcon ) );
#ifndef QWS
@@ -76,4 +76,6 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
// setup tool buttons
+ bool useBigIcon = qApp->desktop()->size().width() > 330;
startButton = new QToolButton( 0 );
+ startButton->setUsesBigPixmap( useBigIcon );
QWhatsThis::add( startButton, tr( "Click here to start scanning." ) );
@@ -82,3 +84,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
#endif
- startButton->setIconSet( Resource::loadIconSet( "wellenreiter/SearchIcon" ) );
+ startButton->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/SearchIcon", Opie::Core::OResource::SmallIcon ) );
startButton->setEnabled( false );
@@ -87,2 +89,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
stopButton = new QToolButton( 0 );
+ stopButton->setUsesBigPixmap( useBigIcon );
QWhatsThis::add( stopButton, tr( "Click here to stop scanning." ) );
@@ -91,3 +94,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
#endif
- stopButton->setIconSet( Resource::loadIconSet( "wellenreiter/CancelIcon" ) );
+ stopButton->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/CancelIcon", Opie::Core::OResource::SmallIcon ) );
stopButton->setEnabled( false );
@@ -96,2 +99,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
QToolButton* d = new QToolButton( 0 );
+ d->setUsesBigPixmap( useBigIcon );
QWhatsThis::add( d, tr( "Click here to open the configure dialog." ) ),
@@ -100,3 +104,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
#endif
- d->setIconSet( Resource::loadIconSet( "wellenreiter/SettingsIcon" ) );
+ d->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/SettingsIcon", Opie::Core::OResource::SmallIcon ) );
connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) );
@@ -104,2 +108,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
uploadButton = new QToolButton( 0 );
+ uploadButton->setUsesBigPixmap( useBigIcon );
QWhatsThis::add( uploadButton, tr( "Click here to upload a capture session." ) );
@@ -108,3 +113,3 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
#endif
- uploadButton->setIconSet( Resource::loadIconSet( "up" ) );
+ uploadButton->setIconSet( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) );
uploadButton->setEnabled( false );
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp
index 587faad..a61e808 100644
--- a/noncore/net/wellenreiter/gui/scanlist.cpp
+++ b/noncore/net/wellenreiter/gui/scanlist.cpp
@@ -22,4 +22,4 @@
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
#include <qpe/qpeapplication.h>
-#include <qpe/resource.h>
#else
@@ -479,5 +479,5 @@ void MScanListItem::serializeFrom( QDataStream& s )
QString name = QString( "wellenreiter/"+ _type );
- setPixmap( col_type, Resource::loadPixmap( name ) );
+ setPixmap( col_type, Opie::Core::OResource::loadPixmap( name, Opie::Core::OResource::SmallIcon ) );
if ( _wep )
- setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap!
+ setPixmap( col_wep, Opie::Core::OResource::loadPixmap( "wellenreiter/cracked", Opie::Core::OResource::SmallIcon ) ); //FIXME: rename the pixmap!
listView()->triggerUpdate();
@@ -496,3 +496,3 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
name.sprintf( "wellenreiter/"+ type );
- setPixmap( col_type, Resource::loadPixmap( name ) );
+ setPixmap( col_type, Opie::Core::OResource::loadPixmap( name, Opie::Core::OResource::SmallIcon ) );
@@ -501,3 +501,3 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
{
- setPixmap( col_type, Resource::loadPixmap( "wellenreiter/network-probed.png" ) );
+ setPixmap( col_type, Opie::Core::OResource::loadPixmap( "wellenreiter/network-probed", Opie::Core::OResource::SmallIcon ) );
}
@@ -506,3 +506,3 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
if ( wep )
- setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap!
+ setPixmap( col_wep, Opie::Core::OResource::loadPixmap( "wellenreiter/cracked", Opie::Core::OResource::SmallIcon ) ); //FIXME: rename the pixmap!
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
index 1d5bd1b..11eb145 100644
--- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
@@ -27,3 +27,3 @@
#ifdef QWS
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
#include <opie2/otabwidget.h>
@@ -45,6 +45,6 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f
{
- //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) );
- //ani2 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot90" ) );
- //ani3 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot180" ) );
- //ani4 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot270" ) );
+ //ani1 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot0", Opie::Core::OResource::SmallIcon ) );
+ //ani2 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot90", Opie::Core::OResource::SmallIcon ) );
+ //ani3 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot180", Opie::Core::OResource::SmallIcon ) );
+ //ani4 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot270", Opie::Core::OResource::SmallIcon ) );
@@ -107,3 +107,3 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f
- QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" );
+ QPixmap logo = Opie::Core::OResource::loadPixmap( "wellenreiter/logo" );
QPainter draw( &logo );