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 (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 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 * myReportShops
 
ResourcesManagermyResourcesManager
 
QAction * mySaveFormulae
 
QMenu * mySaveMenu
 
ScriptFileManagermyScriptManager
 
QAction * myToolFacesetUseFallback
 
QMenu * myToolsMenu
 
QMenu * myWindows
 

Detailed Description

Definition at line 28 of file CREMainWindow.h.

Constructor & Destructor Documentation

◆ CREMainWindow()

Member Function Documentation

◆ browsingFinished

void CREMainWindow::browsingFinished ( )
privateslot

Definition at line 375 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 370 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() [1/2]

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

Definition at line 135 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 141 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 296 of file CREMainWindow.cpp.

References commitData(), 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 330 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 1785 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 1718 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 386 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 320 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 714 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 1574 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 402 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 1529 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 1123 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 1367 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 391 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 581 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 874 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 354 of file CREMainWindow.cpp.

Referenced by createActions().

+ Here is the caller graph for this function:

◆ onSaveMessages

void CREMainWindow::onSaveMessages ( )
privateslot

Definition at line 364 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 358 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 1706 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolCombatSimulator

void CREMainWindow::onToolCombatSimulator ( )
privateslot

Definition at line 1700 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onToolEditMonsters

void CREMainWindow::onToolEditMonsters ( )
privateslot

Definition at line 1688 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 1712 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 1733 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 1738 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 1743 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 1694 of file CREMainWindow.cpp.

Referenced by createMenus().

+ Here is the caller graph for this function:

◆ onWindowsShowing

void CREMainWindow::onWindowsShowing ( )
privateslot

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

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

◆ myChanges

ChangesDock* CREMainWindow::myChanges
private

Definition at line 66 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myClearMapCache

QAction* CREMainWindow::myClearMapCache
private

Definition at line 59 of file CREMainWindow.h.

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

◆ myFacesetsGroup

QActionGroup* CREMainWindow::myFacesetsGroup
private

Definition at line 57 of file CREMainWindow.h.

Referenced by fillFacesets().

◆ myHelpManager

HelpManager* CREMainWindow::myHelpManager
private

Definition at line 67 of file CREMainWindow.h.

Referenced by createMenus(), and CREMainWindow().

◆ myMapBrowseStatus

QLabel* CREMainWindow::myMapBrowseStatus
private

Definition at line 61 of file CREMainWindow.h.

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

◆ myMapManager

CREMapInformationManager* CREMainWindow::myMapManager
private

◆ myMessageManager

MessageManager* CREMainWindow::myMessageManager
private

Definition at line 63 of file CREMainWindow.h.

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

◆ myModel

AssetModel* CREMainWindow::myModel
private

Definition at line 42 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myOpenMenu

QMenu* CREMainWindow::myOpenMenu
private

Definition at line 48 of file CREMainWindow.h.

Referenced by createMenus().

◆ myReportArchetypes

QAction* CREMainWindow::myReportArchetypes
private

Definition at line 55 of file CREMainWindow.h.

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

◆ myReportPlayer

QAction* CREMainWindow::myReportPlayer
private

Definition at line 52 of file CREMainWindow.h.

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

◆ myReportQuests

QAction* CREMainWindow::myReportQuests
private

Definition at line 54 of file CREMainWindow.h.

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

◆ myReportShops

QAction* CREMainWindow::myReportShops
private

Definition at line 53 of file CREMainWindow.h.

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

◆ myResourcesManager

◆ mySaveFormulae

QAction* CREMainWindow::mySaveFormulae
private

Definition at line 51 of file CREMainWindow.h.

Referenced by createActions(), and createMenus().

◆ mySaveMenu

QMenu* CREMainWindow::mySaveMenu
private

Definition at line 49 of file CREMainWindow.h.

Referenced by createMenus().

◆ myScriptManager

ScriptFileManager* CREMainWindow::myScriptManager
private

Definition at line 65 of file CREMainWindow.h.

Referenced by CREMainWindow(), and doResourceWindow().

◆ myToolFacesetUseFallback

QAction* CREMainWindow::myToolFacesetUseFallback
private

Definition at line 58 of file CREMainWindow.h.

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

◆ myToolsMenu

QMenu* CREMainWindow::myToolsMenu
private

Definition at line 56 of file CREMainWindow.h.

Referenced by createMenus(), and fillFacesets().

◆ myWindows

QMenu* CREMainWindow::myWindows
private

Definition at line 60 of file CREMainWindow.h.

Referenced by createMenus(), and onWindowsShowing().


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