summaryrefslogtreecommitdiff
authordrw <drw>2005-04-24 21:32:37 (UTC)
committer drw <drw>2005-04-24 21:32:37 (UTC)
commit2391cfd9c79b87b3b00a4bb4a1d76981debb4486 (patch) (unidiff)
tree4ba271b1465881c0cce4ba5fd7a8c95bff5aca24
parentead2586272813b8cab8092773376c690cdf1b906 (diff)
downloadopie-2391cfd9c79b87b3b00a4bb4a1d76981debb4486.zip
opie-2391cfd9c79b87b3b00a4bb4a1d76981debb4486.tar.gz
opie-2391cfd9c79b87b3b00a4bb4a1d76981debb4486.tar.bz2
Resource -> OResource
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/restartapplet2/opie-restartapplet2.control2
-rw-r--r--core/applets/restartapplet2/restart.cpp42
-rw-r--r--core/applets/restartapplet2/restartapplet.pro2
-rw-r--r--core/applets/rotateapplet/rotate.cpp54
-rw-r--r--core/applets/vtapplet/opie-vtapplet.control2
-rw-r--r--core/applets/vtapplet/vt.cpp10
-rw-r--r--core/applets/vtapplet/vtapplet.pro2
7 files changed, 39 insertions, 75 deletions
diff --git a/core/applets/restartapplet2/opie-restartapplet2.control b/core/applets/restartapplet2/opie-restartapplet2.control
index cec3b19..9cc8dac 100644
--- a/core/applets/restartapplet2/opie-restartapplet2.control
+++ b/core/applets/restartapplet2/opie-restartapplet2.control
@@ -6,3 +6,3 @@ Maintainer: L.J. Potter <lpotter@trolltech.com>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal 7Depends: task-opie-minimal, libopiecore2
8Description: Restart Applet 8Description: Restart Applet
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp
index eda0005..42d814a 100644
--- a/core/applets/restartapplet2/restart.cpp
+++ b/core/applets/restartapplet2/restart.cpp
@@ -4,38 +4,8 @@
4 4
5#include <opie2/oresource.h>
6
5#include <qpe/applnk.h> 7#include <qpe/applnk.h>
6#include <qpe/qpeapplication.h> 8#include <qpe/qpeapplication.h>
7#include <qpe/resource.h>
8#include <qpe/qcopenvelope_qws.h> 9#include <qpe/qcopenvelope_qws.h>
9 10
10/* XPM */
11static char *restart_xpm[] = {
12"16 16 11 1",
13" c None",
14". c #000000",
15"+ c #DCDCDC",
16"@ c #A0A0A0",
17"# c #C3C3C3",
18"$ c #808080",
19"% c #FFA858",
20"& c #FFDCA8",
21"* c #FFFFC0",
22"= c #FFFFFF",
23"- c #585858",
24" .. ",
25" .. .++. .. ",
26" .+@.@##@.@+. ",
27" .@+$@%%@$+@. ",
28" .$%%&%&%$. ",
29" ..+@%&$$%&@+.. ",
30".+#@%&%@@&*%@#+.",
31".$@+$&*&&=*$+@$.",
32" .--+$&*=&$+--. ",
33" .$#++$$++#$. ",
34" .@=$-$++$-$=@. ",
35" .+@-..@@..-@+. ",
36" ... .+=. ... ",
37" .-$. ",
38" .. ",
39" "};
40
41RestartApplet::RestartApplet ( ) 11RestartApplet::RestartApplet ( )
@@ -66,8 +36,4 @@ QIconSet RestartApplet::icon ( ) const
66{ 36{
67 QPixmap pix; 37 QPixmap pix = Opie::Core::OResource::loadPixmap( "exec", Opie::Core::OResource::SmallIcon );
68 QImage img = ( const char** ) restart_xpm ;//Resource::loadImage ( "Run" ); 38 return pix;
69
70 if ( !img. isNull ( ))
71 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
72 return pix;
73} 39}
diff --git a/core/applets/restartapplet2/restartapplet.pro b/core/applets/restartapplet2/restartapplet.pro
index 60d34f2..d3c408d 100644
--- a/core/applets/restartapplet2/restartapplet.pro
+++ b/core/applets/restartapplet2/restartapplet.pro
@@ -8,3 +8,3 @@ INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 8DEPENDPATH += $(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe -lopiecore2
10VERSION = 1.0.0 10VERSION = 1.0.0
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index d13c2c0..9abbde8 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -1,26 +1,28 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3
3 Copyright (C) 2003 Maximilian Reiss <harlekin@handhelds.org> 4 Copyright (C) 2003 Maximilian Reiss <harlekin@handhelds.org>
4 Copyright (C) 2003 Greg Gilbert <ggilbert@treke.net> 5 Copyright (C) 2003 Greg Gilbert <ggilbert@treke.net>
5               =. Copyright (C) 2004 Michael Lauer <mickey@Vanille.de> 6 Copyright (C) 2004 Michael Lauer <mickey@Vanille.de>
6             .=l. 7 =.
7           .>+-= 8 .=l.
8 _;:,     .>    :=|. This library is free software; you can 9           .>+-=
9.> <,   >  .   <= redistribute it and/or modify it under 10 _;:,     .>    :=|. This program is free software; you can
10:=1 )Y*s>-.--   : the terms of the GNU Library General Public 11.> <`_,   >  .   <= redistribute it and/or modify it under
11.="- .-=="i,     .._ License as published by the Free Software 12 :`=1 )Y*s>-.--   : the terms of the GNU Library General Public
12 - .   .-<_>     .<> Foundation; either version 2 of the License, 13.="- .-=="i,     .._ License as published by the Free Software
13     ._= =}       : or (at your option) any later version. 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
14    .%+i>       _;_. 15     ._= =}       : or (at your option) any later version.
15    .i_,=:_.      -<s. This library is distributed in the hope that 16    .%`+i>       _;_.
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 17    .i_,=:_.      -<s. This program is distributed in the hope that
17    : ..    .:,     . . . without even the implied warranty of 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
18    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A 19 : ..    .:,     . . . without even the implied warranty of
19  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
20..}^=.=       =       ; Library General Public License for more 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
21++=   -.     .     .: details. 22..}^=.=       =       ; Library General Public License for more
22 :     =  ...= . :.=- 23++=   -.     .`     .: details.
23 -.   .:....=;==+<; You should have received a copy of the GNU 24 :     =  ...= . :.=-
24  -_. . .   )=.  = Library General Public License along with 25 -.   .:....=;==+<; You should have received a copy of the GNU
25    --        :-= this library; see the file COPYING.LIB. 26  -_. . .   )=.  = Library General Public License along with
27    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
@@ -35,2 +37,4 @@
35#include <opie2/odevice.h> 37#include <opie2/odevice.h>
38#include <opie2/oresource.h>
39
36#include <qpe/applnk.h> 40#include <qpe/applnk.h>
@@ -39,3 +43,2 @@
39#include <qpe/qcopenvelope_qws.h> 43#include <qpe/qcopenvelope_qws.h>
40#include <qpe/resource.h>
41using namespace Opie::Core; 44using namespace Opie::Core;
@@ -141,6 +144,3 @@ QIconSet RotateApplet::icon() const
141{ 144{
142 QPixmap pix; 145 QPixmap pix = Opie::Core::OResource::loadPixmap( "Rotation", Opie::Core::OResource::SmallIcon );
143 QImage img = Resource::loadImage( "Rotation" );
144 if ( !img.isNull() )
145 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
146 return pix; 146 return pix;
diff --git a/core/applets/vtapplet/opie-vtapplet.control b/core/applets/vtapplet/opie-vtapplet.control
index a1662f1..ae504a9 100644
--- a/core/applets/vtapplet/opie-vtapplet.control
+++ b/core/applets/vtapplet/opie-vtapplet.control
@@ -6,3 +6,3 @@ Maintainer: Opie Team <opie@handhelds.org>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal 7Depends: task-opie-minimal, libopiecore2
8Description: Switch to another virtual terminal 8Description: Switch to another virtual terminal
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp
index ae89635..0d4e657 100644
--- a/core/applets/vtapplet/vt.cpp
+++ b/core/applets/vtapplet/vt.cpp
@@ -17,4 +17,6 @@
17#include <opie2/odebug.h> 17#include <opie2/odebug.h>
18#include <opie2/oresource.h>
19
18#include <qpe/applnk.h> 20#include <qpe/applnk.h>
19#include <qpe/resource.h> 21
20using namespace Opie::Core; 22using namespace Opie::Core;
@@ -70,7 +72,3 @@ QIconSet VTApplet::icon ( ) const
70{ 72{
71 QPixmap pix; 73 QPixmap pix = Opie::Core::OResource::loadPixmap( "terminal", Opie::Core::OResource::SmallIcon );
72 QImage img = Resource::loadImage ( "terminal" );
73
74 if ( !img. isNull ( ))
75 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
76 return pix; 74 return pix;
diff --git a/core/applets/vtapplet/vtapplet.pro b/core/applets/vtapplet/vtapplet.pro
index 6c4873c..912af58 100644
--- a/core/applets/vtapplet/vtapplet.pro
+++ b/core/applets/vtapplet/vtapplet.pro
@@ -8,3 +8,3 @@ INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 8DEPENDPATH += $(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe -lopiecore2
10VERSION = 1.0.0 10VERSION = 1.0.0