Crossfire Server, Trunk
CREResourcesWindow Class Reference

#include <CREResourcesWindow.h>

+ Inheritance diagram for CREResourcesWindow:
+ Collaboration diagram for CREResourcesWindow:

Public Slots

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

Signals

void filtersModified ()
 
void reportsModified ()
 

Public Member Functions

 CREResourcesWindow (CREMapInformationManager *store, MessageManager *messages, ResourcesManager *resources, ScriptFileManager *scripts, QWidget *parent, DisplayMode mode=DisplayAll)
 
const ResourcesManagerresourcesManager () const
 
virtual ~CREResourcesWindow ()
 

Protected Slots

void addMessage (bool)
 
void addQuest (bool)
 
void clearFilter ()
 
void onFilter ()
 
void onFilterChange (QObject *object)
 
void onQuickFilter ()
 
void onReport ()
 
void onReportChange (QObject *object)
 
void tree_currentItemChanged (QTreeWidgetItem *, QTreeWidgetItem *)
 
void treeCustomMenu (const QPoint &pos)
 

Protected Member Functions

void addPanel (QString name, CREPanel *panel)
 
void fillAnimations ()
 
void fillArchetypes ()
 
void fillArtifacts ()
 
void fillData ()
 
void fillFaces ()
 
void fillFacesets ()
 
void fillFormulae ()
 
void fillGeneralMessages ()
 
void fillItem (const QPoint &pos, QMenu *menu)
 
void fillMaps ()
 
void fillMessages ()
 
void fillQuests ()
 
void fillRandomMaps ()
 
void fillScripts ()
 
void fillTreasures ()
 

Protected Attributes

CREPanelmyCurrentPanel
 
DisplayMode myDisplay
 
QList< QObject * > myDisplayedItems
 
CREFilter myFilter
 
QPushButton * myFilterButton
 
CREFilterDefinitionManager myFilters
 
QSignalMapper myFiltersMapper
 
QMenu * myFiltersMenu
 
MessageManagermyMessages
 
QHash< QString, QPointer< CREPanel > > myPanels
 
CREReportDefinitionManager myReports
 
QSignalMapper myReportsMapper
 
QMenu * myReportsMenu
 
ResourcesManagermyResources
 
ScriptFileManagermyScripts
 
QSplitter * mySplitter
 
CREMapInformationManagermyStore
 
QTreeWidget * myTree
 
QList< CRETreeItem * > myTreeItems
 

Detailed Description

Definition at line 35 of file CREResourcesWindow.h.

Constructor & Destructor Documentation

◆ CREResourcesWindow()

◆ ~CREResourcesWindow()

CREResourcesWindow::~CREResourcesWindow ( )
virtual

Definition at line 125 of file CREResourcesWindow.cpp.

References myDisplayedItems, myPanels, and myTreeItems.

Member Function Documentation

◆ addMessage

void CREResourcesWindow::addMessage ( bool  )
protectedslot

Definition at line 964 of file CREResourcesWindow.cpp.

References mad_mage_user::file, fillData(), MessageManager::messages(), and myMessages.

Referenced by treeCustomMenu().

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

◆ addPanel()

void CREResourcesWindow::addPanel ( QString  name,
CREPanel panel 
)
protected

◆ addQuest

void CREResourcesWindow::addQuest ( bool  )
protectedslot

Definition at line 947 of file CREResourcesWindow.cpp.

References AssetsCollection< T, Key >::define(), AssetsManager::faces(), fillData(), AssetsCollection< T, Key >::get(), getManager(), give::name, quest_create(), AssetsManager::quests(), and quests.

Referenced by treeCustomMenu().

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

◆ clearFilter

void CREResourcesWindow::clearFilter ( )
protectedslot

Definition at line 769 of file CREResourcesWindow.cpp.

References fillData(), myFilter, myFilterButton, and CREFilter::setFilter().

Referenced by onQuickFilter(), and updateFilters().

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

◆ commitData

void CREResourcesWindow::commitData ( )
slot

Definition at line 224 of file CREResourcesWindow.cpp.

References CREPanel::commitData(), and myCurrentPanel.

Referenced by tree_currentItemChanged().

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

◆ fillAnimations()

void CREResourcesWindow::fillAnimations ( )
protected

Definition at line 258 of file CREResourcesWindow.cpp.

References addPanel(), animate::anim, CREUtils::animationNode(), AssetsManager::animations(), AssetsCollection< T, Key >::each(), getManager(), myStore, myTree, and myTreeItems.

Referenced by fillData().

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

◆ fillArchetypes()

void CREResourcesWindow::fillArchetypes ( )
protected

◆ fillArtifacts()

void CREResourcesWindow::fillArtifacts ( )
protected

Definition at line 424 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::artifactNode(), disinfect::count, navar-midane_time::data, first_artifactlist, get_typedata(), say::item, guildoracle::list, myFilter, myTree, myTreeItems, root, CREWrapperArtifact::setArtifact(), and CREFilter::showItem().

Referenced by fillData().

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

◆ fillData()

◆ fillFaces()

void CREResourcesWindow::fillFaces ( )
protected

Definition at line 472 of file CREResourcesWindow.cpp.

References addPanel(), AssetsCollection< T, Key >::each(), CREUtils::faceNode(), AssetsManager::faces(), getManager(), myStore, myTree, myTreeItems, and root.

Referenced by fillData().

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

◆ fillFacesets()

void CREResourcesWindow::fillFacesets ( )
protected

Definition at line 663 of file CREResourcesWindow.cpp.

References addPanel(), AssetsCollection< T, Key >::each(), AssetsManager::facesets(), CREUtils::facesetsNode(), getManager(), myTree, myTreeItems, and root.

Referenced by fillData().

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

◆ fillFormulae()

void CREResourcesWindow::fillFormulae ( )
protected

◆ fillGeneralMessages()

void CREResourcesWindow::fillGeneralMessages ( )
protected

Definition at line 644 of file CREResourcesWindow.cpp.

References addPanel(), AssetsCollection< T, Key >::each(), CREUtils::generalMessageNode(), getManager(), diamondslots::message, AssetsManager::messages(), myTree, myTreeItems, and root.

Referenced by fillData().

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

◆ fillItem()

void CREResourcesWindow::fillItem ( const QPoint &  pos,
QMenu *  menu 
)
protected

Definition at line 910 of file CREResourcesWindow.cpp.

References myTree.

Referenced by treeCustomMenu().

+ Here is the caller graph for this function:

◆ fillMaps()

void CREResourcesWindow::fillMaps ( )
protected
Todo:
clean at some point - the issue is wrapper's ownership

Definition at line 496 of file CREResourcesWindow.cpp.

References addPanel(), DisplayMaps, first_region, CREMapInformationManager::getMapsForRegion(), disinfect::map, CREUtils::mapNode(), maps, myDisplay, myDisplayedItems, myFilter, myScripts, myStore, myTree, myTreeItems, give::name, guildbuy::names, regiondef::next, CREUtils::regionNode(), regions, root, CREFilter::showItem(), and sortMapInformation().

Referenced by fillData().

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

◆ fillMessages()

void CREResourcesWindow::fillMessages ( )
protected

Definition at line 598 of file CREResourcesWindow.cpp.

References addPanel(), say::item, diamondslots::message, CREUtils::messageNode(), MessageManager::messages(), CREUtils::messagesNode(), myMessages, myTree, myTreeItems, and root.

Referenced by fillData().

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

◆ fillQuests()

void CREResourcesWindow::fillQuests ( )
protected

Definition at line 579 of file CREResourcesWindow.cpp.

References addPanel(), disinfect::count, AssetsCollection< T, Key >::each(), getManager(), say::item, myMessages, myResources, myStore, myTree, myTreeItems, CREUtils::questNode(), AssetsManager::quests(), quests, CREUtils::questsNode(), and root.

Referenced by fillData().

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

◆ fillRandomMaps()

void CREResourcesWindow::fillRandomMaps ( )
protected

Definition at line 991 of file CREResourcesWindow.cpp.

References addPanel(), navar-midane_time::data, DisplayRandomMaps, disinfect::map, CREUtils::mapNode(), maps, myDisplay, myStore, myTree, myTreeItems, CREMapInformationManager::randomMaps(), root, and sortRandomMap().

Referenced by fillData().

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

◆ fillScripts()

void CREResourcesWindow::fillScripts ( )
protected

Definition at line 622 of file CREResourcesWindow.cpp.

References addPanel(), say::item, myScripts, myTree, myTreeItems, root, scriptLessThan(), CREUtils::scriptNode(), python_event::scripts, ScriptFileManager::scripts(), and CREUtils::scriptsNode().

Referenced by fillData().

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

◆ fillTreasures()

void CREResourcesWindow::fillTreasures ( )
protected

◆ filtersModified

void CREResourcesWindow::filtersModified ( )
signal

Referenced by onFilter().

+ Here is the caller graph for this function:

◆ onFilter

void CREResourcesWindow::onFilter ( )
protectedslot

Definition at line 689 of file CREResourcesWindow.cpp.

References filtersModified().

Referenced by updateFilters().

+ Here is the caller graph for this function:

◆ onFilterChange

void CREResourcesWindow::onFilterChange ( QObject *  object)
protectedslot

Definition at line 743 of file CREResourcesWindow.cpp.

References fillData(), myFilter, myFilterButton, and CREFilter::setFilter().

Referenced by CREResourcesWindow().

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

◆ onQuickFilter

void CREResourcesWindow::onQuickFilter ( )
protectedslot

Definition at line 753 of file CREResourcesWindow.cpp.

References clearFilter(), fillData(), CREFilter::filter(), myFilter, myFilterButton, and CREFilter::setFilter().

Referenced by updateFilters().

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

◆ onReport

void CREResourcesWindow::onReport ( )
protectedslot

Definition at line 699 of file CREResourcesWindow.cpp.

References reportsModified().

Referenced by updateReports().

+ Here is the caller graph for this function:

◆ onReportChange

void CREResourcesWindow::onReportChange ( QObject *  object)
protectedslot

Definition at line 801 of file CREResourcesWindow.cpp.

References hall_of_fame::header, myDisplayedItems, and guild_entry::text.

Referenced by CREResourcesWindow().

+ Here is the caller graph for this function:

◆ reportsModified

void CREResourcesWindow::reportsModified ( )
signal

Referenced by onReport().

+ Here is the caller graph for this function:

◆ resourcesManager()

const ResourcesManager * CREResourcesWindow::resourcesManager ( ) const

Definition at line 972 of file CREResourcesWindow.cpp.

References myResources.

◆ tree_currentItemChanged

void CREResourcesWindow::tree_currentItemChanged ( QTreeWidgetItem *  current,
QTreeWidgetItem *   
)
protectedslot

Definition at line 230 of file CREResourcesWindow.cpp.

References commitData(), replace::current, myCurrentPanel, and myPanels.

Referenced by CREResourcesWindow().

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

◆ treeCustomMenu

void CREResourcesWindow::treeCustomMenu ( const QPoint &  pos)
protectedslot

Definition at line 922 of file CREResourcesWindow.cpp.

References addMessage(), addQuest(), DisplayMessage, DisplayQuests, fillItem(), myDisplay, and myTree.

Referenced by CREResourcesWindow().

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

◆ updateFilters

void CREResourcesWindow::updateFilters ( )
slot

Definition at line 709 of file CREResourcesWindow.cpp.

References disinfect::a, clearFilter(), CREFilterDefinitionManager::filters(), disinfect::map, myFilters, myFiltersMapper, myFiltersMenu, onFilter(), onQuickFilter(), and settings.

Referenced by CREResourcesWindow().

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

◆ updateReports

void CREResourcesWindow::updateReports ( )
slot

Definition at line 776 of file CREResourcesWindow.cpp.

References disinfect::a, disinfect::map, myReports, myReportsMapper, myReportsMenu, onReport(), CREReportDefinitionManager::reports(), and settings.

Referenced by CREResourcesWindow().

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

Field Documentation

◆ myCurrentPanel

CREPanel* CREResourcesWindow::myCurrentPanel
protected

Definition at line 56 of file CREResourcesWindow.h.

Referenced by commitData(), CREResourcesWindow(), and tree_currentItemChanged().

◆ myDisplay

DisplayMode CREResourcesWindow::myDisplay
protected

◆ myDisplayedItems

QList<QObject*> CREResourcesWindow::myDisplayedItems
protected

◆ myFilter

CREFilter CREResourcesWindow::myFilter
protected

◆ myFilterButton

QPushButton* CREResourcesWindow::myFilterButton
protected

◆ myFilters

CREFilterDefinitionManager CREResourcesWindow::myFilters
protected

Definition at line 69 of file CREResourcesWindow.h.

Referenced by updateFilters().

◆ myFiltersMapper

QSignalMapper CREResourcesWindow::myFiltersMapper
protected

Definition at line 68 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myFiltersMenu

QMenu* CREResourcesWindow::myFiltersMenu
protected

Definition at line 67 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myMessages

MessageManager* CREResourcesWindow::myMessages
protected

Definition at line 60 of file CREResourcesWindow.h.

Referenced by addMessage(), CREResourcesWindow(), fillMessages(), and fillQuests().

◆ myPanels

QHash<QString, QPointer<CREPanel> > CREResourcesWindow::myPanels
protected

Definition at line 57 of file CREResourcesWindow.h.

Referenced by addPanel(), tree_currentItemChanged(), and ~CREResourcesWindow().

◆ myReports

CREReportDefinitionManager CREResourcesWindow::myReports
protected

Definition at line 72 of file CREResourcesWindow.h.

Referenced by updateReports().

◆ myReportsMapper

QSignalMapper CREResourcesWindow::myReportsMapper
protected

Definition at line 71 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

◆ myReportsMenu

QMenu* CREResourcesWindow::myReportsMenu
protected

Definition at line 70 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

◆ myResources

ResourcesManager* CREResourcesWindow::myResources
protected

◆ myScripts

ScriptFileManager* CREResourcesWindow::myScripts
protected

Definition at line 62 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), fillMaps(), and fillScripts().

◆ mySplitter

QSplitter* CREResourcesWindow::mySplitter
protected

Definition at line 58 of file CREResourcesWindow.h.

Referenced by addPanel(), and CREResourcesWindow().

◆ myStore

CREMapInformationManager* CREResourcesWindow::myStore
protected

◆ myTree

◆ myTreeItems


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