Crossfire Server, Trunk
CREPixmap Class Reference

#include <CREPixmap.h>

+ Collaboration diagram for CREPixmap:

Static Public Member Functions

static void clearFaceCache ()
 
static QIcon getIcon (const Face *face)
 
static QIcon getIcon (uint16_t faceNumber)
 
static QIcon getTreasureIcon ()
 
static QIcon getTreasureNoIcon ()
 
static QIcon getTreasureOneIcon ()
 
static QIcon getTreasureYesIcon ()
 
static void init ()
 
static void setFaceset (const QString &prefix)
 
static void setUseFacesetFallback (bool use)
 

Static Public Attributes

static face_setsfaceset
 

Static Protected Member Functions

static QIcon getIcon (const face_sets *faceset, uint16_t faceNumber)
 

Static Protected Attributes

static QHash< uint16_t, QIcon > allFaces
 
static QIcon * myTreasureIcon
 
static QIcon * myTreasureNoIcon
 
static QIcon * myTreasureOneIcon
 
static QIcon * myTreasureYesIcon
 
static bool myUseFaceFallback = true
 

Detailed Description

Definition at line 20 of file CREPixmap.h.

Member Function Documentation

◆ clearFaceCache()

void CREPixmap::clearFaceCache ( )
static

Definition at line 60 of file CREPixmap.cpp.

References allFaces.

Referenced by CREMainWindow::onToolReloadAssets().

+ Here is the caller graph for this function:

◆ getIcon() [1/3]

QIcon CREPixmap::getIcon ( const Face face)
static

Definition at line 70 of file CREPixmap.cpp.

References faceset, getIcon(), and Face::number.

+ Here is the call graph for this function:

◆ getIcon() [2/3]

QIcon CREPixmap::getIcon ( const face_sets faceset,
uint16_t  faceNumber 
)
staticprotected

Definition at line 77 of file CREPixmap.cpp.

References allFaces, face_sets::allocated, face_info::data, face_info::datalen, face_sets::faces, faceset, face_sets::fallback, getIcon(), myUseFaceFallback, and uchar.

+ Here is the call graph for this function:

◆ getIcon() [3/3]

◆ getTreasureIcon()

QIcon CREPixmap::getTreasureIcon ( )
static

Definition at line 102 of file CREPixmap.cpp.

References myTreasureIcon.

Referenced by TreasureListWrapper::displayIcon(), TreasureWrapper::displayIcon(), and TreasureListComboBox::TreasureListComboBox().

+ Here is the caller graph for this function:

◆ getTreasureNoIcon()

QIcon CREPixmap::getTreasureNoIcon ( )
static

Definition at line 120 of file CREPixmap.cpp.

References myTreasureNoIcon.

Referenced by TreasureYesNo::displayIcon().

+ Here is the caller graph for this function:

◆ getTreasureOneIcon()

QIcon CREPixmap::getTreasureOneIcon ( )
static

Definition at line 108 of file CREPixmap.cpp.

References myTreasureOneIcon.

Referenced by TreasureListWrapper::displayIcon(), TreasureWrapper::displayIcon(), and TreasureListComboBox::TreasureListComboBox().

+ Here is the caller graph for this function:

◆ getTreasureYesIcon()

QIcon CREPixmap::getTreasureYesIcon ( )
static

Definition at line 114 of file CREPixmap.cpp.

References myTreasureYesIcon.

Referenced by TreasureYesNo::displayIcon().

+ Here is the caller graph for this function:

◆ init()

void CREPixmap::init ( )
static

Definition at line 32 of file CREPixmap.cpp.

References faceset, AssetsManager::facesets(), AssetsCollection< T, Key >::get(), getManager(), myTreasureIcon, myTreasureNoIcon, myTreasureOneIcon, myTreasureYesIcon, myUseFaceFallback, and settings.

Referenced by CREMainWindow::CREMainWindow(), and main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFaceset()

void CREPixmap::setFaceset ( const QString &  prefix)
static

Definition at line 44 of file CREPixmap.cpp.

References allFaces, faceset, AssetsManager::facesets(), AssetsCollection< T, Key >::get(), getManager(), castle_read::prefix, and settings.

Referenced by CREMainWindow::onToolFaceset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUseFacesetFallback()

void CREPixmap::setUseFacesetFallback ( bool  use)
static

Definition at line 52 of file CREPixmap.cpp.

References allFaces, myUseFaceFallback, and settings.

Referenced by CREMainWindow::onToolFacesetUseFallback().

+ Here is the caller graph for this function:

Field Documentation

◆ allFaces

QHash< uint16_t, QIcon > CREPixmap::allFaces
staticprotected

Definition at line 41 of file CREPixmap.h.

Referenced by clearFaceCache(), getIcon(), setFaceset(), and setUseFacesetFallback().

◆ faceset

face_sets * CREPixmap::faceset
static

Definition at line 25 of file CREPixmap.h.

Referenced by getIcon(), init(), FaceMakerDialog::makeFaces(), and setFaceset().

◆ myTreasureIcon

QIcon * CREPixmap::myTreasureIcon
staticprotected

Definition at line 42 of file CREPixmap.h.

Referenced by getTreasureIcon(), and init().

◆ myTreasureNoIcon

QIcon * CREPixmap::myTreasureNoIcon
staticprotected

Definition at line 45 of file CREPixmap.h.

Referenced by getTreasureNoIcon(), and init().

◆ myTreasureOneIcon

QIcon * CREPixmap::myTreasureOneIcon
staticprotected

Definition at line 43 of file CREPixmap.h.

Referenced by getTreasureOneIcon(), and init().

◆ myTreasureYesIcon

QIcon * CREPixmap::myTreasureYesIcon
staticprotected

Definition at line 44 of file CREPixmap.h.

Referenced by getTreasureYesIcon(), and init().

◆ myUseFaceFallback

bool CREPixmap::myUseFaceFallback = true
staticprotected

Definition at line 46 of file CREPixmap.h.

Referenced by getIcon(), init(), and setUseFacesetFallback().


The documentation for this class was generated from the following files: