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)
 
QAction * createAction (const QString &title, const QString &statusTip, QObject *target, const char *slot)
 
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 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
 
QAction * myReportArchetypes
 
QAction * myReportPlayer
 
QAction * myReportQuests
 
QAction * myReportResetGroups
 
QAction * myReportShops
 
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 391 of file CREMainWindow.cpp.

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

Referenced by CREMainWindow().

+ Here is the caller graph for this function:

◆ browsingMap

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

Definition at line 386 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 150 of file CREMainWindow.cpp.

References convert::action.

Referenced by createAction(), and createMenus().

+ Here is the caller graph for this function:

◆ createAction() [2/2]

QAction * CREMainWindow::createAction ( const QString &  title,
const QString &  statusTip,
QObject *  target,
const char *  slot 
)
protected

Definition at line 156 of file CREMainWindow.cpp.

References convert::action, and createAction().

+ Here is the call graph for this function:

◆ createActions()

void CREMainWindow::createActions ( )
private

◆ createMenus()

◆ doResourceWindow()

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

Definition at line 313 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 348 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 1880 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 1813 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 403 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 338 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 742 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 1604 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 createActions().

+ 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 419 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 1562 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 1156 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 createActions().

+ 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 1730 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 1400 of file CREMainWindow.cpp.

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

Referenced by createActions().

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

◆ onReportsModified

void CREMainWindow::onReportsModified ( )
privateslot

Definition at line 408 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 597 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 906 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 372 of file CREMainWindow.cpp.

Referenced by createActions().

+ Here is the caller graph for this function:

◆ onSaveMessages

void CREMainWindow::onSaveMessages ( )
privateslot

Definition at line 381 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 376 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 1801 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolCombatSimulator

void CREMainWindow::onToolCombatSimulator ( )
privateslot

Definition at line 1795 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolEditMonsters

void CREMainWindow::onToolEditMonsters ( )
privateslot

Definition at line 1783 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 1807 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 1828 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 1833 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 1838 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 1789 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onWindowsShowing

void CREMainWindow::onWindowsShowing ( )
privateslot

Definition at line 1848 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 78 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myClearMapCache

QAction* CREMainWindow::myClearMapCache
private

Definition at line 71 of file CREMainWindow.h.

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

◆ myFacesetsGroup

QActionGroup* CREMainWindow::myFacesetsGroup
private

Definition at line 69 of file CREMainWindow.h.

Referenced by fillFacesets().

◆ myHelpManager

HelpManager* CREMainWindow::myHelpManager
private

Definition at line 79 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myMapBrowseStatus

QLabel* CREMainWindow::myMapBrowseStatus
private

Definition at line 73 of file CREMainWindow.h.

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

◆ myMapManager

CREMapInformationManager* CREMainWindow::myMapManager
private

◆ myMessageManager

MessageManager* CREMainWindow::myMessageManager
private

Definition at line 75 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().

◆ myReportArchetypes

QAction* CREMainWindow::myReportArchetypes
private

Definition at line 66 of file CREMainWindow.h.

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

◆ myReportPlayer

QAction* CREMainWindow::myReportPlayer
private

Definition at line 63 of file CREMainWindow.h.

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

◆ myReportQuests

QAction* CREMainWindow::myReportQuests
private

Definition at line 65 of file CREMainWindow.h.

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

◆ myReportResetGroups

QAction* CREMainWindow::myReportResetGroups
private

Definition at line 67 of file CREMainWindow.h.

Referenced by browsingFinished(), and createMenus().

◆ myReportShops

QAction* CREMainWindow::myReportShops
private

Definition at line 64 of file CREMainWindow.h.

Referenced by browsingFinished(), createActions(), and 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 77 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myToolFacesetUseFallback

QAction* CREMainWindow::myToolFacesetUseFallback
private

Definition at line 70 of file CREMainWindow.h.

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

◆ myToolsMenu

QMenu* CREMainWindow::myToolsMenu
private

Definition at line 68 of file CREMainWindow.h.

Referenced by createMenus(), and fillFacesets().

◆ myWindows

QMenu* CREMainWindow::myWindows
private

Definition at line 72 of file CREMainWindow.h.

Referenced by createMenus(), and onWindowsShowing().


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