Crossfire Server, Trunk
CREPixmap.h
Go to the documentation of this file.
1 #ifndef CREPIXMAP_H
2 #define CREPIXMAP_H
3 
4 #include <QtWidgets>
5 extern "C" {
6 #include "global.h"
7 #include "image.h"
8 }
9 
10 class CREPixmap
11 {
12  public:
13  static void init();
14 
15  static face_sets *faceset;
16  static void setFaceset(const QString& prefix);
17  static void setUseFacesetFallback(bool use);
18  static void clearFaceCache();
19 
20  static QIcon getIcon(uint16_t faceNumber);
21  static QIcon getIcon(const Face *face);
22 
23  static QIcon getTreasureIcon();
24  static QIcon getTreasureOneIcon();
25  static QIcon getTreasureYesIcon();
26  static QIcon getTreasureNoIcon();
27 
28  protected:
29  static QIcon getIcon(const face_sets* faceset, uint16_t faceNumber);
30 
31  static QHash<uint16_t, QIcon> allFaces;
32  static QIcon* myTreasureIcon;
33  static QIcon* myTreasureOneIcon;
34  static QIcon* myTreasureYesIcon;
35  static QIcon* myTreasureNoIcon;
36  static bool myUseFaceFallback;
37 };
38 
39 #endif // CREPIXMAP_H
CREPixmap::setFaceset
static void setFaceset(const QString &prefix)
Definition: CREPixmap.cpp:34
Face
Definition: face.h:14
CREPixmap::allFaces
static QHash< uint16_t, QIcon > allFaces
Definition: CREPixmap.h:31
global.h
castle_read.prefix
string prefix
Definition: castle_read.py:31
CREPixmap::setUseFacesetFallback
static void setUseFacesetFallback(bool use)
Definition: CREPixmap.cpp:42
CREPixmap::getTreasureIcon
static QIcon getTreasureIcon()
Definition: CREPixmap.cpp:92
CREPixmap::getIcon
static QIcon getIcon(uint16_t faceNumber)
Definition: CREPixmap.cpp:55
CREPixmap::myTreasureYesIcon
static QIcon * myTreasureYesIcon
Definition: CREPixmap.h:34
CREPixmap::myTreasureOneIcon
static QIcon * myTreasureOneIcon
Definition: CREPixmap.h:33
CREPixmap::myTreasureNoIcon
static QIcon * myTreasureNoIcon
Definition: CREPixmap.h:35
CREPixmap::faceset
static face_sets * faceset
Definition: CREPixmap.h:15
CREPixmap::getTreasureYesIcon
static QIcon getTreasureYesIcon()
Definition: CREPixmap.cpp:104
image.h
CREPixmap
Definition: CREPixmap.h:10
CREPixmap::getTreasureOneIcon
static QIcon getTreasureOneIcon()
Definition: CREPixmap.cpp:98
CREPixmap::myUseFaceFallback
static bool myUseFaceFallback
Definition: CREPixmap.h:36
CREPixmap::init
static void init()
Definition: CREPixmap.cpp:22
CREPixmap::clearFaceCache
static void clearFaceCache()
Definition: CREPixmap.cpp:50
face_sets
Definition: image.h:17
CREPixmap::getTreasureNoIcon
static QIcon getTreasureNoIcon()
Definition: CREPixmap.cpp:110
CREPixmap::myTreasureIcon
static QIcon * myTreasureIcon
Definition: CREPixmap.h:32