author | drw <drw> | 2005-06-15 19:17:11 (UTC) |
---|---|---|
committer | drw <drw> | 2005-06-15 19:17:11 (UTC) |
commit | 1be8e6534619e409f51af90695dc00373d5a1e59 (patch) (unidiff) | |
tree | 534f98ceccfa378667620632a92f81c45627c393 /noncore/net/wellenreiter/gui/mainwindow.cpp | |
parent | b86723182311fa621451c2641acf62b3b89dceeb (diff) | |
download | opie-1be8e6534619e409f51af90695dc00373d5a1e59.zip opie-1be8e6534619e409f51af90695dc00373d5a1e59.tar.gz opie-1be8e6534619e409f51af90695dc00373d5a1e59.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 17 |
1 files changed, 11 insertions, 6 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 | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
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> |
29 | #else | 29 | #else |
@@ -68,45 +68,50 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n | |||
68 | 68 | ||
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" ); |
74 | #endif | 74 | #endif |
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 |
112 | connect( uploadButton, SIGNAL( clicked() ), this, SLOT( uploadSession() ) ); | 117 | connect( uploadButton, SIGNAL( clicked() ), this, SLOT( uploadSession() ) ); |