Crossfire Server, Trunk
CREMainWindow.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 #include <Qt>
14 
15 #include <QMainWindow>
16 
17 #include "CREResourcesWindow.h"
18 
19 class QMdiArea;
20 class QAction;
21 class QMenu;
22 class QLabel;
23 class CREArtifactWindow;
24 class CREArchetypeWindow;
25 class CRETreasureWindow;
26 class CREAnimationWindow;
27 class CREFormulaeWindow;
28 class CREMapInformation;
30 class QuestManager;
31 class MessageManager;
32 class ResourcesManager;
33 class ScriptFileManager;
34 class AssetWrapper;
35 class AllAssets;
36 class AssetModel;
37 class ChangesDock;
38 class HelpManager;
39 
40 class CREMainWindow : public QMainWindow
41 {
42  Q_OBJECT
43 
44  public:
45  CREMainWindow(const QString &helpRoot);
46 
47  signals:
48  void updateFilters();
49  void updateReports();
50  void commitData();
51 
52  private:
53  QMdiArea* myArea;
56 
57  void createActions();
58  void createMenus();
59 
60  QMenu* myOpenMenu;
61  QMenu* mySaveMenu;
62 
63  QAction* mySaveFormulae;
64  QAction* myReportPlayer;
65  QAction* myReportShops;
66  QAction *myReportQuests;
68  QMenu* myToolsMenu;
69  QActionGroup *myFacesetsGroup;
71  QAction* myClearMapCache;
72  QMenu *myWindows;
80 
81  protected:
82  void closeEvent(QCloseEvent* event);
83  void doResourceWindow(int assets, const QByteArray& position = QByteArray());
84  void fillFacesets();
85  QAction *createAction(const QString &title, const QString &statusTip);
86  QAction *createAction(const QString &title, const QString &statusTip, QObject *target, const char *slot);
87 
88  private slots:
89  void onOpenExperience(const QByteArray& position = QByteArray());
90  void onSaveFormulae();
91  void onSaveQuests();
92  void onSaveMessages();
93  void onReportDuplicate();
94  void onReportSpellDamage();
95  void onReportAlchemy();
96  void onReportAlchemyGraph();
97  void onReportSpells();
98  void onReportPlayer();
99  void onReportSummon();
100  void onReportShops();
101  void onReportQuests();
102  void onReportMaterials();
103  void onReportArchetypes();
104  void onReportLicenses();
105  void onToolEditMonsters();
106  void onToolSmooth();
107  void onToolCombatSimulator();
108  void onToolBarMaker();
109  void onToolFaceMaker();
110  void onToolFaceset(QAction* action);
112  void onToolReloadAssets();
113  void onWindowsShowing();
114  void browsingMap(const QString& path);
115  void browsingFinished();
116  void onFiltersModified();
117  void onReportsModified();
118  void onClearCache();
119 
121 };
ScriptFileManager
Definition: ScriptFileManager.h:24
CREMainWindow::onSaveFormulae
void onSaveFormulae()
Definition: CREMainWindow.cpp:371
CREMainWindow::browsingMap
void browsingMap(const QString &path)
Definition: CREMainWindow.cpp:387
CREMainWindow::closeEvent
void closeEvent(QCloseEvent *event)
Definition: CREMainWindow.cpp:111
CREMainWindow::onReportAlchemyGraph
void onReportAlchemyGraph()
Definition: CREMainWindow.cpp:788
CREMainWindow::myClearMapCache
QAction * myClearMapCache
Definition: CREMainWindow.h:71
CREMainWindow::onFiltersModified
void onFiltersModified()
Definition: CREMainWindow.cpp:403
CREMainWindow::myReportQuests
QAction * myReportQuests
Definition: CREMainWindow.h:66
ResourcesManager
Definition: ResourcesManager.h:79
CREMainWindow::createMenus
void createMenus()
Definition: CREMainWindow.cpp:203
CREMainWindow::myReportPlayer
QAction * myReportPlayer
Definition: CREMainWindow.h:64
CREMainWindow::onSaveQuests
void onSaveQuests()
Definition: CREMainWindow.cpp:375
CREMainWindow::onReportMaterials
void onReportMaterials()
Definition: CREMainWindow.cpp:1562
CREMainWindow::myMapBrowseStatus
QLabel * myMapBrowseStatus
Definition: CREMainWindow.h:73
CREMainWindow::onReportLicenses
void onReportLicenses()
Definition: CREMainWindow.cpp:1655
CREMainWindow::onReportSpellDamage
void onReportSpellDamage()
Definition: CREMainWindow.cpp:598
CREMainWindow::myResourcesManager
ResourcesManager * myResourcesManager
Definition: CREMainWindow.h:76
CREMapInformation
Definition: CREMapInformation.h:27
CREMainWindow::onSaveMessages
void onSaveMessages()
Definition: CREMainWindow.cpp:381
CREMainWindow::onToolCombatSimulator
void onToolCombatSimulator()
Definition: CREMainWindow.cpp:1733
CREMainWindow::myModel
AssetModel * myModel
Definition: CREMainWindow.h:54
CREMainWindow::updateReports
void updateReports()
disinfect.map
map
Definition: disinfect.py:4
titlestruct
Definition: readable.c:107
CREMainWindow::doResourceWindow
void doResourceWindow(int assets, const QByteArray &position=QByteArray())
Definition: CREMainWindow.cpp:311
CREMainWindow::onToolFaceset
void onToolFaceset(QAction *action)
Definition: CREMainWindow.cpp:1766
CREMainWindow::CREMainWindow
CREMainWindow(const QString &helpRoot)
Definition: CREMainWindow.cpp:49
AssetWrapper
Definition: AssetWrapper.h:22
CREMainWindow::onWindowsShowing
void onWindowsShowing()
Definition: CREMainWindow.cpp:1786
python_init.path
path
Definition: python_init.py:8
CREMainWindow::onToolFacesetUseFallback
void onToolFacesetUseFallback()
Definition: CREMainWindow.cpp:1771
convert.action
action
Definition: convert.py:25
CREMainWindow::browsingFinished
void browsingFinished()
Definition: CREMainWindow.cpp:392
CREMainWindow::fillFacesets
void fillFacesets()
Definition: CREMainWindow.cpp:347
AssetModel
Definition: AssetModel.h:26
CREMainWindow::onToolReloadAssets
void onToolReloadAssets()
Definition: CREMainWindow.cpp:1776
CREMainWindow::createActions
void createActions()
Definition: CREMainWindow.cpp:162
CREMainWindow::createAction
QAction * createAction(const QString &title, const QString &statusTip)
Definition: CREMainWindow.cpp:150
MessageManager
Definition: MessageManager.h:25
CREMainWindow::myScriptManager
ScriptFileManager * myScriptManager
Definition: CREMainWindow.h:77
CREMainWindow::myAssets
AllAssets * myAssets
Definition: CREMainWindow.h:55
CREMainWindow::mySaveMenu
QMenu * mySaveMenu
Definition: CREMainWindow.h:61
CREMainWindow::myMapManager
CREMapInformationManager * myMapManager
Definition: CREMainWindow.h:74
ChangesDock
Definition: ChangesDock.h:21
CREMainWindow::myChanges
ChangesDock * myChanges
Definition: CREMainWindow.h:78
CREMainWindow::onToolEditMonsters
void onToolEditMonsters()
Definition: CREMainWindow.cpp:1721
CREMainWindow
Definition: CREMainWindow.h:40
CREMainWindow::onReportSpells
void onReportSpells()
Definition: CREMainWindow.cpp:907
CREMainWindow::onReportAlchemy
void onReportAlchemy()
Definition: CREMainWindow.cpp:743
CREMainWindow::myArea
QMdiArea * myArea
Definition: CREMainWindow.h:53
CREMainWindow::onReportDuplicate
void onReportDuplicate()
Definition: CREMainWindow.cpp:419
CREMainWindow::myFacesetsGroup
QActionGroup * myFacesetsGroup
Definition: CREMainWindow.h:69
CREMainWindow::mySaveFormulae
QAction * mySaveFormulae
Definition: CREMainWindow.h:63
CREMainWindow::onReportsModified
void onReportsModified()
Definition: CREMainWindow.cpp:408
CREMainWindow::myToolsMenu
QMenu * myToolsMenu
Definition: CREMainWindow.h:68
HelpManager
Definition: HelpManager.h:23
AllAssets
Definition: AllAssets.h:22
CREMainWindow::onReportSummon
void onReportSummon()
Definition: CREMainWindow.cpp:1283
CREMainWindow::commitData
void commitData()
CREMainWindow::onReportShops
void onReportShops()
Definition: CREMainWindow.cpp:1400
CREMainWindow::myHelpManager
HelpManager * myHelpManager
Definition: CREMainWindow.h:79
CREMainWindow::myMessageManager
MessageManager * myMessageManager
Definition: CREMainWindow.h:75
CREMainWindow::updateFilters
void updateFilters()
CREMainWindow::myReportArchetypes
QAction * myReportArchetypes
Definition: CREMainWindow.h:67
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
CREMainWindow::myOpenMenu
QMenu * myOpenMenu
Definition: CREMainWindow.h:60
CREMainWindow::myToolFacesetUseFallback
QAction * myToolFacesetUseFallback
Definition: CREMainWindow.h:70
CREMainWindow::onReportArchetypes
void onReportArchetypes()
Definition: CREMainWindow.cpp:1607
CREMainWindow::onReportPlayer
void onReportPlayer()
Definition: CREMainWindow.cpp:1156
CREMainWindow::mapAdded
void mapAdded(CREMapInformation *map)
Definition: CREMainWindow.cpp:1818
CREMainWindow::onToolBarMaker
void onToolBarMaker()
Definition: CREMainWindow.cpp:1739
CREMapInformationManager
Definition: CREMapInformationManager.h:29
CREResourcesWindow.h
CREMainWindow::onOpenExperience
void onOpenExperience(const QByteArray &position=QByteArray())
Definition: CREMainWindow.cpp:337
CREMainWindow::myWindows
QMenu * myWindows
Definition: CREMainWindow.h:72
CREMainWindow::onReportQuests
void onReportQuests()
Definition: CREMainWindow.cpp:1491
CREMainWindow::onClearCache
void onClearCache()
Definition: CREMainWindow.cpp:1751
CREMainWindow::onToolSmooth
void onToolSmooth()
Definition: CREMainWindow.cpp:1727
CREMainWindow::myReportShops
QAction * myReportShops
Definition: CREMainWindow.h:65
CREMainWindow::onToolFaceMaker
void onToolFaceMaker()
Definition: CREMainWindow.cpp:1745