Crossfire Server, Trunk  R20513
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
CREResourcesWindow Class Reference

#include <CREResourcesWindow.h>

Inheritance diagram for CREResourcesWindow:
Inheritance graph
Collaboration diagram for CREResourcesWindow:
Collaboration graph

Public Slots

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

Signals

void filtersModified ()
 
void reportsModified ()
 

Public Member Functions

 CREResourcesWindow (CREMapInformationManager *store, QuestManager *quests, MessageManager *messages, ResourcesManager *resources, ScriptFileManager *scripts, DisplayMode mode=DisplayAll)
 
void deleteQuest (Quest *quest)
 
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 fillFormulae ()
 
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
 
QuestManagermyQuests
 
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 ( CREMapInformationManager store,
QuestManager quests,
MessageManager messages,
ResourcesManager resources,
ScriptFileManager scripts,
DisplayMode  mode = DisplayAll 
)
CREResourcesWindow::~CREResourcesWindow ( )
virtual

Definition at line 121 of file CREResourcesWindow.cpp.

References myDisplayedItems, and myTreeItems.

Member Function Documentation

void CREResourcesWindow::addMessage ( bool  )
protectedslot

Definition at line 890 of file CREResourcesWindow.cpp.

References fillData(), MessageManager::messages(), myMessages, and MessageFile::setModified().

Referenced by treeCustomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 882 of file CREResourcesWindow.cpp.

References fillData(), myQuests, QuestManager::quests(), and Quest::setCode().

Referenced by treeCustomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::clearFilter ( )
protectedslot

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

void CREResourcesWindow::commitData ( )
slot

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

void CREResourcesWindow::deleteQuest ( Quest quest)
Todo:
doesn't work for some reason, signal issue probably

Definition at line 872 of file CREResourcesWindow.cpp.

Referenced by CRETreeItemQuest::deleteQuest().

Here is the caller graph for this function:

void CREResourcesWindow::fillAnimations ( )
protected

Definition at line 243 of file CREResourcesWindow.cpp.

References addPanel(), ResourcesManager::allAnimations(), ResourcesManager::animation(), CREUtils::animationNode(), animations, myResources, myTree, and myTreeItems.

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::fillArchetypes ( )
protected

Definition at line 302 of file CREResourcesWindow.cpp.

References addPanel(), ResourcesManager::archetype(), CREUtils::archetypeNode(), ResourcesManager::archetypes(), archt::clone, archt::more, myDisplayedItems, myFilter, myResources, myStore, myTree, myTreeItems, root, CREWrapperObject::setObject(), and CREFilter::showItem().

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::fillArtifacts ( )
protected
void CREResourcesWindow::fillData ( )
protected
void CREResourcesWindow::fillFaces ( )
protected

Definition at line 451 of file CREResourcesWindow.cpp.

References addPanel(), ResourcesManager::face(), CREUtils::faceNode(), ResourcesManager::faces(), myResources, myTree, myTreeItems, and root.

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 835 of file CREResourcesWindow.cpp.

References CRETreeItem::fillContextMenu(), and myTree.

Referenced by treeCustomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 479 of file CREResourcesWindow.cpp.

References addPanel(), CREMapInformation::clone(), DisplayMaps, CREMapInformation::experience, first_region, CREMapInformationManager::getMapsForRegion(), CREUtils::mapNode(), myDisplay, myDisplayedItems, myScripts, myStore, myTree, myTreeItems, regiondef::next, CREUtils::regionNode(), regions, root, and sortMapInformation().

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::fillMessages ( )
protected

Definition at line 570 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::messageNode(), MessageManager::messages(), CREUtils::messagesNode(), myMessages, myQuests, myTree, myTreeItems, and root.

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::fillQuests ( )
protected
void CREResourcesWindow::fillRandomMaps ( )
protected
void CREResourcesWindow::fillScripts ( )
protected

Definition at line 594 of file CREResourcesWindow.cpp.

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

Referenced by fillData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::fillTreasures ( )
protected
void CREResourcesWindow::filtersModified ( )
signal

Referenced by onFilter().

Here is the caller graph for this function:

void CREResourcesWindow::onFilter ( )
protectedslot

Definition at line 623 of file CREResourcesWindow.cpp.

References filtersModified().

Referenced by updateFilters().

Here is the caller graph for this function:

void CREResourcesWindow::onFilterChange ( QObject *  object)
protectedslot

Definition at line 677 of file CREResourcesWindow.cpp.

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

Referenced by CREResourcesWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::onQuickFilter ( )
protectedslot

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

void CREResourcesWindow::onReport ( )
protectedslot

Definition at line 633 of file CREResourcesWindow.cpp.

References reportsModified().

Referenced by updateReports().

Here is the caller graph for this function:

void CREResourcesWindow::onReportChange ( QObject *  object)
protectedslot

Definition at line 735 of file CREResourcesWindow.cpp.

References CREReportDefinition::header(), CREReportDefinition::itemDisplay(), CREReportDefinition::itemSort(), myDisplayedItems, and CREReportDefinition::name().

Referenced by CREResourcesWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::reportsModified ( )
signal

Referenced by onReport().

Here is the caller graph for this function:

const ResourcesManager * CREResourcesWindow::resourcesManager ( ) const

Definition at line 898 of file CREResourcesWindow.cpp.

References myResources.

Referenced by CRETreeItemQuest::questModified().

Here is the caller graph for this function:

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

Definition at line 215 of file CREResourcesWindow.cpp.

References commitData(), CRETreeItem::fillPanel(), CRETreeItem::getPanelName(), myCurrentPanel, and myPanels.

Referenced by CREResourcesWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

void CREResourcesWindow::updateFilters ( )
slot

Definition at line 643 of file CREResourcesWindow.cpp.

References clearFilter(), CREFilterDefinitionManager::filters(), CRESettings::loadFilters(), myFilters, myFiltersMapper, myFiltersMenu, CREFilterDefinition::name(), onFilter(), onQuickFilter(), and settings.

Referenced by CREResourcesWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREResourcesWindow::updateReports ( )
slot

Definition at line 710 of file CREResourcesWindow.cpp.

References CRESettings::loadReports(), myReports, myReportsMapper, myReportsMenu, CREReportDefinition::name(), 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

CREPanel* CREResourcesWindow::myCurrentPanel
protected

Definition at line 58 of file CREResourcesWindow.h.

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

DisplayMode CREResourcesWindow::myDisplay
protected
QList<QObject*> CREResourcesWindow::myDisplayedItems
protected
CREFilter CREResourcesWindow::myFilter
protected
QPushButton* CREResourcesWindow::myFilterButton
protected
CREFilterDefinitionManager CREResourcesWindow::myFilters
protected

Definition at line 72 of file CREResourcesWindow.h.

Referenced by updateFilters().

QSignalMapper CREResourcesWindow::myFiltersMapper
protected

Definition at line 71 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

QMenu* CREResourcesWindow::myFiltersMenu
protected

Definition at line 70 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

MessageManager* CREResourcesWindow::myMessages
protected

Definition at line 63 of file CREResourcesWindow.h.

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

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

Definition at line 59 of file CREResourcesWindow.h.

Referenced by addPanel(), and tree_currentItemChanged().

QuestManager* CREResourcesWindow::myQuests
protected

Definition at line 62 of file CREResourcesWindow.h.

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

CREReportDefinitionManager CREResourcesWindow::myReports
protected

Definition at line 75 of file CREResourcesWindow.h.

Referenced by updateReports().

QSignalMapper CREResourcesWindow::myReportsMapper
protected

Definition at line 74 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

QMenu* CREResourcesWindow::myReportsMenu
protected

Definition at line 73 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

ResourcesManager* CREResourcesWindow::myResources
protected
ScriptFileManager* CREResourcesWindow::myScripts
protected

Definition at line 65 of file CREResourcesWindow.h.

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

QSplitter* CREResourcesWindow::mySplitter
protected

Definition at line 60 of file CREResourcesWindow.h.

Referenced by addPanel(), and CREResourcesWindow().

CREMapInformationManager* CREResourcesWindow::myStore
protected

Definition at line 61 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), fillArchetypes(), fillMaps(), and fillRandomMaps().

QTreeWidget* CREResourcesWindow::myTree
protected
QList<CRETreeItem*> CREResourcesWindow::myTreeItems
protected

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