author | mickeyl <mickeyl> | 2005-06-02 10:50:16 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-06-02 10:50:16 (UTC) |
commit | f55a56f54de1d3fa9084160159a379079a317d96 (patch) (unidiff) | |
tree | ebf3cfeed6833c8147f291aedc5d73d23c8ecde7 | |
parent | 9d6c759ac1adc5cb654bb3ada6b1d64cddc7217d (diff) | |
download | opie-f55a56f54de1d3fa9084160159a379079a317d96.zip opie-f55a56f54de1d3fa9084160159a379079a317d96.tar.gz opie-f55a56f54de1d3fa9084160159a379079a317d96.tar.bz2 |
s/Resource/OResource/
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.cpp b/noncore/multimedia/opieplayer2/skin.cpp index b2c1649..b95c544 100644 --- a/noncore/multimedia/opieplayer2/skin.cpp +++ b/noncore/multimedia/opieplayer2/skin.cpp | |||
@@ -17,24 +17,29 @@ | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
18 | along with this program; see the file COPYING. If not, write to | 18 | along with this program; see the file COPYING. If not, write to |
19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
20 | Boston, MA 02111-1307, USA. | 20 | Boston, MA 02111-1307, USA. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include "skin.h" | 23 | #include "skin.h" |
24 | #include "singleton.h" | 24 | #include "singleton.h" |
25 | |||
26 | /* OPIE */ | ||
25 | #include <opie2/odebug.h> | 27 | #include <opie2/odebug.h> |
28 | #include <opie2/oresource.h> | ||
29 | using namespace Opie::Core; | ||
30 | #include <qpe/config.h> | ||
31 | #include <qpe/global.h> | ||
26 | 32 | ||
33 | /* QT */ | ||
27 | #include <qcache.h> | 34 | #include <qcache.h> |
28 | #include <qtimer.h> | 35 | #include <qtimer.h> |
29 | 36 | ||
30 | #include <qpe/config.h> | 37 | /* STD */ |
31 | #include <qpe/global.h> | ||
32 | |||
33 | #include <assert.h> | 38 | #include <assert.h> |
34 | 39 | ||
35 | struct SkinData | 40 | struct SkinData |
36 | { | 41 | { |
37 | typedef QMap<QString, QImage> ButtonMaskImageMap; | 42 | typedef QMap<QString, QImage> ButtonMaskImageMap; |
38 | 43 | ||
39 | QPixmap backgroundPixmap; | 44 | QPixmap backgroundPixmap; |
40 | QImage buttonUpImage; | 45 | QImage buttonUpImage; |
@@ -156,17 +161,17 @@ QString Skin::defaultSkinName() | |||
156 | { | 161 | { |
157 | Config cfg( "OpiePlayer" ); | 162 | Config cfg( "OpiePlayer" ); |
158 | cfg.setGroup( "Options" ); | 163 | cfg.setGroup( "Options" ); |
159 | return cfg.readEntry( "Skin", "default" ); | 164 | return cfg.readEntry( "Skin", "default" ); |
160 | } | 165 | } |
161 | 166 | ||
162 | QImage Skin::loadImage( const QString &fileName ) | 167 | QImage Skin::loadImage( const QString &fileName ) |
163 | { | 168 | { |
164 | return QImage( Resource::findPixmap( fileName ) ); | 169 | return QImage( OResource::findPixmap( fileName ) ); |
165 | } | 170 | } |
166 | 171 | ||
167 | SkinCache::SkinCache() | 172 | SkinCache::SkinCache() |
168 | { | 173 | { |
169 | // let's say we cache two skins (audio+video) at maximum | 174 | // let's say we cache two skins (audio+video) at maximum |
170 | m_cache.setMaxCost( 2 ); | 175 | m_cache.setMaxCost( 2 ); |
171 | // ... and one background pixmap | 176 | // ... and one background pixmap |
172 | m_backgroundPixmapCache.setMaxCost( 1 ); | 177 | m_backgroundPixmapCache.setMaxCost( 1 ); |