Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Skin Class Reference

#include </home/clem/local/src/opie/noncore/multimedia/opieplayer2/skin.h>

Collaboration diagram for Skin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Skin (const QString &name, const QString &fileNameInfix)
 Skin (const QString &fileNameInfix)
 ~Skin ()
bool isCachable () const
void setCachable (bool cachable)
QPixmap backgroundPixmap () const
QImage buttonUpImage () const
QImage buttonDownImage () const
QImage buttonMask (const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount) const
QImage buttonMaskImage (const QString &fileName) const

Static Public Member Functions

static QString defaultSkinName ()

Private Member Functions

void init (const QString &name)
void addButtonToMask (int tag, const QImage &maskImage) const
 Skin (const Skin &)
Skinoperator= (const Skin &)

Static Private Member Functions

static QImage loadImage (const QString &fileName)

Private Attributes

QString m_fileNameInfix
QString m_skinPath
bool m_isCachable: 1
SkinDatad

Constructor & Destructor Documentation

Skin::Skin const QString name,
const QString fileNameInfix
 

Definition at line 71 of file skin.cpp.

References init().

Skin::Skin const QString fileNameInfix  ) 
 

Definition at line 77 of file skin.cpp.

References defaultSkinName(), and init().

Skin::~Skin  ) 
 

Definition at line 83 of file skin.cpp.

References d, m_fileNameInfix, m_isCachable, m_skinPath, and Singleton< SkinCache >::self().

Skin::Skin const Skin  )  [private]
 


Member Function Documentation

void Skin::addButtonToMask int  tag,
const QImage &  maskImage
const [private]
 

Definition at line 135 of file skin.cpp.

References buttonMask(), SkinData::buttonMask, d, Opie::MM::dest, Opie::MM::x, and Opie::MM::y.

Referenced by buttonMask().

QPixmap Skin::backgroundPixmap  )  const
 

Definition at line 98 of file skin.cpp.

References SkinData::backgroundPixmap, d, loadImage(), and m_skinPath.

Referenced by MediaWidget::loadSkin(), and SkinLoader::IncrementalLoader::loadStep().

QImage Skin::buttonDownImage  )  const
 

Definition at line 112 of file skin.cpp.

References SkinData::buttonDownImage, d, loadImage(), m_fileNameInfix, and m_skinPath.

Referenced by MediaWidget::loadSkin(), and SkinLoader::IncrementalLoader::loadStep().

QImage Skin::buttonMask const MediaWidget::SkinButtonInfo skinButtonInfo,
uint  buttonCount
const
 

Definition at line 119 of file skin.cpp.

References addButtonToMask(), SkinData::buttonMask, buttonMaskImage(), buttonUpImage(), d, and i.

Referenced by addButtonToMask(), SkinLoader::IncrementalLoader::loadStep(), and MediaWidget::setupButtons().

QImage Skin::buttonMaskImage const QString fileName  )  const
 

Definition at line 149 of file skin.cpp.

References SkinData::buttonMasks, d, QString::fromLatin1(), loadImage(), m_fileNameInfix, and m_skinPath.

Referenced by buttonMask(), SkinLoader::IncrementalLoader::loadStep(), and MediaWidget::setupButton().

QImage Skin::buttonUpImage  )  const
 

Definition at line 105 of file skin.cpp.

References SkinData::buttonUpImage, d, loadImage(), m_fileNameInfix, and m_skinPath.

Referenced by buttonMask(), MediaWidget::loadSkin(), and SkinLoader::IncrementalLoader::loadStep().

QString Skin::defaultSkinName  )  [static]
 

Definition at line 160 of file skin.cpp.

References Config::readEntry(), and Config::setGroup().

Referenced by SkinLoader::schedule(), and Skin().

void Skin::init const QString name  )  [private]
 

Definition at line 91 of file skin.cpp.

References d, m_fileNameInfix, m_isCachable, m_skinPath, and Singleton< SkinCache >::self().

Referenced by Skin().

bool Skin::isCachable  )  const [inline]
 

Definition at line 41 of file skin.h.

References m_isCachable.

QImage Skin::loadImage const QString fileName  )  [static, private]
 

Definition at line 167 of file skin.cpp.

References Opie::Core::OResource::findPixmap().

Referenced by backgroundPixmap(), buttonDownImage(), buttonMaskImage(), and buttonUpImage().

Skin& Skin::operator= const Skin  )  [private]
 

void Skin::setCachable bool  cachable  )  [inline]
 

Definition at line 42 of file skin.h.

References m_isCachable.

Referenced by MediaWidget::loadDefaultSkin().


Member Data Documentation

SkinData* Skin::d [private]
 

Definition at line 65 of file skin.h.

Referenced by addButtonToMask(), backgroundPixmap(), buttonDownImage(), buttonMask(), buttonMaskImage(), buttonUpImage(), init(), and ~Skin().

QString Skin::m_fileNameInfix [private]
 

Definition at line 61 of file skin.h.

Referenced by buttonDownImage(), buttonMaskImage(), buttonUpImage(), init(), and ~Skin().

bool Skin::m_isCachable [private]
 

Definition at line 63 of file skin.h.

Referenced by init(), isCachable(), setCachable(), and ~Skin().

QString Skin::m_skinPath [private]
 

Definition at line 62 of file skin.h.

Referenced by backgroundPixmap(), buttonDownImage(), buttonMaskImage(), buttonUpImage(), init(), and ~Skin().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:51:58 2005 for OPIE by  doxygen 1.4.2