Crossfire Server, Trunk  R20513
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
CREMainWindow Class Reference

#include <CREMainWindow.h>

Inheritance diagram for CREMainWindow:
Inheritance graph
Collaboration diagram for CREMainWindow:
Collaboration graph

Signals

void commitData ()
 
void updateFilters ()
 
void updateReports ()
 

Public Member Functions

 CREMainWindow ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
void doResourceWindow (DisplayMode mode)
 

Private Slots

void browsingFinished ()
 
void browsingMap (const QString &path)
 
void onClearCache ()
 
void onFiltersModified ()
 
void onOpenAnimations ()
 
void onOpenArchetypes ()
 
void onOpenArtifacts ()
 
void onOpenExperience ()
 
void onOpenFaces ()
 
void onOpenFormulae ()
 
void onOpenMaps ()
 
void onOpenMessages ()
 
void onOpenQuests ()
 
void onOpenRandomMaps ()
 
void onOpenResources ()
 
void onOpenScripts ()
 
void onOpenTreasures ()
 
void onReportAlchemy ()
 
void onReportDuplicate ()
 
void onReportPlayer ()
 Generate and display a table reporting for each monster and skill at what level approximately the player could kill the monster. More...
 
void onReportQuests ()
 
void onReportShops ()
 
void onReportsModified ()
 
void onReportSpellDamage ()
 
void onReportSpells ()
 
void onReportSummon ()
 
void onSaveFormulae ()
 
void onSaveMessages ()
 
void onSaveQuests ()
 
void onToolBarMaker ()
 
void onToolCombatSimulator ()
 
void onToolSmooth ()
 

Private Member Functions

void createActions ()
 
void createMenus ()
 

Private Attributes

QMdiArea * myArea
 
QAction * myClearMapCache
 
QLabel * myMapBrowseStatus
 
CREMapInformationManagermyMapManager
 
MessageManagermyMessageManager
 
QAction * myOpenAnimations
 
QAction * myOpenArchetypes
 
QAction * myOpenArtifacts
 
QAction * myOpenExperience
 
QAction * myOpenFaces
 
QAction * myOpenFormulae
 
QAction * myOpenMaps
 
QMenu * myOpenMenu
 
QAction * myOpenMessages
 
QAction * myOpenQuests
 
QAction * myOpenRandomMaps
 
QAction * myOpenResources
 
QAction * myOpenScripts
 
QAction * myOpenTreasures
 
QuestManagermyQuestManager
 
QAction * myReportAlchemy
 
QAction * myReportDuplicate
 
QAction * myReportPlayer
 
QAction * myReportQuests
 
QAction * myReportShops
 
QAction * myReportSpellDamage
 
QAction * myReportSpells
 
QAction * myReportSummon
 
ResourcesManagermyResourcesManager
 
QAction * mySaveFormulae
 
QMenu * mySaveMenu
 
QAction * mySaveMessages
 
QAction * mySaveQuests
 
ScriptFileManagermyScriptManager
 
QAction * myToolCombatSimulator
 
QAction * myToolHPBar
 
QAction * myToolSmooth
 

Detailed Description

Definition at line 22 of file CREMainWindow.h.

Constructor & Destructor Documentation

CREMainWindow::CREMainWindow ( )

Member Function Documentation

void CREMainWindow::browsingFinished ( )
privateslot

Definition at line 333 of file CREMainWindow.cpp.

References myClearMapCache, myMapBrowseStatus, myReportPlayer, myReportQuests, and myReportShops.

Referenced by CREMainWindow().

Here is the caller graph for this function:

void CREMainWindow::browsingMap ( const QString &  path)
privateslot

Definition at line 328 of file CREMainWindow.cpp.

References myMapBrowseStatus.

Referenced by CREMainWindow().

Here is the caller graph for this function:

void CREMainWindow::closeEvent ( QCloseEvent *  event)
protected

Definition at line 56 of file CREMainWindow.cpp.

References CREMapInformationManager::cancel(), cleanup(), myMapManager, myMessageManager, myQuestManager, and myResourcesManager.

Here is the call graph for this function:

void CREMainWindow::commitData ( )
signal

Referenced by doResourceWindow(), onSaveMessages(), and onSaveQuests().

Here is the caller graph for this function:

void CREMainWindow::createActions ( )
private
void CREMainWindow::createMenus ( )
private
void CREMainWindow::doResourceWindow ( DisplayMode  mode)
protected
void CREMainWindow::onClearCache ( )
privateslot

Definition at line 1336 of file CREMainWindow.cpp.

References CREMapInformationManager::clearCache(), and myMapManager.

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onFiltersModified ( )
privateslot

Definition at line 343 of file CREMainWindow.cpp.

References updateFilters().

Referenced by doResourceWindow().

Here is the caller graph for this function:

void CREMainWindow::onOpenAnimations ( )
privateslot

Definition at line 260 of file CREMainWindow.cpp.

References DisplayAnimations, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenArchetypes ( )
privateslot

Definition at line 250 of file CREMainWindow.cpp.

References DisplayArchetypes, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenArtifacts ( )
privateslot

Definition at line 245 of file CREMainWindow.cpp.

References DisplayArtifacts, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenExperience ( )
privateslot

Definition at line 295 of file CREMainWindow.cpp.

References myArea.

Referenced by createActions().

Here is the caller graph for this function:

void CREMainWindow::onOpenFaces ( )
privateslot

Definition at line 270 of file CREMainWindow.cpp.

References DisplayFaces, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenFormulae ( )
privateslot

Definition at line 265 of file CREMainWindow.cpp.

References DisplayFormulae, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenMaps ( )
privateslot

Definition at line 275 of file CREMainWindow.cpp.

References DisplayMaps, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenMessages ( )
privateslot

Definition at line 285 of file CREMainWindow.cpp.

References DisplayMessage, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenQuests ( )
privateslot

Definition at line 280 of file CREMainWindow.cpp.

References DisplayQuests, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenRandomMaps ( )
privateslot

Definition at line 307 of file CREMainWindow.cpp.

References DisplayRandomMaps, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenResources ( )
privateslot

Definition at line 290 of file CREMainWindow.cpp.

References DisplayAll, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenScripts ( )
privateslot

Definition at line 302 of file CREMainWindow.cpp.

References DisplayScripts, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onOpenTreasures ( )
privateslot

Definition at line 255 of file CREMainWindow.cpp.

References DisplayTreasures, and doResourceWindow().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportAlchemy ( )
privateslot

Definition at line 611 of file CREMainWindow.cpp.

References alchemyTable(), archt::clone, first_archetype, obj::name, archt::next, SKILL, and obj::type.

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportDuplicate ( )
privateslot
Todo:
  • list animations and faces for artifacts using the 'animation_suffix' and allowed types
  • list use for skill-related actions
  • list things with classes and such

Definition at line 359 of file CREMainWindow.cpp.

References ResourcesManager::allAnimations(), ResourcesManager::animation(), obj::animation_id, animations, archt::clone, obj::face, ResourcesManager::faces(), animations_struct::faces, first_archetype, first_artifactlist, artifactstruct::item, artifactliststruct::items, myResourcesManager, new_face_struct::name, animations_struct::name, obj::name, archt::name, artifactstruct::next, artifactliststruct::next, archt::next, animations_struct::num_animations, and object_get_value().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportPlayer ( )
privateslot

Generate and display a table reporting for each monster and skill at what level approximately the player could kill the monster.

Definition at line 910 of file CREMainWindow.cpp.

References archt::clone, first_archetype, FLAG_MONSTER, archt::head, liv::hp, IS_COMBAT_SKILL, monsterTable(), obj::name, archt::name, archt::next, QUERY_FLAG, SKILL, obj::stats, obj::subtype, and obj::type.

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportQuests ( )
privateslot

Definition at line 1246 of file CREMainWindow.cpp.

References Quest::code(), QuestManager::findByCode(), Settings::localdir, myQuestManager, Settings::playerdir, QuestManager::quests(), readDirectory(), settings, and Quest::title().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportShops ( )
privateslot

Definition at line 1155 of file CREMainWindow.cpp.

References CREMapInformationManager::allMaps(), buildShopReport(), myMapManager, and CREMapInformation::shopItems().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportsModified ( )
privateslot

Definition at line 348 of file CREMainWindow.cpp.

References updateReports().

Referenced by doResourceWindow().

Here is the caller graph for this function:

void CREMainWindow::onReportSpellDamage ( )
privateslot
void CREMainWindow::onReportSpells ( )
privateslot

Definition at line 670 of file CREMainWindow.cpp.

References archt::clone, first_archetype, obj::name, archt::next, SKILL, spellsTable(), and obj::type.

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onReportSummon ( )
privateslot

Definition at line 1038 of file CREMainWindow.cpp.

References archt::clone, determine_holy_arch(), first_archetype, GOD, archt::next, reportSummon(), SP_SUMMON_GOLEM, and SPELL.

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onSaveFormulae ( )
privateslot

Definition at line 312 of file CREMainWindow.cpp.

Referenced by createActions().

Here is the caller graph for this function:

void CREMainWindow::onSaveMessages ( )
privateslot

Definition at line 322 of file CREMainWindow.cpp.

References commitData(), myMessageManager, and MessageManager::saveMessages().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onSaveQuests ( )
privateslot

Definition at line 316 of file CREMainWindow.cpp.

References commitData(), myQuestManager, and QuestManager::saveQuests().

Referenced by createActions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMainWindow::onToolBarMaker ( )
privateslot

Definition at line 1330 of file CREMainWindow.cpp.

Referenced by createActions().

Here is the caller graph for this function:

void CREMainWindow::onToolCombatSimulator ( )
privateslot

Definition at line 1324 of file CREMainWindow.cpp.

Referenced by createActions().

Here is the caller graph for this function:

void CREMainWindow::onToolSmooth ( )
privateslot

Definition at line 1318 of file CREMainWindow.cpp.

Referenced by createActions().

Here is the caller graph for this function:

void CREMainWindow::updateFilters ( )
signal

Referenced by doResourceWindow(), and onFiltersModified().

Here is the caller graph for this function:

void CREMainWindow::updateReports ( )
signal

Referenced by doResourceWindow(), and onReportsModified().

Here is the caller graph for this function:

Field Documentation

QMdiArea* CREMainWindow::myArea
private

Definition at line 35 of file CREMainWindow.h.

Referenced by CREMainWindow(), doResourceWindow(), and onOpenExperience().

QAction* CREMainWindow::myClearMapCache
private

Definition at line 70 of file CREMainWindow.h.

Referenced by browsingFinished(), createActions(), and createMenus().

QLabel* CREMainWindow::myMapBrowseStatus
private

Definition at line 71 of file CREMainWindow.h.

Referenced by browsingFinished(), browsingMap(), and CREMainWindow().

CREMapInformationManager* CREMainWindow::myMapManager
private
MessageManager* CREMainWindow::myMessageManager
private

Definition at line 74 of file CREMainWindow.h.

Referenced by closeEvent(), CREMainWindow(), doResourceWindow(), and onSaveMessages().

QAction* CREMainWindow::myOpenAnimations
private

Definition at line 46 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenArchetypes
private

Definition at line 44 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenArtifacts
private

Definition at line 43 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenExperience
private

Definition at line 51 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenFaces
private

Definition at line 48 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenFormulae
private

Definition at line 47 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenMaps
private

Definition at line 49 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QMenu* CREMainWindow::myOpenMenu
private

Definition at line 40 of file CREMainWindow.h.

Referenced by createMenus().

QAction* CREMainWindow::myOpenMessages
private

Definition at line 53 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenQuests
private

Definition at line 52 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenRandomMaps
private

Definition at line 55 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenResources
private

Definition at line 50 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenScripts
private

Definition at line 54 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myOpenTreasures
private

Definition at line 45 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QuestManager* CREMainWindow::myQuestManager
private
QAction* CREMainWindow::myReportAlchemy
private

Definition at line 61 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myReportDuplicate
private

Definition at line 59 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myReportPlayer
private

Definition at line 63 of file CREMainWindow.h.

Referenced by browsingFinished(), createActions(), and createMenus().

QAction* CREMainWindow::myReportQuests
private

Definition at line 66 of file CREMainWindow.h.

Referenced by browsingFinished(), createActions(), and createMenus().

QAction* CREMainWindow::myReportShops
private

Definition at line 65 of file CREMainWindow.h.

Referenced by browsingFinished(), createActions(), and createMenus().

QAction* CREMainWindow::myReportSpellDamage
private

Definition at line 60 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myReportSpells
private

Definition at line 62 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myReportSummon
private

Definition at line 64 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

ResourcesManager* CREMainWindow::myResourcesManager
private

Definition at line 75 of file CREMainWindow.h.

Referenced by closeEvent(), CREMainWindow(), doResourceWindow(), and onReportDuplicate().

QAction* CREMainWindow::mySaveFormulae
private

Definition at line 56 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QMenu* CREMainWindow::mySaveMenu
private

Definition at line 41 of file CREMainWindow.h.

Referenced by createMenus().

QAction* CREMainWindow::mySaveMessages
private

Definition at line 58 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::mySaveQuests
private

Definition at line 57 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

ScriptFileManager* CREMainWindow::myScriptManager
private

Definition at line 76 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

QAction* CREMainWindow::myToolCombatSimulator
private

Definition at line 69 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myToolHPBar
private

Definition at line 68 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

QAction* CREMainWindow::myToolSmooth
private

Definition at line 67 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().


The documentation for this class was generated from the following files: