author | mickeyl <mickeyl> | 2005-06-02 10:50:16 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-06-02 10:50:16 (UTC) |
commit | f55a56f54de1d3fa9084160159a379079a317d96 (patch) (side-by-side diff) | |
tree | ebf3cfeed6833c8147f291aedc5d73d23c8ecde7 /noncore/multimedia/opieplayer2/skin.cpp | |
parent | 9d6c759ac1adc5cb654bb3ada6b1d64cddc7217d (diff) | |
download | opie-f55a56f54de1d3fa9084160159a379079a317d96.zip opie-f55a56f54de1d3fa9084160159a379079a317d96.tar.gz opie-f55a56f54de1d3fa9084160159a379079a317d96.tar.bz2 |
s/Resource/OResource/
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.cpp') (more/less context) (show whitespace changes)
-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 @@ -13,32 +13,37 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "skin.h" #include "singleton.h" + +/* OPIE */ #include <opie2/odebug.h> +#include <opie2/oresource.h> +using namespace Opie::Core; +#include <qpe/config.h> +#include <qpe/global.h> +/* QT */ #include <qcache.h> #include <qtimer.h> -#include <qpe/config.h> -#include <qpe/global.h> - +/* STD */ #include <assert.h> struct SkinData { typedef QMap<QString, QImage> ButtonMaskImageMap; QPixmap backgroundPixmap; QImage buttonUpImage; QImage buttonDownImage; QImage buttonMask; ButtonMaskImageMap buttonMasks; }; @@ -152,25 +157,25 @@ QImage Skin::buttonMaskImage( const QString &fileName ) const return *it; } QString Skin::defaultSkinName() { Config cfg( "OpiePlayer" ); cfg.setGroup( "Options" ); return cfg.readEntry( "Skin", "default" ); } QImage Skin::loadImage( const QString &fileName ) { - return QImage( Resource::findPixmap( fileName ) ); + return QImage( OResource::findPixmap( fileName ) ); } SkinCache::SkinCache() { // let's say we cache two skins (audio+video) at maximum m_cache.setMaxCost( 2 ); // ... and one background pixmap m_backgroundPixmapCache.setMaxCost( 1 ); } SkinData *SkinCache::lookupAndTake( const QString &skinPath, const QString &fileNameInfix ) { |