summaryrefslogtreecommitdiff
path: root/noncore
authordrw <drw>2005-06-09 21:17:15 (UTC)
committer drw <drw>2005-06-09 21:17:15 (UTC)
commitd5c8de3585a6e94c18156e51299f1e49cc992285 (patch) (unidiff)
treee7a0bf5f44e7d972904c748d8c03f97ae52c5c87 /noncore
parent346a2cd09c2c28bd4d2086b0c152dd348913eaa9 (diff)
downloadopie-d5c8de3585a6e94c18156e51299f1e49cc992285.zip
opie-d5c8de3585a6e94c18156e51299f1e49cc992285.tar.gz
opie-d5c8de3585a6e94c18156e51299f1e49cc992285.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.cpp4
-rw-r--r--noncore/settings/sysinfo/sysinfo.cpp4
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp
index 2a269b8..ac6e1fa 100644
--- a/noncore/settings/sysinfo/benchmarkinfo.cpp
+++ b/noncore/settings/sysinfo/benchmarkinfo.cpp
@@ -19,16 +19,16 @@
19#include "benchmarkinfo.h" 19#include "benchmarkinfo.h"
20 20
21/* OPIE */ 21/* OPIE */
22#include <opie2/odebug.h> 22#include <opie2/odebug.h>
23#include <opie2/ostorageinfo.h> 23#include <opie2/ostorageinfo.h>
24#include <opie2/olistview.h> 24#include <opie2/olistview.h>
25#include <opie2/oresource.h>
25#include <qpe/qpeapplication.h> 26#include <qpe/qpeapplication.h>
26#include <qpe/qcopenvelope_qws.h> 27#include <qpe/qcopenvelope_qws.h>
27#include <qpe/qpedecoration_qws.h> 28#include <qpe/qpedecoration_qws.h>
28#include <qpe/resource.h>
29#include <qpe/config.h> 29#include <qpe/config.h>
30using namespace Opie::Core; 30using namespace Opie::Core;
31using namespace Opie::Ui; 31using namespace Opie::Ui;
32 32
33/* QT */ 33/* QT */
34#include <qclipboard.h> 34#include <qclipboard.h>
@@ -326,13 +326,13 @@ int BenchmarkInfo::gfxRendering( int seconds )
326 int k = rand() % 9; 326 int k = rand() % 9;
327 br1.setColor( QColor( rr[ k ], gg[ k ], bb[ k ] ) ); 327 br1.setColor( QColor( rr[ k ], gg[ k ], bb[ k ] ) );
328 bpw.p.fillRect( rand()%w, rand()%h, rand()%w, rand()%h, br1 ); 328 bpw.p.fillRect( rand()%w, rand()%h, rand()%w, rand()%h, br1 );
329 ++loops; 329 ++loops;
330 } 330 }
331 331
332 QPixmap p = Resource::loadPixmap( "sysinfo/pattern" ); 332 QPixmap p = Opie::Core::OResource::loadPixmap( "sysinfo/pattern" );
333 t.restart(); 333 t.restart();
334 stop = t.elapsed() + seconds*1000; 334 stop = t.elapsed() + seconds*1000;
335 335
336 while ( t.elapsed() < stop ) 336 while ( t.elapsed() < stop )
337 { 337 {
338 bpw.p.drawPixmap( rand()%w, rand()%h, p ); 338 bpw.p.drawPixmap( rand()%w, rand()%h, p );
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp
index 03db22a..63be111 100644
--- a/noncore/settings/sysinfo/sysinfo.cpp
+++ b/noncore/settings/sysinfo/sysinfo.cpp
@@ -30,24 +30,24 @@
30#include "benchmarkinfo.h" 30#include "benchmarkinfo.h"
31#include "sysloginfo.h" 31#include "sysloginfo.h"
32#include "versioninfo.h" 32#include "versioninfo.h"
33#include "sysinfo.h" 33#include "sysinfo.h"
34 34
35/* OPIE */ 35/* OPIE */
36#include <opie2/oresource.h>
36#include <opie2/otabwidget.h> 37#include <opie2/otabwidget.h>
37using namespace Opie::Ui; 38using namespace Opie::Ui;
38#include <qpe/config.h> 39#include <qpe/config.h>
39#include <qpe/resource.h>
40 40
41/* QT */ 41/* QT */
42#include <qlayout.h> 42#include <qlayout.h>
43 43
44SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) 44SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags )
45 : QWidget( parent, name, WStyle_ContextHelp ) 45 : QWidget( parent, name, WStyle_ContextHelp )
46{ 46{
47 setIcon( Resource::loadPixmap( "system_icon" ) ); 47 setIcon( Opie::Core::OResource::loadPixmap( "system_icon", Opie::Core::OResource::SmallIcon ) );
48 setCaption( tr("System Info") ); 48 setCaption( tr("System Info") );
49 49
50 QVBoxLayout *lay = new QVBoxLayout( this ); 50 QVBoxLayout *lay = new QVBoxLayout( this );
51 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global ); 51 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global );
52 lay->addWidget( tab ); 52 lay->addWidget( tab );
53 53
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index 5736faa..29c9a05 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -19,13 +19,13 @@
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "versioninfo.h" 21#include "versioninfo.h"
22 22
23/* OPIE */ 23/* OPIE */
24#include <opie2/odevice.h> 24#include <opie2/odevice.h>
25#include <qpe/resource.h> 25#include <opie2/oresource.h>
26#include <qpe/version.h> 26#include <qpe/version.h>
27 27
28/* QT */ 28/* QT */
29#include <qfile.h> 29#include <qfile.h>
30#include <qlabel.h> 30#include <qlabel.h>
31#include <qlayout.h> 31#include <qlayout.h>
@@ -86,13 +86,13 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
86 palmtopVersionString.append( "</qt>" ); 86 palmtopVersionString.append( "</qt>" );
87 87
88 QHBoxLayout *hb1 = new QHBoxLayout( vb ); 88 QHBoxLayout *hb1 = new QHBoxLayout( vb );
89 hb1->setSpacing( 2 ); 89 hb1->setSpacing( 2 );
90 90
91 QLabel *palmtopLogo = new QLabel( container ); 91 QLabel *palmtopLogo = new QLabel( container );
92 QImage logo1 = Resource::loadImage( "logo/opielogo" ); 92 QImage logo1 = Opie::Core::OResource::loadImage( "logo/opielogo" );
93 logo1 = logo1.smoothScale( 50, 55 ); 93 logo1 = logo1.smoothScale( 50, 55 );
94 QPixmap logo1Pixmap; 94 QPixmap logo1Pixmap;
95 logo1Pixmap.convertFromImage( logo1 ); 95 logo1Pixmap.convertFromImage( logo1 );
96 palmtopLogo->setPixmap( logo1Pixmap ); 96 palmtopLogo->setPixmap( logo1Pixmap );
97 palmtopLogo->setFixedSize( 60, 60 ); 97 palmtopLogo->setFixedSize( 60, 60 );
98 hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); 98 hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft );
@@ -103,13 +103,13 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
103 103
104 104
105 QHBoxLayout *hb2 = new QHBoxLayout( vb ); 105 QHBoxLayout *hb2 = new QHBoxLayout( vb );
106 hb1->setSpacing( 2 ); 106 hb1->setSpacing( 2 );
107 107
108 QLabel *linuxLogo = new QLabel( container ); 108 QLabel *linuxLogo = new QLabel( container );
109 QImage logo2 = Resource::loadImage( "logo/tux-logo" ); 109 QImage logo2 = Opie::Core::OResource::loadImage( "logo/tux-logo" );
110 logo2 = logo2.smoothScale( 55, 60 ); 110 logo2 = logo2.smoothScale( 55, 60 );
111 QPixmap logo2Pixmap; 111 QPixmap logo2Pixmap;
112 logo2Pixmap.convertFromImage( logo2 ); 112 logo2Pixmap.convertFromImage( logo2 );
113 linuxLogo->setPixmap( logo2Pixmap ); 113 linuxLogo->setPixmap( logo2Pixmap );
114 linuxLogo->setFixedSize( 60, 60 ); 114 linuxLogo->setFixedSize( 60, 60 );
115 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); 115 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft );
@@ -138,13 +138,13 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
138 modelPixmap += "jornada56x"; 138 modelPixmap += "jornada56x";
139 else if ( model == Model_Jornada_720 ) 139 else if ( model == Model_Jornada_720 )
140 modelPixmap += "jornada720"; 140 modelPixmap += "jornada720";
141 else 141 else
142 modelPixmap += "pda"; 142 modelPixmap += "pda";
143 143
144 QImage logo3 = Resource::loadImage( modelPixmap ); 144 QImage logo3 = Opie::Core::OResource::loadImage( modelPixmap );
145 145
146 int width = logo3.width(); 146 int width = logo3.width();
147 int height = logo3.height(); 147 int height = logo3.height();
148 float aspect = float( height ) / width; 148 float aspect = float( height ) / width;
149 logo3 = logo3.smoothScale( 50, 50.0 * aspect ); 149 logo3 = logo3.smoothScale( 50, 50.0 * aspect );
150 150