Crossfire Server, Trunk
CREResourcesWindow Class Reference

#include <CREResourcesWindow.h>

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

Public Slots

void updateFilters ()
 

Signals

void filtersModified ()
 

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 onExportAsCsv ()
 
void onFilter ()
 
void onFilterChange (QObject *object)
 
void onQuickFilter ()
 
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
 
ResourcesManagermyResources
 
ScriptFileManagermyScripts
 
QStackedLayout * myStackedPanels
 
CREMapInformationManagermyStore
 
QTreeView * myTree
 
QModelIndex myTreeRoot
 

Detailed Description

Definition at line 30 of file CREResourcesWindow.h.

Constructor & Destructor Documentation

◆ CREResourcesWindow()

◆ ~CREResourcesWindow()

CREResourcesWindow::~CREResourcesWindow ( )
virtual

Definition at line 175 of file CREResourcesWindow.cpp.

References myPanels.

Member Function Documentation

◆ addMessage

void CREResourcesWindow::addMessage ( bool  )
protectedslot

Definition at line 360 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 207 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 273 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 180 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:

◆ onExportAsCsv

void CREResourcesWindow::onExportAsCsv ( )
protectedslot

Definition at line 292 of file CREResourcesWindow.cpp.

References givecontents::contents, disinfect::count, mad_mage_user::file, myModel, myTree, myTreeRoot, and root.

Referenced by CREResourcesWindow().

+ Here is the caller graph for this function:

◆ onFilter

void CREResourcesWindow::onFilter ( )
protectedslot

Definition at line 214 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 258 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 265 of file CREResourcesWindow.cpp.

References QuickFilterDialog::filter(), ScriptFilterAssetModel::filter(), myModel, and setFilter().

Referenced by updateFilters().

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

◆ rootIndex()

int CREResourcesWindow::rootIndex ( ) const
inline

Definition at line 38 of file CREResourcesWindow.h.

References myTreeRoot.

◆ setFilter()

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

Definition at line 277 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 327 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 224 of file CREResourcesWindow.cpp.

References disinfect::a, clearFilter(), dialogc::dialog, 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:

Field Documentation

◆ myCurrentPanel

AssetWrapperPanel* CREResourcesWindow::myCurrentPanel
protected

Definition at line 50 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and currentRowChanged().

◆ myEngine

CREScriptEngine CREResourcesWindow::myEngine
protected

Definition at line 61 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myFilterButton

QPushButton* CREResourcesWindow::myFilterButton
protected

Definition at line 57 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and setFilter().

◆ myFilters

CREFilterDefinitionManager CREResourcesWindow::myFilters
protected

Definition at line 60 of file CREResourcesWindow.h.

Referenced by updateFilters().

◆ myFiltersMapper

QSignalMapper CREResourcesWindow::myFiltersMapper
protected

Definition at line 59 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myFiltersMenu

QMenu* CREResourcesWindow::myFiltersMenu
protected

Definition at line 58 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and updateFilters().

◆ myMessages

MessageManager* CREResourcesWindow::myMessages
protected

Definition at line 54 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 51 of file CREResourcesWindow.h.

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

◆ myResources

ResourcesManager* CREResourcesWindow::myResources
protected

Definition at line 55 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myScripts

ScriptFileManager* CREResourcesWindow::myScripts
protected

Definition at line 56 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myStackedPanels

QStackedLayout* CREResourcesWindow::myStackedPanels
protected

Definition at line 52 of file CREResourcesWindow.h.

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

◆ myStore

CREMapInformationManager* CREResourcesWindow::myStore
protected

Definition at line 53 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow().

◆ myTree

QTreeView* CREResourcesWindow::myTree
protected

Definition at line 48 of file CREResourcesWindow.h.

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

◆ myTreeRoot

QModelIndex CREResourcesWindow::myTreeRoot
protected

Definition at line 49 of file CREResourcesWindow.h.

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


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