Crossfire Server, Trunk
CREMainWindow Class Reference

#include <CREMainWindow.h>

+ Inheritance diagram for CREMainWindow:
+ Collaboration diagram for CREMainWindow:

Signals

void updateFilters ()
 
void updateReports ()
 

Public Member Functions

 CREMainWindow (const QString &helpRoot)
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
QAction * createAction (const QString &title, const QString &statusTip)
 
template<typename F >
QAction * createAction (const QString &title, const QString &statusTip, F functor, bool waitMaps=false)
 
void doResourceWindow (int assets, const QByteArray &position=QByteArray())
 
void fillFacesets ()
 

Private Slots

void browsingFinished ()
 
void browsingMap (const QString &path)
 
void mapAdded (CREMapInformation *map)
 
void onClearCache ()
 
void onFiltersModified ()
 
void onOpenExperience (const QByteArray &position=QByteArray())
 
void onReportAlchemy ()
 
void onReportAlchemyGraph ()
 
void onReportArchetypes ()
 
void onReportDuplicate ()
 
void onReportLicenses ()
 
void onReportMaterials ()
 
void onReportPlayer ()
 
void onReportQuests ()
 
void onReportResetGroups ()
 
void onReportShops ()
 
void onReportsModified ()
 
void onReportSpellDamage ()
 
void onReportSpells ()
 
void onReportSummon ()
 
void onSaveFormulae ()
 
void onSaveMessages ()
 
void onSaveQuests ()
 
void onToolBarMaker ()
 
void onToolCombatSimulator ()
 
void onToolEditMonsters ()
 
void onToolFaceMaker ()
 
void onToolFaceset (QAction *action)
 
void onToolFacesetUseFallback ()
 
void onToolReloadAssets ()
 
void onToolSmooth ()
 
void onToolSounds ()
 
void onWindowsShowing ()
 

Private Member Functions

void createActions ()
 
void createMenus ()
 

Private Attributes

QMdiArea * myArea
 
AllAssetsmyAssets
 
ChangesDockmyChanges
 
QAction * myClearMapCache
 
QActionGroup * myFacesetsGroup
 
HelpManagermyHelpManager
 
QLabel * myMapBrowseStatus
 
CREMapInformationManagermyMapManager
 
MessageManagermyMessageManager
 
AssetModelmyModel
 
QMenu * myOpenMenu
 
ResourcesManagermyResourcesManager
 
QAction * mySaveFormulae
 
QMenu * mySaveMenu
 
ScriptFileManagermyScriptManager
 
QAction * myToolFacesetUseFallback
 
QMenu * myToolsMenu
 
QMenu * myWindows
 

Detailed Description

Definition at line 40 of file CREMainWindow.h.

Constructor & Destructor Documentation

◆ CREMainWindow()

Member Function Documentation

◆ browsingFinished

void CREMainWindow::browsingFinished ( )
privateslot

Definition at line 390 of file CREMainWindow.cpp.

References myClearMapCache, and myMapBrowseStatus.

Referenced by CREMainWindow().

+ Here is the caller graph for this function:

◆ browsingMap

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

Definition at line 385 of file CREMainWindow.cpp.

References myMapBrowseStatus, and python_init::path.

Referenced by CREMainWindow().

+ Here is the caller graph for this function:

◆ closeEvent()

void CREMainWindow::closeEvent ( QCloseEvent *  event)
protected

◆ createAction() [1/2]

QAction * CREMainWindow::createAction ( const QString &  title,
const QString &  statusTip 
)
protected

Definition at line 183 of file CREMainWindow.cpp.

References convert::action.

◆ createAction() [2/2]

template<typename F >
QAction * CREMainWindow::createAction ( const QString &  title,
const QString &  statusTip,
functor,
bool  waitMaps = false 
)
protected

Definition at line 152 of file CREMainWindow.cpp.

References convert::action, CREMapInformationManager::browseFinished(), and myMapManager.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createActions()

void CREMainWindow::createActions ( )
private

Definition at line 189 of file CREMainWindow.cpp.

References myClearMapCache, mySaveFormulae, myToolFacesetUseFallback, onClearCache(), onSaveFormulae(), and onToolFacesetUseFallback().

Referenced by CREMainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMenus()

◆ doResourceWindow()

void CREMainWindow::doResourceWindow ( int  assets,
const QByteArray &  position = QByteArray() 
)
protected

Definition at line 312 of file CREMainWindow.cpp.

References AssetModel::index(), myArea, myMapManager, myMessageManager, myModel, myResourcesManager, myScriptManager, onFiltersModified(), onReportsModified(), root, updateFilters(), and updateReports().

Referenced by createMenus(), and CREMainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillFacesets()

void CREMainWindow::fillFacesets ( )
protected

Definition at line 347 of file CREMainWindow.cpp.

References disinfect::a, AssetsCollection< T, Key >::each(), AssetsManager::facesets(), face_sets::fullname, getManager(), myFacesetsGroup, myToolFacesetUseFallback, myToolsMenu, onToolFaceset(), face_sets::prefix, and settings.

Referenced by CREMainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapAdded

void CREMainWindow::mapAdded ( CREMapInformation map)
privateslot

Definition at line 1887 of file CREMainWindow.cpp.

References get_region_by_name(), disinfect::map, myAssets, myResourcesManager, AllAssets::randomMaps(), AllAssets::regions(), and ResourcesManager::wrap().

Referenced by CREMainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onClearCache

void CREMainWindow::onClearCache ( )
privateslot

Definition at line 1809 of file CREMainWindow.cpp.

References CREMapInformationManager::clearCache(), powerbroker::confirm(), and myMapManager.

Referenced by createActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onFiltersModified

void CREMainWindow::onFiltersModified ( )
privateslot

Definition at line 397 of file CREMainWindow.cpp.

References updateFilters().

Referenced by doResourceWindow().

+ Here is the caller graph for this function:

◆ onOpenExperience

void CREMainWindow::onOpenExperience ( const QByteArray &  position = QByteArray())
privateslot

Definition at line 337 of file CREMainWindow.cpp.

References myArea.

Referenced by createMenus(), and CREMainWindow().

+ Here is the caller graph for this function:

◆ onReportAlchemy

void CREMainWindow::onReportAlchemy ( )
privateslot

Definition at line 736 of file CREMainWindow.cpp.

References alchemyTable(), archininventory::arch, AssetsManager::archetypes(), doIngredients(), AssetsCollection< T, Key >::each(), getManager(), give::name, report::report(), and SKILL.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportAlchemyGraph

void CREMainWindow::onReportAlchemyGraph ( )
privateslot

◆ onReportArchetypes

void CREMainWindow::onReportArchetypes ( )
privateslot

Definition at line 1600 of file CREMainWindow.cpp.

References archininventory::arch, AssetsManager::archetypes(), ResourcesManager::archetypeUse(), AssetsCollection< T, Key >::each(), EVENT_CONNECTOR, get_typedata(), CREPixmap::getIcon(), getManager(), if(), MAP, myMapManager, PLAYER, and report::report().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportDuplicate

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 413 of file CREMainWindow.cpp.

References make_face_from_files::anims, archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), dragon_attune::faces, getManager(), if(), castle_read::key, object_get_value(), and sstring.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportLicenses

void CREMainWindow::onReportLicenses ( )
privateslot

◆ onReportMaterials

void CREMainWindow::onReportMaterials ( )
privateslot

Definition at line 1558 of file CREMainWindow.cpp.

References attacktype_desc, materials, give::name, NROFATTACKS, ring_occidental_mages::r, and report::report().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportPlayer

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 1152 of file CREMainWindow.cpp.

References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), FLAG_MONSTER, getManager(), IS_COMBAT_SKILL, monsters, give::name, names, QUERY_FLAG, and SKILL.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportQuests

void CREMainWindow::onReportQuests ( )
privateslot

◆ onReportResetGroups

void CREMainWindow::onReportResetGroups ( )
privateslot

Definition at line 1726 of file CREMainWindow.cpp.

References CREMapInformationManager::allMaps(), ResourcesManager::getMapInformationManager(), disinfect::map, maps, myResourcesManager, CREMapInformation::name, give::name, CREMapInformation::path, and report::report().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportShops

void CREMainWindow::onReportShops ( )
privateslot

Definition at line 1396 of file CREMainWindow.cpp.

References CREMapInformationManager::allMaps(), buildShopReport(), disinfect::map, maps, myMapManager, and report::report().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportsModified

void CREMainWindow::onReportsModified ( )
privateslot

Definition at line 402 of file CREMainWindow.cpp.

References updateReports().

Referenced by doResourceWindow().

+ Here is the caller graph for this function:

◆ onReportSpellDamage

void CREMainWindow::onReportSpellDamage ( )
privateslot

Definition at line 591 of file CREMainWindow.cpp.

References archininventory::arch, AssetsManager::archetypes(), create_archetype(), AssetsCollection< T, Key >::each(), getManager(), SP_BULLET, and SPELL.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportSpells

void CREMainWindow::onReportSpells ( )
privateslot

Definition at line 902 of file CREMainWindow.cpp.

References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), getManager(), report::report(), SKILL, and spellsTable().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReportSummon

◆ onSaveFormulae

void CREMainWindow::onSaveFormulae ( )
privateslot

Definition at line 371 of file CREMainWindow.cpp.

Referenced by createActions().

+ Here is the caller graph for this function:

◆ onSaveMessages

void CREMainWindow::onSaveMessages ( )
privateslot

Definition at line 380 of file CREMainWindow.cpp.

References myMessageManager, and MessageManager::saveMessages().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onSaveQuests

void CREMainWindow::onSaveQuests ( )
privateslot

Definition at line 375 of file CREMainWindow.cpp.

References myResourcesManager, and ResourcesManager::saveQuests().

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onToolBarMaker

void CREMainWindow::onToolBarMaker ( )
privateslot

Definition at line 1797 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolCombatSimulator

void CREMainWindow::onToolCombatSimulator ( )
privateslot

Definition at line 1791 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolEditMonsters

void CREMainWindow::onToolEditMonsters ( )
privateslot

Definition at line 1779 of file CREMainWindow.cpp.

References myResourcesManager.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolFaceMaker

void CREMainWindow::onToolFaceMaker ( )
privateslot

Definition at line 1803 of file CREMainWindow.cpp.

References myResourcesManager.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolFaceset

void CREMainWindow::onToolFaceset ( QAction *  action)
privateslot

Definition at line 1824 of file CREMainWindow.cpp.

References convert::action, and CREPixmap::setFaceset().

Referenced by fillFacesets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onToolFacesetUseFallback

void CREMainWindow::onToolFacesetUseFallback ( )
privateslot

Definition at line 1829 of file CREMainWindow.cpp.

References myToolFacesetUseFallback, and CREPixmap::setUseFacesetFallback().

Referenced by createActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onToolReloadAssets

void CREMainWindow::onToolReloadAssets ( )
privateslot

Definition at line 1834 of file CREMainWindow.cpp.

References ASSETS_ALL, assets_collect(), CREPixmap::clearFaceCache(), Settings::datadir, ResourcesManager::licenseManager(), myResourcesManager, LicenseManager::reset(), and settings.

Referenced by createMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onToolSmooth

void CREMainWindow::onToolSmooth ( )
privateslot

Definition at line 1785 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolSounds

void CREMainWindow::onToolSounds ( )
privateslot

Definition at line 1844 of file CREMainWindow.cpp.

References settings.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onWindowsShowing

void CREMainWindow::onWindowsShowing ( )
privateslot

Definition at line 1855 of file CREMainWindow.cpp.

References disinfect::a, convert::action, myArea, and myWindows.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ updateFilters

void CREMainWindow::updateFilters ( )
signal

Referenced by doResourceWindow(), and onFiltersModified().

+ Here is the caller graph for this function:

◆ updateReports

void CREMainWindow::updateReports ( )
signal

Referenced by doResourceWindow(), and onReportsModified().

+ Here is the caller graph for this function:

Field Documentation

◆ myArea

QMdiArea* CREMainWindow::myArea
private

◆ myAssets

AllAssets* CREMainWindow::myAssets
private

Definition at line 54 of file CREMainWindow.h.

Referenced by createMenus(), CREMainWindow(), and mapAdded().

◆ myChanges

ChangesDock* CREMainWindow::myChanges
private

Definition at line 73 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myClearMapCache

QAction* CREMainWindow::myClearMapCache
private

Definition at line 66 of file CREMainWindow.h.

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

◆ myFacesetsGroup

QActionGroup* CREMainWindow::myFacesetsGroup
private

Definition at line 64 of file CREMainWindow.h.

Referenced by fillFacesets().

◆ myHelpManager

HelpManager* CREMainWindow::myHelpManager
private

Definition at line 74 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myMapBrowseStatus

QLabel* CREMainWindow::myMapBrowseStatus
private

Definition at line 68 of file CREMainWindow.h.

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

◆ myMapManager

CREMapInformationManager* CREMainWindow::myMapManager
private

◆ myMessageManager

MessageManager* CREMainWindow::myMessageManager
private

Definition at line 70 of file CREMainWindow.h.

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

◆ myModel

AssetModel* CREMainWindow::myModel
private

Definition at line 53 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myOpenMenu

QMenu* CREMainWindow::myOpenMenu
private

Definition at line 59 of file CREMainWindow.h.

Referenced by createMenus().

◆ myResourcesManager

◆ mySaveFormulae

QAction* CREMainWindow::mySaveFormulae
private

Definition at line 62 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

◆ mySaveMenu

QMenu* CREMainWindow::mySaveMenu
private

Definition at line 60 of file CREMainWindow.h.

Referenced by createMenus().

◆ myScriptManager

ScriptFileManager* CREMainWindow::myScriptManager
private

Definition at line 72 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myToolFacesetUseFallback

QAction* CREMainWindow::myToolFacesetUseFallback
private

Definition at line 65 of file CREMainWindow.h.

Referenced by createActions(), fillFacesets(), and onToolFacesetUseFallback().

◆ myToolsMenu

QMenu* CREMainWindow::myToolsMenu
private

Definition at line 63 of file CREMainWindow.h.

Referenced by createMenus(), and fillFacesets().

◆ myWindows

QMenu* CREMainWindow::myWindows
private

Definition at line 67 of file CREMainWindow.h.

Referenced by createMenus(), and onWindowsShowing().


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