Crossfire Server, Trunk  R20513
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;
56  QAction* mySaveFormulae;
57  QAction* mySaveQuests;
58  QAction* mySaveMessages;
61  QAction* myReportAlchemy;
62  QAction* myReportSpells;
63  QAction* myReportPlayer;
64  QAction* myReportSummon;
65  QAction* myReportShops;
66  QAction *myReportQuests;
67  QAction* myToolSmooth;
68  QAction* myToolHPBar;
70  QAction* myClearMapCache;
77 
78  protected:
79  void closeEvent(QCloseEvent* event);
80  void doResourceWindow(DisplayMode mode);
81 
82  private slots:
83  void onOpenArtifacts();
84  void onOpenArchetypes();
85  void onOpenTreasures();
86  void onOpenAnimations();
87  void onOpenFormulae();
88  void onOpenFaces();
89  void onOpenMaps();
90  void onOpenQuests();
91  void onOpenResources();
92  void onOpenMessages();
93  void onOpenExperience();
94  void onOpenScripts();
95  void onOpenRandomMaps();
96  void onSaveFormulae();
97  void onSaveQuests();
98  void onSaveMessages();
99  void onReportDuplicate();
100  void onReportSpellDamage();
101  void onReportAlchemy();
102  void onReportSpells();
103  void onReportPlayer();
104  void onReportSummon();
105  void onReportShops();
106  void onReportQuests();
107  void onToolSmooth();
108  void onToolCombatSimulator();
109  void onToolBarMaker();
110  void browsingMap(const QString& path);
111  void browsingFinished();
112  void onFiltersModified();
113  void onReportsModified();
114  void onClearCache();
115 };
QAction * myOpenScripts
Definition: CREMainWindow.h:54
void onOpenArchetypes()
QAction * myReportDuplicate
Definition: CREMainWindow.h:59
void onReportDuplicate()
QAction * myReportSpellDamage
Definition: CREMainWindow.h:60
void updateFilters()
QMdiArea * myArea
Definition: CREMainWindow.h:35
QAction * myOpenAnimations
Definition: CREMainWindow.h:46
void onFiltersModified()
Manage scripts for items.
QMenu * myOpenMenu
Definition: CREMainWindow.h:40
QAction * myReportQuests
Definition: CREMainWindow.h:66
void onOpenExperience()
QAction * myOpenFormulae
Definition: CREMainWindow.h:47
void commitData()
void onOpenTreasures()
QAction * mySaveMessages
Definition: CREMainWindow.h:58
void onToolCombatSimulator()
void onReportsModified()
QAction * myToolHPBar
Definition: CREMainWindow.h:68
QAction * myOpenTreasures
Definition: CREMainWindow.h:45
void closeEvent(QCloseEvent *event)
void onReportPlayer()
Generate and display a table reporting for each monster and skill at what level approximately the pla...
void onOpenArtifacts()
QAction * myOpenRandomMaps
Definition: CREMainWindow.h:55
QAction * myToolSmooth
Definition: CREMainWindow.h:67
QAction * myOpenMessages
Definition: CREMainWindow.h:53
ResourcesManager * myResourcesManager
Definition: CREMainWindow.h:75
void doResourceWindow(DisplayMode mode)
void onOpenAnimations()
QAction * myOpenArtifacts
Definition: CREMainWindow.h:43
MessageManager * myMessageManager
Definition: CREMainWindow.h:74
QLabel * myMapBrowseStatus
Definition: CREMainWindow.h:71
void onReportAlchemy()
QAction * myReportShops
Definition: CREMainWindow.h:65
QuestManager * myQuestManager
Definition: CREMainWindow.h:73
QAction * myOpenResources
Definition: CREMainWindow.h:50
QAction * myOpenExperience
Definition: CREMainWindow.h:51
QAction * myOpenArchetypes
Definition: CREMainWindow.h:44
QAction * mySaveQuests
Definition: CREMainWindow.h:57
QAction * myClearMapCache
Definition: CREMainWindow.h:70
QAction * myReportSummon
Definition: CREMainWindow.h:64
QAction * myToolCombatSimulator
Definition: CREMainWindow.h:69
QAction * myReportAlchemy
Definition: CREMainWindow.h:61
QAction * myReportSpells
Definition: CREMainWindow.h:62
void updateReports()
QMenu * mySaveMenu
Definition: CREMainWindow.h:41
CREMapInformationManager * myMapManager
Definition: CREMainWindow.h:72
QAction * myReportPlayer
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:76
QAction * myOpenFaces
Definition: CREMainWindow.h:48
void onOpenResources()
QAction * mySaveFormulae
Definition: CREMainWindow.h:56
void onOpenRandomMaps()
void onReportSpellDamage()
void createActions()