Crossfire Server, Branches 1.12  R18729
CREResourcesWindow Class Reference

#include <CREResourcesWindow.h>

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

Public Member Functions

 CREResourcesWindow (DisplayMode mode=DisplayAll)
 

Protected Slots

void tree_currentItemChanged (QTreeWidgetItem *, QTreeWidgetItem *)
 

Protected Member Functions

void addPanel (QString name, QWidget *panel)
 
void fillAnimations ()
 
void fillArchetypes ()
 
void fillArtifacts ()
 
void fillFaces ()
 
void fillFormulae ()
 
void fillTreasures ()
 

Protected Attributes

QWidget * myCurrentPanel
 
QHash< QString, QPointer
< QWidget > > 
myPanels
 
QSplitter * mySplitter
 
QTreeWidget * myTree
 

Detailed Description

Definition at line 9 of file CREResourcesWindow.h.

Constructor & Destructor Documentation

Member Function Documentation

void CREResourcesWindow::addPanel ( QString  name,
QWidget *  panel 
)
protected

Definition at line 253 of file CREResourcesWindow.cpp.

References myPanels, and mySplitter.

Referenced by fillAnimations(), fillArchetypes(), fillArtifacts(), fillFaces(), fillFormulae(), and fillTreasures().

+ Here is the caller graph for this function:

void CREResourcesWindow::fillAnimations ( )
protected

Definition at line 114 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::animationNode(), animations, myTree, and num_animations.

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CREResourcesWindow::fillArchetypes ( )
protected

Definition at line 161 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::archetypeNode(), first_archetype, archt::more, myTree, archt::next, and root.

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CREResourcesWindow::fillArtifacts ( )
protected

Definition at line 211 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::artifactNode(), first_artifactlist, get_typedata(), artifactliststruct::items, myTree, typedata::name, artifactstruct::next, artifactliststruct::next, root, and artifactliststruct::type.

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CREResourcesWindow::fillFaces ( )
protected

Definition at line 235 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::faceNode(), myTree, new_faces, nrofpixmaps, and root.

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CREResourcesWindow::fillFormulae ( )
protected

Definition at line 184 of file CREResourcesWindow.cpp.

References addPanel(), CREUtils::formulaeNode(), get_formulalist(), recipeliststruct::items, myTree, recipestruct::next, and root.

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CREResourcesWindow::fillTreasures ( )
protected

Definition at line 131 of file CREResourcesWindow.cpp.

References addPanel(), treasurestruct::chance, first_treasurelist, treasureliststruct::items, myTree, treasurestruct::next, treasureliststruct::next, treasureliststruct::total_chance, and CREUtils::treasureNode().

Referenced by CREResourcesWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 87 of file CREResourcesWindow.cpp.

References 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:

Field Documentation

QWidget* CREResourcesWindow::myCurrentPanel
protected

Definition at line 18 of file CREResourcesWindow.h.

Referenced by CREResourcesWindow(), and tree_currentItemChanged().

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

Definition at line 19 of file CREResourcesWindow.h.

Referenced by addPanel(), and tree_currentItemChanged().

QSplitter* CREResourcesWindow::mySplitter
protected

Definition at line 20 of file CREResourcesWindow.h.

Referenced by addPanel(), and CREResourcesWindow().

QTreeWidget* CREResourcesWindow::myTree
protected

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