Crossfire Server, Trunk
|
#include <CREMainWindow.h>
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 |
AllAssets * | myAssets |
ChangesDock * | myChanges |
QAction * | myClearMapCache |
QActionGroup * | myFacesetsGroup |
HelpManager * | myHelpManager |
QLabel * | myMapBrowseStatus |
CREMapInformationManager * | myMapManager |
MessageManager * | myMessageManager |
AssetModel * | myModel |
QMenu * | myOpenMenu |
ResourcesManager * | myResourcesManager |
QAction * | mySaveFormulae |
QMenu * | mySaveMenu |
ScriptFileManager * | myScriptManager |
QAction * | myToolFacesetUseFallback |
QMenu * | myToolsMenu |
QMenu * | myWindows |
Definition at line 40 of file CREMainWindow.h.
CREMainWindow::CREMainWindow | ( | const QString & | helpRoot | ) |
Definition at line 50 of file CREMainWindow.cpp.
References browsingFinished(), browsingMap(), disinfect::count, createActions(), createMenus(), doResourceWindow(), fillFacesets(), CREPixmap::init(), ResourcesManager::load(), MessageManager::loadMessages(), mapAdded(), myArea, myAssets, myChanges, myHelpManager, myMapBrowseStatus, myMapManager, myMessageManager, myModel, myResourcesManager, myScriptManager, onOpenExperience(), AssetWrapper::setDisplayParent(), ResourcesManager::setMapInformationManager(), settings, CREMapInformationManager::start(), and is_valid_types_gen::type.
|
privateslot |
Definition at line 390 of file CREMainWindow.cpp.
References myClearMapCache, and myMapBrowseStatus.
Referenced by CREMainWindow().
|
privateslot |
Definition at line 385 of file CREMainWindow.cpp.
References myMapBrowseStatus, and python_init::path.
Referenced by CREMainWindow().
|
protected |
Definition at line 112 of file CREMainWindow.cpp.
References CREMapInformationManager::cancel(), cleanup(), animate::event, ResourcesManager::hasPendingChanges(), myArea, myMapManager, myMessageManager, myResourcesManager, and settings.
|
protected |
Definition at line 183 of file CREMainWindow.cpp.
References convert::action.
|
protected |
Definition at line 152 of file CREMainWindow.cpp.
References convert::action, CREMapInformationManager::browseFinished(), and myMapManager.
Referenced by createMenus().
|
private |
Definition at line 189 of file CREMainWindow.cpp.
References myClearMapCache, mySaveFormulae, myToolFacesetUseFallback, onClearCache(), onSaveFormulae(), and onToolFacesetUseFallback().
Referenced by CREMainWindow().
|
private |
Definition at line 207 of file CREMainWindow.cpp.
References convert::action, AllAssets::child(), AllAssets::childrenCount(), createAction(), HelpManager::displayHelp(), AssetWrapper::displayName, doResourceWindow(), help(), npc_dialog::index, myArea, myAssets, myChanges, myClearMapCache, myHelpManager, myOpenMenu, myResourcesManager, mySaveFormulae, mySaveMenu, myToolsMenu, myWindows, give::name, onOpenExperience(), onReportAlchemy(), onReportAlchemyGraph(), onReportArchetypes(), onReportDuplicate(), onReportLicenses(), onReportMaterials(), onReportPlayer(), onReportQuests(), onReportResetGroups(), onReportShops(), onReportSpellDamage(), onReportSpells(), onReportSummon(), onSaveMessages(), onSaveQuests(), onToolBarMaker(), onToolCombatSimulator(), onToolEditMonsters(), onToolFaceMaker(), onToolReloadAssets(), onToolSmooth(), onToolSounds(), onWindowsShowing(), ResourcesManager::saveArchetypes(), ResourcesManager::saveArtifacts(), ResourcesManager::saveGeneralMessages(), ResourcesManager::saveTreasures(), CRESettings::setStoreWindowState(), settings, CRESettings::storeWindowsState(), and AssetWrapper::tipProperty.
Referenced by CREMainWindow().
|
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().
|
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().
|
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().
|
privateslot |
Definition at line 1809 of file CREMainWindow.cpp.
References CREMapInformationManager::clearCache(), powerbroker::confirm(), and myMapManager.
Referenced by createActions().
|
privateslot |
Definition at line 397 of file CREMainWindow.cpp.
References updateFilters().
Referenced by doResourceWindow().
|
privateslot |
Definition at line 337 of file CREMainWindow.cpp.
References myArea.
Referenced by createMenus(), and CREMainWindow().
|
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().
|
privateslot |
Definition at line 781 of file CREMainWindow.cpp.
References archininventory::arch, recipe::arch_name, recipe::arch_names, AssetsManager::archetypes(), mad_mage_user::file, AssetsCollection< T, Key >::find(), get_formulalist(), getManager(), recipe::ingred, guildoracle::list, give::name, names, recipe::next, linked_char::next, make_face_from_files::out, ring_occidental_mages::r, and recipe::title.
Referenced by createMenus().
|
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().
|
privateslot |
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().
|
privateslot |
Definition at line 1648 of file CREMainWindow.cpp.
References AssetsCollection< T, Key >::each(), dragon_attune::faces, AssetsManager::faces(), AssetsManager::facesets(), LicenseManager::getAll(), getManager(), ResourcesManager::licenseManager(), LicenseManager::licenseNameFromFaceName(), myResourcesManager, Face::name, face_sets::prefix, and report::report().
Referenced by createMenus().
|
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().
|
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().
|
privateslot |
Definition at line 1487 of file CREMainWindow.cpp.
References done, AssetsCollection< T, Key >::each(), AssetsCollection< T, Key >::find(), AssetsCollection< T, Key >::get(), getManager(), castle_read::key, hall_of_fame::keys, Settings::localdir, npc_dialog::player, Settings::playerdir, players, AssetsManager::quests(), readDirectory(), report::report(), and settings.
Referenced by createMenus().
|
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().
|
privateslot |
Definition at line 1396 of file CREMainWindow.cpp.
References CREMapInformationManager::allMaps(), buildShopReport(), disinfect::map, maps, myMapManager, and report::report().
Referenced by createMenus().
|
privateslot |
Definition at line 402 of file CREMainWindow.cpp.
References updateReports().
Referenced by doResourceWindow().
|
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().
|
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().
|
privateslot |
Definition at line 1279 of file CREMainWindow.cpp.
References AssetsManager::archetypes(), archetype::clone, determine_holy_arch(), AssetsCollection< T, Key >::each(), getManager(), GOD, if(), castle_read::key, hall_of_fame::keys, level, is_valid_types_gen::line, give::name, object::name, archetype::name, object::other_arch, object::race, report::report(), reportSummon(), SP_SUMMON_GOLEM, SPELL, spell_arrow::spells, object::subtype, and object::type.
Referenced by createMenus().
|
privateslot |
Definition at line 371 of file CREMainWindow.cpp.
Referenced by createActions().
|
privateslot |
Definition at line 380 of file CREMainWindow.cpp.
References myMessageManager, and MessageManager::saveMessages().
Referenced by createMenus().
|
privateslot |
Definition at line 375 of file CREMainWindow.cpp.
References myResourcesManager, and ResourcesManager::saveQuests().
Referenced by createMenus().
|
privateslot |
Definition at line 1797 of file CREMainWindow.cpp.
Referenced by createMenus().
|
privateslot |
Definition at line 1791 of file CREMainWindow.cpp.
Referenced by createMenus().
|
privateslot |
Definition at line 1779 of file CREMainWindow.cpp.
References myResourcesManager.
Referenced by createMenus().
|
privateslot |
Definition at line 1803 of file CREMainWindow.cpp.
References myResourcesManager.
Referenced by createMenus().
|
privateslot |
Definition at line 1824 of file CREMainWindow.cpp.
References convert::action, and CREPixmap::setFaceset().
Referenced by fillFacesets().
|
privateslot |
Definition at line 1829 of file CREMainWindow.cpp.
References myToolFacesetUseFallback, and CREPixmap::setUseFacesetFallback().
Referenced by createActions().
|
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().
|
privateslot |
Definition at line 1785 of file CREMainWindow.cpp.
Referenced by createMenus().
|
privateslot |
Definition at line 1844 of file CREMainWindow.cpp.
References settings.
Referenced by createMenus().
|
privateslot |
Definition at line 1855 of file CREMainWindow.cpp.
References disinfect::a, convert::action, myArea, and myWindows.
Referenced by createMenus().
|
signal |
Referenced by doResourceWindow(), and onFiltersModified().
|
signal |
Referenced by doResourceWindow(), and onReportsModified().
|
private |
Definition at line 52 of file CREMainWindow.h.
Referenced by closeEvent(), createMenus(), CREMainWindow(), doResourceWindow(), onOpenExperience(), and onWindowsShowing().
|
private |
Definition at line 54 of file CREMainWindow.h.
Referenced by createMenus(), CREMainWindow(), and mapAdded().
|
private |
Definition at line 73 of file CREMainWindow.h.
Referenced by createMenus(), and CREMainWindow().
|
private |
Definition at line 66 of file CREMainWindow.h.
Referenced by browsingFinished(), createActions(), and createMenus().
|
private |
Definition at line 64 of file CREMainWindow.h.
Referenced by fillFacesets().
|
private |
Definition at line 74 of file CREMainWindow.h.
Referenced by createMenus(), and CREMainWindow().
|
private |
Definition at line 68 of file CREMainWindow.h.
Referenced by browsingFinished(), browsingMap(), and CREMainWindow().
|
private |
Definition at line 69 of file CREMainWindow.h.
Referenced by closeEvent(), createAction(), CREMainWindow(), doResourceWindow(), onClearCache(), onReportArchetypes(), and onReportShops().
|
private |
Definition at line 70 of file CREMainWindow.h.
Referenced by closeEvent(), CREMainWindow(), doResourceWindow(), and onSaveMessages().
|
private |
Definition at line 53 of file CREMainWindow.h.
Referenced by CREMainWindow(), and doResourceWindow().
|
private |
Definition at line 59 of file CREMainWindow.h.
Referenced by createMenus().
|
private |
Definition at line 71 of file CREMainWindow.h.
Referenced by closeEvent(), createMenus(), CREMainWindow(), doResourceWindow(), mapAdded(), onReportLicenses(), onReportResetGroups(), onSaveQuests(), onToolEditMonsters(), onToolFaceMaker(), and onToolReloadAssets().
|
private |
Definition at line 62 of file CREMainWindow.h.
Referenced by createActions(), and createMenus().
|
private |
Definition at line 60 of file CREMainWindow.h.
Referenced by createMenus().
|
private |
Definition at line 72 of file CREMainWindow.h.
Referenced by CREMainWindow(), and doResourceWindow().
|
private |
Definition at line 65 of file CREMainWindow.h.
Referenced by createActions(), fillFacesets(), and onToolFacesetUseFallback().
|
private |
Definition at line 63 of file CREMainWindow.h.
Referenced by createMenus(), and fillFacesets().
|
private |
Definition at line 67 of file CREMainWindow.h.
Referenced by createMenus(), and onWindowsShowing().