Crossfire Server, Trunk
CREUtils.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef CREUTILS_H
14 #define CREUTILS_H
15 
16 #include <QtWidgets>
17 
18 extern "C" {
19 #include "global.h"
20 #include "artifact.h"
21 #include "treasure.h"
22 #include "image.h"
23 #include "quest.h"
24 }
25 
26 class CREMapInformation;
27 class Quest;
28 class MessageFile;
29 class ScriptFile;
30 
31 class CREUtils
32 {
33  public:
34  static QTreeWidgetItem* archetypeNode(QTreeWidgetItem* parent);
35  static QTreeWidgetItem* archetypeNode(const archt* arch, QTreeWidgetItem* parent);
36 
37  static QTreeWidgetItem* objectNode(const object* op, QTreeWidgetItem* parent);
38 
39  static QTreeWidgetItem* treasureNode(QTreeWidgetItem* parent);
40  static QTreeWidgetItem* treasureNode(const treasurelist* list, QTreeWidgetItem* parent);
41  static QTreeWidgetItem* treasureNode(const treasure* treasure, const treasurelist* list, QTreeWidgetItem* parent);
42 
43  static QTreeWidgetItem* formulaeNode(const recipe* recipe, QTreeWidgetItem* parent);
44 
45  static QTreeWidgetItem* faceNode(QTreeWidgetItem* parent);
46  static QTreeWidgetItem* faceNode(const Face* face, QTreeWidgetItem* parent);
47 
48  static QTreeWidgetItem* mapNode(QTreeWidgetItem *parent);
49  static QTreeWidgetItem* mapNode(const CREMapInformation* map, QTreeWidgetItem *parent);
50 
51  static void addCountSuffix(QTreeWidgetItem *item, int column = 0);
52 };
53 
54 #endif // CREUTILS_H
Face
Definition: face.h:14
global.h
CREUtils::addCountSuffix
static void addCountSuffix(QTreeWidgetItem *item, int column=0)
Definition: CREUtils.cpp:181
archininventory.arch
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: archininventory.py:16
CREUtils::faceNode
static QTreeWidgetItem * faceNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:158
CREUtils::archetypeNode
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:26
guildoracle.list
list
Definition: guildoracle.py:87
artifact.h
CREUtils::mapNode
static QTreeWidgetItem * mapNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:171
MessageFile
Definition: MessageFile.h:68
treasurestruct
Definition: treasure.h:63
archt
Definition: object.h:469
CREMapInformation
Definition: CREMapInformation.h:27
recipestruct
Definition: recipe.h:10
disinfect.map
map
Definition: disinfect.py:4
CREUtils
Definition: CREUtils.h:31
image.h
treasure.h
ScriptFile
Definition: ScriptFile.h:44
CREUtils::formulaeNode
static QTreeWidgetItem * formulaeNode(const recipe *recipe, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:118
quest.h
item
Definition: item.py:1
CREUtils::objectNode
static QTreeWidgetItem * objectNode(const object *op, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:39
give.op
op
Definition: give.py:33
CREUtils::treasureNode
static QTreeWidgetItem * treasureNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:52
treasureliststruct
Definition: treasure.h:82