Crossfire Server, Trunk
CREResourcesWindow Class Reference

#include <CREResourcesWindow.h>

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

Public Slots

void updateFilters ()
 
void updateReports ()
 

Signals

void filtersModified ()
 
void reportsModified ()
 

Public Member Functions

 CREResourcesWindow (CREMapInformationManager *store, MessageManager *messages, ResourcesManager *resources, ScriptFileManager *scripts, AssetModel *model, const QModelIndex &root, QWidget *parent)
 
int rootIndex () const
 
virtual ~CREResourcesWindow ()
 

Protected Slots

void addMessage (bool)
 
void addQuest (bool)
 
void clearFilter ()
 
void currentRowChanged (const QModelIndex &current, const QModelIndex &previous)
 
void onFilter ()
 
void onFilterChange (QObject *object)
 
void onQuickFilter ()
 
void onReport ()
 
void onReportChange (QObject *object)
 
void treeCustomMenu (const QPoint &pos)
 

Protected Member Functions

void addPanel (QString name, AssetWrapperPanel *panel)
 
void setFilter (const QString &filter, const QString &name)
 

Protected Attributes

AssetWrapperPanelmyCurrentPanel
 
CREScriptEngine myEngine
 
QPushButton * myFilterButton
 
CREFilterDefinitionManager myFilters
 
QSignalMapper myFiltersMapper
 
QMenu * myFiltersMenu
 
MessageManagermyMessages
 
ScriptFilterAssetModelmyModel
 
QHash< QString, QPointer< AssetWrapperPanel > > myPanels
 
CREReportDefinitionManager myReports
 
QSignalMapper myReportsMapper
 
QMenu * myReportsMenu
 
ResourcesManagermyResources
 
ScriptFileManagermyScripts
 
QStackedLayout * myStackedPanels
 
CREMapInformationManagermyStore
 
QTreeView * myTree
 
QModelIndex myTreeRoot
 

Detailed Description

Definition at line 31 of file CREResourcesWindow.h.

Constructor & Destructor Documentation

◆ CREResourcesWindow()

◆ ~CREResourcesWindow()

CREResourcesWindow::~CREResourcesWindow ( )
virtual

Definition at line 162 of file CREResourcesWindow.cpp.

References myPanels.

Member Function Documentation

◆ addMessage

void CREResourcesWindow::addMessage ( bool  )
protectedslot

Definition at line 465 of file CREResourcesWindow.cpp.

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

+ Here is the call graph for this function:

◆ addPanel()

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

Definition at line 194 of file CREResourcesWindow.cpp.

References myPanels, myStackedPanels, and give::name.

Referenced by CREResourcesWindow().

+ Here is the caller graph for this function:

◆ addQuest

void CREResourcesWindow::addQuest ( bool  )
protectedslot

◆ clearFilter

void CREResourcesWindow::clearFilter ( )
protectedslot

Definition at line 270 of file CREResourcesWindow.cpp.

References setFilter().

Referenced by updateFilters().

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

◆ currentRowChanged

void CREResourcesWindow::currentRowChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedslot

Definition at line 167 of file CREResourcesWindow.cpp.

References replace::current, myCurrentPanel, myModel, myPanels, and myStackedPanels.

Referenced by CREResourcesWindow(), and setFilter().

+ Here is the caller graph for this function:

◆ filtersModified

void CREResourcesWindow::filtersModified ( )
signal

Referenced by onFilter().

+ Here is the caller graph for this function:

◆ onFilter

void CREResourcesWindow::onFilter ( )
protectedslot

Definition at line 201 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 255 of file CREResourcesWindow.cpp.

References 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 262 of file CREResourcesWindow.cpp.

References ScriptFilterAssetModel::filter(), myModel, and 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 211 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 314 of file CREResourcesWindow.cpp.

References disinfect::count, hall_of_fame::header, myModel, myTree, 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:

◆ rootIndex()

int CREResourcesWindow::rootIndex ( ) const
inline

Definition at line 39 of file CREResourcesWindow.h.

References myTreeRoot.

◆ setFilter()

void CREResourcesWindow::setFilter ( const QString &  filter,
const QString &  name 
)
protected

Definition at line 274 of file CREResourcesWindow.cpp.

References currentRowChanged(), myFilterButton, myModel, myTree, myTreeRoot, give::name, root, and ScriptFilterAssetModel::setFilter().

Referenced by clearFilter(), onFilterChange(), and onQuickFilter().

+ 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 432 of file CREResourcesWindow.cpp.

References npc_dialog::index, myModel, and myTree.

Referenced by CREResourcesWindow().

+ Here is the caller graph for this function:

◆ updateFilters

void CREResourcesWindow::updateFilters ( )
slot

Definition at line 221 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 289 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

AssetWrapperPanel* CREResourcesWindow::myCurrentPanel
protected

Definition at line 53 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and currentRowChanged().

◆ myEngine

CREScriptEngine CREResourcesWindow::myEngine
protected

Definition at line 67 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myFilterButton

QPushButton* CREResourcesWindow::myFilterButton
protected

Definition at line 60 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and setFilter().

◆ myFilters

CREFilterDefinitionManager CREResourcesWindow::myFilters
protected

Definition at line 63 of file CREResourcesWindow.h.

Referenced by updateFilters().

◆ myFiltersMapper

QSignalMapper CREResourcesWindow::myFiltersMapper
protected

Definition at line 62 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myFiltersMenu

QMenu* CREResourcesWindow::myFiltersMenu
protected

Definition at line 61 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myMessages

MessageManager* CREResourcesWindow::myMessages
protected

Definition at line 57 of file CREResourcesWindow.h.

Referenced by addMessage(), and CREResourcesWindow().

◆ myModel

ScriptFilterAssetModel* CREResourcesWindow::myModel
protected

◆ myPanels

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

Definition at line 54 of file CREResourcesWindow.h.

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

◆ myReports

CREReportDefinitionManager CREResourcesWindow::myReports
protected

Definition at line 66 of file CREResourcesWindow.h.

Referenced by updateReports().

◆ myReportsMapper

QSignalMapper CREResourcesWindow::myReportsMapper
protected

Definition at line 65 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

◆ myReportsMenu

QMenu* CREResourcesWindow::myReportsMenu
protected

Definition at line 64 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateReports().

◆ myResources

ResourcesManager* CREResourcesWindow::myResources
protected

Definition at line 58 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myScripts

ScriptFileManager* CREResourcesWindow::myScripts
protected

Definition at line 59 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myStackedPanels

QStackedLayout* CREResourcesWindow::myStackedPanels
protected

Definition at line 55 of file CREResourcesWindow.h.

Referenced by addPanel(), CREResourcesWindow(), and currentRowChanged().

◆ myStore

CREMapInformationManager* CREResourcesWindow::myStore
protected

Definition at line 56 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myTree

QTreeView* CREResourcesWindow::myTree
protected

Definition at line 51 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), onReportChange(), setFilter(), and treeCustomMenu().

◆ myTreeRoot

QModelIndex CREResourcesWindow::myTreeRoot
protected

Definition at line 52 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), rootIndex(), and setFilter().


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