Crossfire Server, Trunk
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;
16 class CREMapInformation;
18 class QuestManager;
19 class MessageManager;
20 class ResourcesManager;
21 class ScriptFileManager;
22 class AssetWrapper;
23 class AllAssets;
24 class AssetModel;
25 class ChangesDock;
26 class HelpManager;
27 
28 class CREMainWindow : public QMainWindow
29 {
30  Q_OBJECT
31 
32  public:
33  CREMainWindow(const QString &helpRoot);
34 
35  signals:
36  void updateFilters();
37  void updateReports();
38  void commitData();
39 
40  private:
41  QMdiArea* myArea;
44 
45  void createActions();
46  void createMenus();
47 
48  QMenu* myOpenMenu;
49  QMenu* mySaveMenu;
50 
51  QAction* mySaveFormulae;
52  QAction* myReportPlayer;
53  QAction* myReportShops;
54  QAction *myReportQuests;
56  QMenu* myToolsMenu;
57  QActionGroup *myFacesetsGroup;
59  QAction* myClearMapCache;
60  QMenu *myWindows;
68 
69  protected:
70  void closeEvent(QCloseEvent* event);
71  void doResourceWindow(int assets);
72  void fillFacesets();
73  QAction *createAction(const QString &title, const QString &statusTip);
74  QAction *createAction(const QString &title, const QString &statusTip, QObject *target, const char *slot);
75 
76  private slots:
77  void onOpenExperience();
78  void onSaveFormulae();
79  void onSaveQuests();
80  void onSaveMessages();
81  void onReportDuplicate();
82  void onReportSpellDamage();
83  void onReportAlchemy();
84  void onReportAlchemyGraph();
85  void onReportSpells();
86  void onReportPlayer();
87  void onReportSummon();
88  void onReportShops();
89  void onReportQuests();
90  void onReportMaterials();
91  void onReportArchetypes();
92  void onReportLicenses();
93  void onToolEditMonsters();
94  void onToolSmooth();
95  void onToolCombatSimulator();
96  void onToolBarMaker();
97  void onToolFaceMaker();
98  void onToolFaceset(QAction* action);
100  void onToolReloadAssets();
101  void onWindowsShowing();
102  void browsingMap(const QString& path);
103  void browsingFinished();
104  void onFiltersModified();
105  void onReportsModified();
106  void onClearCache();
107 
109 };
ScriptFileManager
Definition: ScriptFileManager.h:12
CREMainWindow::onSaveFormulae
void onSaveFormulae()
Definition: CREMainWindow.cpp:290
CREMainWindow::browsingMap
void browsingMap(const QString &path)
Definition: CREMainWindow.cpp:306
CREMainWindow::closeEvent
void closeEvent(QCloseEvent *event)
Definition: CREMainWindow.cpp:82
CREMainWindow::onReportAlchemyGraph
void onReportAlchemyGraph()
Definition: CREMainWindow.cpp:691
CREMainWindow::myClearMapCache
QAction * myClearMapCache
Definition: CREMainWindow.h:59
CREMainWindow::onFiltersModified
void onFiltersModified()
Definition: CREMainWindow.cpp:322
CREMainWindow::myReportQuests
QAction * myReportQuests
Definition: CREMainWindow.h:54
ResourcesManager
Definition: ResourcesManager.h:66
CREMainWindow::onOpenExperience
void onOpenExperience()
Definition: CREMainWindow.cpp:259
CREMainWindow::doResourceWindow
void doResourceWindow(int assets)
Definition: CREMainWindow.cpp:242
python_event.path
path
Definition: python_event.py:11
CREMainWindow::createMenus
void createMenus()
Definition: CREMainWindow.cpp:152
CREMainWindow::myReportPlayer
QAction * myReportPlayer
Definition: CREMainWindow.h:52
CREMainWindow::onSaveQuests
void onSaveQuests()
Definition: CREMainWindow.cpp:294
CREMainWindow::onReportMaterials
void onReportMaterials()
Definition: CREMainWindow.cpp:1465
CREMainWindow::myMapBrowseStatus
QLabel * myMapBrowseStatus
Definition: CREMainWindow.h:61
CREMainWindow::onReportLicenses
void onReportLicenses()
Definition: CREMainWindow.cpp:1558
CREMainWindow::onReportSpellDamage
void onReportSpellDamage()
Definition: CREMainWindow.cpp:517
CREMainWindow::myResourcesManager
ResourcesManager * myResourcesManager
Definition: CREMainWindow.h:64
CREMapInformation
Definition: CREMapInformation.h:16
CREMainWindow::onSaveMessages
void onSaveMessages()
Definition: CREMainWindow.cpp:300
CREMainWindow::onToolCombatSimulator
void onToolCombatSimulator()
Definition: CREMainWindow.cpp:1636
CREMainWindow::myModel
AssetModel * myModel
Definition: CREMainWindow.h:42
CREMainWindow::updateReports
void updateReports()
disinfect.map
map
Definition: disinfect.py:4
titlestruct
Definition: readable.c:107
CREMainWindow::onToolFaceset
void onToolFaceset(QAction *action)
Definition: CREMainWindow.cpp:1669
CREMainWindow::CREMainWindow
CREMainWindow(const QString &helpRoot)
Definition: CREMainWindow.cpp:36
AssetWrapper
Definition: AssetWrapper.h:11
CREMainWindow::onWindowsShowing
void onWindowsShowing()
Definition: CREMainWindow.cpp:1689
CREMainWindow::onToolFacesetUseFallback
void onToolFacesetUseFallback()
Definition: CREMainWindow.cpp:1674
convert.action
action
Definition: convert.py:25
CREMainWindow::browsingFinished
void browsingFinished()
Definition: CREMainWindow.cpp:311
CREMainWindow::fillFacesets
void fillFacesets()
Definition: CREMainWindow.cpp:266
AssetModel
Definition: AssetModel.h:14
CREMainWindow::onToolReloadAssets
void onToolReloadAssets()
Definition: CREMainWindow.cpp:1679
CREMainWindow::createActions
void createActions()
Definition: CREMainWindow.cpp:111
CREMainWindow::createAction
QAction * createAction(const QString &title, const QString &statusTip)
Definition: CREMainWindow.cpp:99
MessageManager
Definition: MessageManager.h:13
CREMainWindow::myScriptManager
ScriptFileManager * myScriptManager
Definition: CREMainWindow.h:65
CREMainWindow::myAssets
AllAssets * myAssets
Definition: CREMainWindow.h:43
CREMainWindow::mySaveMenu
QMenu * mySaveMenu
Definition: CREMainWindow.h:49
CREMainWindow::myMapManager
CREMapInformationManager * myMapManager
Definition: CREMainWindow.h:62
ChangesDock
Definition: ChangesDock.h:6
CREMainWindow::myChanges
ChangesDock * myChanges
Definition: CREMainWindow.h:66
CREMainWindow::onToolEditMonsters
void onToolEditMonsters()
Definition: CREMainWindow.cpp:1624
CREMainWindow
Definition: CREMainWindow.h:28
CREMainWindow::onReportSpells
void onReportSpells()
Definition: CREMainWindow.cpp:810
CREMainWindow::onReportAlchemy
void onReportAlchemy()
Definition: CREMainWindow.cpp:650
CREMainWindow::myArea
QMdiArea * myArea
Definition: CREMainWindow.h:41
CREMainWindow::onReportDuplicate
void onReportDuplicate()
Definition: CREMainWindow.cpp:338
CREMainWindow::myFacesetsGroup
QActionGroup * myFacesetsGroup
Definition: CREMainWindow.h:57
CREMainWindow::mySaveFormulae
QAction * mySaveFormulae
Definition: CREMainWindow.h:51
CREMainWindow::onReportsModified
void onReportsModified()
Definition: CREMainWindow.cpp:327
CREMainWindow::myToolsMenu
QMenu * myToolsMenu
Definition: CREMainWindow.h:56
HelpManager
Definition: HelpManager.h:11
AllAssets
Definition: AllAssets.h:10
CREMainWindow::onReportSummon
void onReportSummon()
Definition: CREMainWindow.cpp:1186
CREMainWindow::commitData
void commitData()
CREMainWindow::onReportShops
void onReportShops()
Definition: CREMainWindow.cpp:1303
CREMainWindow::myHelpManager
HelpManager * myHelpManager
Definition: CREMainWindow.h:67
CREMainWindow::myMessageManager
MessageManager * myMessageManager
Definition: CREMainWindow.h:63
CREMainWindow::updateFilters
void updateFilters()
CREMainWindow::myReportArchetypes
QAction * myReportArchetypes
Definition: CREMainWindow.h:55
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
CREMainWindow::myOpenMenu
QMenu * myOpenMenu
Definition: CREMainWindow.h:48
CREMainWindow::myToolFacesetUseFallback
QAction * myToolFacesetUseFallback
Definition: CREMainWindow.h:58
CREMainWindow::onReportArchetypes
void onReportArchetypes()
Definition: CREMainWindow.cpp:1510
CREMainWindow::onReportPlayer
void onReportPlayer()
Definition: CREMainWindow.cpp:1059
CREMainWindow::mapAdded
void mapAdded(CREMapInformation *map)
Definition: CREMainWindow.cpp:1721
CREMainWindow::onToolBarMaker
void onToolBarMaker()
Definition: CREMainWindow.cpp:1642
CREMapInformationManager
Definition: CREMapInformationManager.h:17
CREResourcesWindow.h
CREMainWindow::myWindows
QMenu * myWindows
Definition: CREMainWindow.h:60
CREMainWindow::onReportQuests
void onReportQuests()
Definition: CREMainWindow.cpp:1394
CREMainWindow::onClearCache
void onClearCache()
Definition: CREMainWindow.cpp:1654
CREMainWindow::onToolSmooth
void onToolSmooth()
Definition: CREMainWindow.cpp:1630
CREMainWindow::myReportShops
QAction * myReportShops
Definition: CREMainWindow.h:53
CREMainWindow::onToolFaceMaker
void onToolFaceMaker()
Definition: CREMainWindow.cpp:1648