Crossfire Server, Trunk  R20608
CREUtils.h
Go to the documentation of this file.
1 #ifndef CREUTILS_H
2 #define CREUTILS_H
3 
4 #include <QtGui>
5 
6 extern "C" {
7 #include "global.h"
8 #include "artifact.h"
9 #include "treasure.h"
10 }
11 
12 class CREMapInformation;
13 class Quest;
14 class MessageFile;
15 class ScriptFile;
16 
17 class CREUtils
18 {
19  public:
20  static QTreeWidgetItem* archetypeNode(QTreeWidgetItem* parent);
21  static QTreeWidgetItem* archetypeNode(const archt* arch, QTreeWidgetItem* parent);
22 
23  static QTreeWidgetItem* objectNode(const object* op, QTreeWidgetItem* parent);
24 
25  static QTreeWidgetItem* artifactNode(QTreeWidgetItem* parent);
26  static QTreeWidgetItem* artifactNode(const artifact* arti, QTreeWidgetItem* parent);
27 
28  static QTreeWidgetItem* treasureNode(QTreeWidgetItem* parent);
29  static QTreeWidgetItem* treasureNode(const treasurelist* list, QTreeWidgetItem* parent);
30  static QTreeWidgetItem* treasureNode(const treasure* treasure, const treasurelist* list, QTreeWidgetItem* parent);
31 
32  static QTreeWidgetItem* formulaeNode(const recipe* recipe, QTreeWidgetItem* parent);
33 
34  static QTreeWidgetItem* faceNode(QTreeWidgetItem* parent);
35  static QTreeWidgetItem* faceNode(const New_Face* face, QTreeWidgetItem* parent);
36 
37  static QTreeWidgetItem* animationNode(QTreeWidgetItem* parent);
38  static QTreeWidgetItem* animationNode(const Animations* anim, QTreeWidgetItem* parent);
39 
40  static QTreeWidgetItem* regionNode(const QString& name, int count, QTreeWidgetItem *parent);
41  static QTreeWidgetItem* mapNode(QTreeWidgetItem *parent);
42  static QTreeWidgetItem* mapNode(const CREMapInformation* map, QTreeWidgetItem *parent);
43 
44  static QTreeWidgetItem* questsNode();
45  static QTreeWidgetItem* questNode(const Quest* quest, QTreeWidgetItem* parent);
46 
47  static QTreeWidgetItem* messagesNode();
48  static QTreeWidgetItem* messageNode(const MessageFile* message, QTreeWidgetItem* parent);
49 
50  static QTreeWidgetItem* scriptsNode();
51  static QTreeWidgetItem* scriptNode(const ScriptFile* script, QTreeWidgetItem* parent);
52 };
53 
54 #endif // CREUTILS_H
static QTreeWidgetItem * animationNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:182
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:15
static QTreeWidgetItem * artifactNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:42
Definition: Quest.h:32
static QTreeWidgetItem * questsNode()
Definition: CREUtils.cpp:212
static QTreeWidgetItem * formulaeNode(const recipe *recipe, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:141
Definition: object.h:465
static QTreeWidgetItem * faceNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:169
static QTreeWidgetItem * questNode(const Quest *quest, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:217
static QTreeWidgetItem * scriptNode(const ScriptFile *script, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:239
static QTreeWidgetItem * scriptsNode()
Definition: CREUtils.cpp:235
static QTreeWidgetItem * objectNode(const object *op, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:29
static QTreeWidgetItem * messagesNode()
Definition: CREUtils.cpp:225
static QTreeWidgetItem * regionNode(const QString &name, int count, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:197
static QTreeWidgetItem * messageNode(const MessageFile *message, QTreeWidgetItem *parent)
Definition: CREUtils.cpp:230
static QTreeWidgetItem * treasureNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:83
static QTreeWidgetItem * mapNode(QTreeWidgetItem *parent)
Definition: CREUtils.cpp:202