Crossfire Server, Trunk
CREMainWindow Class Reference

#include <CREMainWindow.h>

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

Signals

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

Public Member Functions

 CREMainWindow ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
QAction * createAction (const QString &title, const QString &statusTip, QObject *target, const char *slot)
 
void doResourceWindow (DisplayMode mode)
 
void fillFacesets ()
 

Private Slots

void browsingFinished ()
 
void browsingMap (const QString &path)
 
void onClearCache ()
 
void onFiltersModified ()
 
void onOpenExperience ()
 
void onOpenResources ()
 
void onReportAlchemy ()
 
void onReportAlchemyGraph ()
 
void onReportArchetypes ()
 
void onReportDuplicate ()
 
void onReportLicenses ()
 
void onReportMaterials ()
 
void onReportPlayer ()
 
void onReportQuests ()
 
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
 
QAction * myClearMapCache
 
QActionGroup * myFacesetsGroup
 
QLabel * myMapBrowseStatus
 
CREMapInformationManagermyMapManager
 
MessageManagermyMessageManager
 
QMenu * myOpenMenu
 
QAction * myReportArchetypes
 
QAction * myReportPlayer
 
QAction * myReportQuests
 
QAction * myReportShops
 
ResourcesManagermyResourcesManager
 
QAction * mySaveFormulae
 
QMenu * mySaveMenu
 
ScriptFileManagermyScriptManager
 
QAction * myToolFacesetUseFallback
 
QMenu * myToolsMenu
 
QMenu * myWindows
 

Detailed Description

Definition at line 22 of file CREMainWindow.h.

Constructor & Destructor Documentation

◆ CREMainWindow()

Member Function Documentation

◆ browsingFinished

void CREMainWindow::browsingFinished ( )
privateslot

Definition at line 314 of file CREMainWindow.cpp.

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

Referenced by CREMainWindow().

+ Here is the caller graph for this function:

◆ browsingMap

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

Definition at line 309 of file CREMainWindow.cpp.

References myMapBrowseStatus, and python_event::path.

Referenced by CREMainWindow().

+ Here is the caller graph for this function:

◆ closeEvent()

void CREMainWindow::closeEvent ( QCloseEvent *  event)
protected

◆ commitData

void CREMainWindow::commitData ( )
signal

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

+ Here is the caller graph for this function:

◆ createAction()

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

Definition at line 79 of file CREMainWindow.cpp.

References convert::action.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ createActions()

void CREMainWindow::createActions ( )
private

◆ createMenus()

◆ doResourceWindow()

void CREMainWindow::doResourceWindow ( DisplayMode  mode)
protected

Definition at line 241 of file CREMainWindow.cpp.

References commitData(), myArea, myMapManager, myMessageManager, myResourcesManager, myScriptManager, onFiltersModified(), onReportsModified(), updateFilters(), and updateReports().

Referenced by onOpenResources().

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

◆ fillFacesets()

void CREMainWindow::fillFacesets ( )
protected

Definition at line 260 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:

◆ onClearCache

void CREMainWindow::onClearCache ( )
privateslot

Definition at line 1657 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:

◆ onFiltersModified

void CREMainWindow::onFiltersModified ( )
privateslot

Definition at line 325 of file CREMainWindow.cpp.

References updateFilters().

Referenced by doResourceWindow().

+ Here is the caller graph for this function:

◆ onOpenExperience

void CREMainWindow::onOpenExperience ( )
privateslot

Definition at line 253 of file CREMainWindow.cpp.

References myArea.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onOpenResources

void CREMainWindow::onOpenResources ( )
privateslot

Definition at line 284 of file CREMainWindow.cpp.

References doResourceWindow().

Referenced by createMenus().

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

◆ onReportAlchemy

void CREMainWindow::onReportAlchemy ( )
privateslot

Definition at line 653 of file CREMainWindow.cpp.

References alchemyTable(), archininventory::arch, AssetsManager::archetypes(), 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

◆ onReportArchetypes

void CREMainWindow::onReportArchetypes ( )
privateslot

Definition at line 1513 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 341 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 1468 of file CREMainWindow.cpp.

References attacktype_desc, materialt, 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 1062 of file CREMainWindow.cpp.

References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), FLAG_MONSTER, getManager(), IS_COMBAT_SKILL, give::name, guildbuy::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

◆ onReportShops

void CREMainWindow::onReportShops ( )
privateslot

Definition at line 1306 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 330 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 520 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 813 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

void CREMainWindow::onReportSummon ( )
privateslot

◆ onSaveFormulae

void CREMainWindow::onSaveFormulae ( )
privateslot

Definition at line 293 of file CREMainWindow.cpp.

Referenced by createActions().

+ Here is the caller graph for this function:

◆ onSaveMessages

void CREMainWindow::onSaveMessages ( )
privateslot

Definition at line 303 of file CREMainWindow.cpp.

References commitData(), 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 297 of file CREMainWindow.cpp.

References commitData(), 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 1645 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolCombatSimulator

void CREMainWindow::onToolCombatSimulator ( )
privateslot

Definition at line 1639 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolEditMonsters

void CREMainWindow::onToolEditMonsters ( )
privateslot

Definition at line 1627 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 1651 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 1672 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 1677 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 1682 of file CREMainWindow.cpp.

References ASSETS_ALL, assets_collect(), CREPixmap::clearFaceCache(), Settings::datadir, LicenseManager::get(), 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 1633 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onWindowsShowing

void CREMainWindow::onWindowsShowing ( )
privateslot

Definition at line 1692 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

◆ myClearMapCache

QAction* CREMainWindow::myClearMapCache
private

Definition at line 51 of file CREMainWindow.h.

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

◆ myFacesetsGroup

QActionGroup* CREMainWindow::myFacesetsGroup
private

Definition at line 49 of file CREMainWindow.h.

Referenced by fillFacesets().

◆ myMapBrowseStatus

QLabel* CREMainWindow::myMapBrowseStatus
private

Definition at line 53 of file CREMainWindow.h.

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

◆ myMapManager

CREMapInformationManager* CREMainWindow::myMapManager
private

◆ myMessageManager

MessageManager* CREMainWindow::myMessageManager
private

Definition at line 55 of file CREMainWindow.h.

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

◆ myOpenMenu

QMenu* CREMainWindow::myOpenMenu
private

Definition at line 40 of file CREMainWindow.h.

Referenced by createMenus().

◆ myReportArchetypes

QAction* CREMainWindow::myReportArchetypes
private

Definition at line 47 of file CREMainWindow.h.

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

◆ myReportPlayer

QAction* CREMainWindow::myReportPlayer
private

Definition at line 44 of file CREMainWindow.h.

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

◆ myReportQuests

QAction* CREMainWindow::myReportQuests
private

Definition at line 46 of file CREMainWindow.h.

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

◆ myReportShops

QAction* CREMainWindow::myReportShops
private

Definition at line 45 of file CREMainWindow.h.

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

◆ myResourcesManager

ResourcesManager* CREMainWindow::myResourcesManager
private

◆ mySaveFormulae

QAction* CREMainWindow::mySaveFormulae
private

Definition at line 43 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

◆ mySaveMenu

QMenu* CREMainWindow::mySaveMenu
private

Definition at line 41 of file CREMainWindow.h.

Referenced by createMenus().

◆ myScriptManager

ScriptFileManager* CREMainWindow::myScriptManager
private

Definition at line 57 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myToolFacesetUseFallback

QAction* CREMainWindow::myToolFacesetUseFallback
private

Definition at line 50 of file CREMainWindow.h.

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

◆ myToolsMenu

QMenu* CREMainWindow::myToolsMenu
private

Definition at line 48 of file CREMainWindow.h.

Referenced by createMenus(), and fillFacesets().

◆ myWindows

QMenu* CREMainWindow::myWindows
private

Definition at line 52 of file CREMainWindow.h.

Referenced by createMenus(), and onWindowsShowing().


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