summaryrefslogtreecommitdiff
Unidiff
Diffstat (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
@@ -24,5 +24,5 @@
24/* OPIE */ 24/* OPIE */
25#ifdef QWS 25#ifdef QWS
26#include <qpe/resource.h> 26#include <opie2/oresource.h>
27#include <opie2/odebug.h> 27#include <opie2/odebug.h>
28#include <opie2/ofiledialog.h> 28#include <opie2/ofiledialog.h>
@@ -69,5 +69,5 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
69 // setup application icon 69 // setup application icon
70 70
71 setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) ); 71 setIcon( Opie::Core::OResource::loadPixmap( "wellenreiter/appicon-trans", Opie::Core::OResource::SmallIcon ) );
72 #ifndef QWS 72 #ifndef QWS
73 setIconText( "Wellenreiter/X11" ); 73 setIconText( "Wellenreiter/X11" );
@@ -75,37 +75,42 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
75 75
76 // setup tool buttons 76 // setup tool buttons
77 bool useBigIcon = qApp->desktop()->size().width() > 330;
77 78
78 startButton = new QToolButton( 0 ); 79 startButton = new QToolButton( 0 );
80 startButton->setUsesBigPixmap( useBigIcon );
79 QWhatsThis::add( startButton, tr( "Click here to start scanning." ) ); 81 QWhatsThis::add( startButton, tr( "Click here to start scanning." ) );
80 #ifdef QWS 82 #ifdef QWS
81 startButton->setAutoRaise( true ); 83 startButton->setAutoRaise( true );
82 #endif 84 #endif
83 startButton->setIconSet( Resource::loadIconSet( "wellenreiter/SearchIcon" ) ); 85 startButton->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/SearchIcon", Opie::Core::OResource::SmallIcon ) );
84 startButton->setEnabled( false ); 86 startButton->setEnabled( false );
85 connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) ); 87 connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) );
86 88
87 stopButton = new QToolButton( 0 ); 89 stopButton = new QToolButton( 0 );
90 stopButton->setUsesBigPixmap( useBigIcon );
88 QWhatsThis::add( stopButton, tr( "Click here to stop scanning." ) ); 91 QWhatsThis::add( stopButton, tr( "Click here to stop scanning." ) );
89 #ifdef QWS 92 #ifdef QWS
90 stopButton->setAutoRaise( true ); 93 stopButton->setAutoRaise( true );
91 #endif 94 #endif
92 stopButton->setIconSet( Resource::loadIconSet( "wellenreiter/CancelIcon" ) ); 95 stopButton->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/CancelIcon", Opie::Core::OResource::SmallIcon ) );
93 stopButton->setEnabled( false ); 96 stopButton->setEnabled( false );
94 connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) ); 97 connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) );
95 98
96 QToolButton* d = new QToolButton( 0 ); 99 QToolButton* d = new QToolButton( 0 );
100 d->setUsesBigPixmap( useBigIcon );
97 QWhatsThis::add( d, tr( "Click here to open the configure dialog." ) ), 101 QWhatsThis::add( d, tr( "Click here to open the configure dialog." ) ),
98 #ifdef QWS 102 #ifdef QWS
99 d->setAutoRaise( true ); 103 d->setAutoRaise( true );
100 #endif 104 #endif
101 d->setIconSet( Resource::loadIconSet( "wellenreiter/SettingsIcon" ) ); 105 d->setIconSet( Opie::Core::OResource::loadPixmap( "wellenreiter/SettingsIcon", Opie::Core::OResource::SmallIcon ) );
102 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) ); 106 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) );
103 107
104 uploadButton = new QToolButton( 0 ); 108 uploadButton = new QToolButton( 0 );
109 uploadButton->setUsesBigPixmap( useBigIcon );
105 QWhatsThis::add( uploadButton, tr( "Click here to upload a capture session." ) ); 110 QWhatsThis::add( uploadButton, tr( "Click here to upload a capture session." ) );
106 #ifdef QWS 111 #ifdef QWS
107 uploadButton->setAutoRaise( true ); 112 uploadButton->setAutoRaise( true );
108 #endif 113 #endif
109 uploadButton->setIconSet( Resource::loadIconSet( "up" ) ); 114 uploadButton->setIconSet( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) );
110 uploadButton->setEnabled( false ); 115 uploadButton->setEnabled( false );
111 //uploadButton->setEnabled( true ); // DEBUGGING 116 //uploadButton->setEnabled( true ); // DEBUGGING
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
@@ -21,6 +21,6 @@
21#ifdef QWS 21#ifdef QWS
22#include <opie2/odebug.h> 22#include <opie2/odebug.h>
23#include <opie2/oresource.h>
23#include <qpe/qpeapplication.h> 24#include <qpe/qpeapplication.h>
24#include <qpe/resource.h>
25#else 25#else
26#include "resource.h" 26#include "resource.h"
@@ -478,7 +478,7 @@ void MScanListItem::serializeFrom( QDataStream& s )
478 478
479 QString name = QString( "wellenreiter/"+ _type ); 479 QString name = QString( "wellenreiter/"+ _type );
480 setPixmap( col_type, Resource::loadPixmap( name ) ); 480 setPixmap( col_type, Opie::Core::OResource::loadPixmap( name, Opie::Core::OResource::SmallIcon ) );
481 if ( _wep ) 481 if ( _wep )
482 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap! 482 setPixmap( col_wep, Opie::Core::OResource::loadPixmap( "wellenreiter/cracked", Opie::Core::OResource::SmallIcon ) ); //FIXME: rename the pixmap!
483 listView()->triggerUpdate(); 483 listView()->triggerUpdate();
484} 484}
@@ -495,15 +495,15 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
495 QString name; 495 QString name;
496 name.sprintf( "wellenreiter/"+ type ); 496 name.sprintf( "wellenreiter/"+ type );
497 setPixmap( col_type, Resource::loadPixmap( name ) ); 497 setPixmap( col_type, Opie::Core::OResource::loadPixmap( name, Opie::Core::OResource::SmallIcon ) );
498 498
499 // special case for probed networks FIXME: This is ugly at present 499 // special case for probed networks FIXME: This is ugly at present
500 if ( type == "network" && probed ) 500 if ( type == "network" && probed )
501 { 501 {
502 setPixmap( col_type, Resource::loadPixmap( "wellenreiter/network-probed.png" ) ); 502 setPixmap( col_type, Opie::Core::OResource::loadPixmap( "wellenreiter/network-probed", Opie::Core::OResource::SmallIcon ) );
503 } 503 }
504 504
505 // set icon for wep (wireless encryption protocol) 505 // set icon for wep (wireless encryption protocol)
506 if ( wep ) 506 if ( wep )
507 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap! 507 setPixmap( col_wep, Opie::Core::OResource::loadPixmap( "wellenreiter/cracked", Opie::Core::OResource::SmallIcon ) ); //FIXME: rename the pixmap!
508 508
509 // set channel and signal text 509 // set channel and signal text
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
@@ -26,5 +26,5 @@
26 26
27#ifdef QWS 27#ifdef QWS
28#include <qpe/resource.h> 28#include <opie2/oresource.h>
29#include <opie2/otabwidget.h> 29#include <opie2/otabwidget.h>
30using namespace Opie; 30using namespace Opie;
@@ -44,8 +44,8 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f
44 : QWidget( parent, name, fl ) 44 : QWidget( parent, name, fl )
45{ 45{
46 //ani1 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot0" ) ); 46 //ani1 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot0", Opie::Core::OResource::SmallIcon ) );
47 //ani2 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot90" ) ); 47 //ani2 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot90", Opie::Core::OResource::SmallIcon ) );
48 //ani3 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot180" ) ); 48 //ani3 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot180", Opie::Core::OResource::SmallIcon ) );
49 //ani4 = new QPixmap( Resource::loadPixmap( "wellenreiter/networks_rot270" ) ); 49 //ani4 = new QPixmap( Opie::Core::OResource::loadPixmap( "wellenreiter/networks_rot270", Opie::Core::OResource::SmallIcon ) );
50 50
51 if ( !name ) 51 if ( !name )
@@ -106,5 +106,5 @@ WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags f
106 PixmapLabel1_3_2->setMidLineWidth( 0 ); 106 PixmapLabel1_3_2->setMidLineWidth( 0 );
107 107
108 QPixmap logo = Resource::loadPixmap( "wellenreiter/logo" ); 108 QPixmap logo = Opie::Core::OResource::loadPixmap( "wellenreiter/logo" );
109 QPainter draw( &logo ); 109 QPainter draw( &logo );
110 draw.setPen( Qt::black ); 110 draw.setPen( Qt::black );