Crossfire Server, Trunk  R22047
CREMainWindow.h
Go to the documentation of this file.
1 #include <Qt>
2 
3 #include <QMainWindow>
4 
5 #include "CREResourcesWindow.h"
6 
7 class QMdiArea;
8 class QAction;
9 class QMenu;
10 class QLabel;
11 class CREArtifactWindow;
12 class CREArchetypeWindow;
13 class CRETreasureWindow;
14 class CREAnimationWindow;
15 class CREFormulaeWindow;
17 class QuestManager;
18 class MessageManager;
19 class ResourcesManager;
20 class ScriptFileManager;
21 
22 class CREMainWindow : public QMainWindow
23 {
24  Q_OBJECT
25 
26  public:
27  CREMainWindow();
28 
29  signals:
30  void updateFilters();
31  void updateReports();
32  void commitData();
33 
34  private:
35  QMdiArea* myArea;
36 
37  void createActions();
38  void createMenus();
39 
40  QMenu* myOpenMenu;
41  QMenu* mySaveMenu;
42 
43  QAction* myOpenArtifacts;
44  QAction* myOpenArchetypes;
45  QAction* myOpenTreasures;
46  QAction* myOpenAnimations;
47  QAction* myOpenFormulae;
48  QAction* myOpenFaces;
49  QAction* myOpenMaps;
50  QAction* myOpenResources;
51  QAction* myOpenExperience;
52  QAction* myOpenQuests;
53  QAction* myOpenMessages;
54  QAction* myOpenScripts;
55  QAction* myOpenRandomMaps;
57  QAction* mySaveFormulae;
58  QAction* mySaveQuests;
59  QAction* mySaveMessages;
62  QAction* myReportAlchemy;
64  QAction* myReportSpells;
65  QAction* myReportPlayer;
66  QAction* myReportSummon;
67  QAction* myReportShops;
68  QAction *myReportQuests;
72  QAction* myToolSmooth;
73  QAction* myToolHPBar;
75  QAction* myToolFaceMaker;
76  QAction* myClearMapCache;
83 
84  protected:
85  void closeEvent(QCloseEvent* event);
86  void doResourceWindow(DisplayMode mode);
87 
88  private slots:
89  void onOpenArtifacts();
90  void onOpenArchetypes();
91  void onOpenTreasures();
92  void onOpenAnimations();
93  void onOpenFormulae();
94  void onOpenFaces();
95  void onOpenMaps();
96  void onOpenQuests();
97  void onOpenResources();
98  void onOpenMessages();
99  void onOpenExperience();
100  void onOpenScripts();
101  void onOpenRandomMaps();
102  void onOpenGeneralMessages();
103  void onSaveFormulae();
104  void onSaveQuests();
105  void onSaveMessages();
106  void onReportDuplicate();
107  void onReportSpellDamage();
108  void onReportAlchemy();
109  void onReportAlchemyGraph();
110  void onReportSpells();
111  void onReportPlayer();
112  void onReportSummon();
113  void onReportShops();
114  void onReportQuests();
115  void onReportMaterials();
116  void onReportArchetypes();
117  void onToolEditMonsters();
118  void onToolSmooth();
119  void onToolCombatSimulator();
120  void onToolBarMaker();
121  void onToolFaceMaker();
122  void browsingMap(const QString& path);
123  void browsingFinished();
124  void onFiltersModified();
125  void onReportsModified();
126  void onClearCache();
127 };
QAction * myOpenScripts
Definition: CREMainWindow.h:54
void onOpenArchetypes()
QAction * myReportDuplicate
Definition: CREMainWindow.h:60
void onReportDuplicate()
QAction * myReportSpellDamage
Definition: CREMainWindow.h:61
void onOpenGeneralMessages()
void updateFilters()
QMdiArea * myArea
Definition: CREMainWindow.h:35
QAction * myOpenAnimations
Definition: CREMainWindow.h:46
void onFiltersModified()
QMenu * myOpenMenu
Definition: CREMainWindow.h:40
QAction * myToolEditMonsters
Definition: CREMainWindow.h:71
QAction * myReportQuests
Definition: CREMainWindow.h:68
void onOpenExperience()
QAction * myOpenFormulae
Definition: CREMainWindow.h:47
void commitData()
void onOpenTreasures()
QAction * mySaveMessages
Definition: CREMainWindow.h:59
void onToolCombatSimulator()
void onReportsModified()
QAction * myToolHPBar
Definition: CREMainWindow.h:73
QAction * myOpenTreasures
Definition: CREMainWindow.h:45
void closeEvent(QCloseEvent *event)
void onReportArchetypes()
void onOpenArtifacts()
QAction * myOpenRandomMaps
Definition: CREMainWindow.h:55
QAction * myToolSmooth
Definition: CREMainWindow.h:72
QAction * myOpenMessages
Definition: CREMainWindow.h:53
ResourcesManager * myResourcesManager
Definition: CREMainWindow.h:81
void doResourceWindow(DisplayMode mode)
void onOpenAnimations()
QAction * myOpenArtifacts
Definition: CREMainWindow.h:43
MessageManager * myMessageManager
Definition: CREMainWindow.h:80
QLabel * myMapBrowseStatus
Definition: CREMainWindow.h:77
void onToolEditMonsters()
QAction * myOpenGeneralMessages
Definition: CREMainWindow.h:56
void onReportAlchemy()
QAction * myReportShops
Definition: CREMainWindow.h:67
QuestManager * myQuestManager
Definition: CREMainWindow.h:79
QAction * myOpenResources
Definition: CREMainWindow.h:50
QAction * myOpenExperience
Definition: CREMainWindow.h:51
QAction * myReportArchetypes
Definition: CREMainWindow.h:70
QAction * myOpenArchetypes
Definition: CREMainWindow.h:44
QAction * mySaveQuests
Definition: CREMainWindow.h:58
QAction * myToolFaceMaker
Definition: CREMainWindow.h:75
void onReportMaterials()
QAction * myClearMapCache
Definition: CREMainWindow.h:76
QAction * myReportSummon
Definition: CREMainWindow.h:66
QAction * myToolCombatSimulator
Definition: CREMainWindow.h:74
QAction * myReportAlchemy
Definition: CREMainWindow.h:62
QAction * myReportSpells
Definition: CREMainWindow.h:64
void updateReports()
QMenu * mySaveMenu
Definition: CREMainWindow.h:41
CREMapInformationManager * myMapManager
Definition: CREMainWindow.h:78
QAction * myReportPlayer
Definition: CREMainWindow.h:65
QAction * myReportAlchemyGraph
Definition: CREMainWindow.h:63
void browsingMap(const QString &path)
DisplayMode
QAction * myOpenMaps
Definition: CREMainWindow.h:49
void browsingFinished()
QAction * myOpenQuests
Definition: CREMainWindow.h:52
ScriptFileManager * myScriptManager
Definition: CREMainWindow.h:82
QAction * myOpenFaces
Definition: CREMainWindow.h:48
QAction * myReportMaterials
Definition: CREMainWindow.h:69
void onReportAlchemyGraph()
void onOpenResources()
QAction * mySaveFormulae
Definition: CREMainWindow.h:57
void onOpenRandomMaps()
void onReportSpellDamage()
void createActions()