Crossfire Server, Trunk
CREUtils Class Reference

#include <CREUtils.h>

+ Collaboration diagram for CREUtils:

Static Public Member Functions

static QTreeWidgetItem * archetypeNode (const archetype *arch, QTreeWidgetItem *parent)
 
static QTreeWidgetItem * faceNode (const Face *face, QTreeWidgetItem *parent)
 
static QTreeWidgetItem * faceNode (QTreeWidgetItem *parent)
 
static std::unique_ptr< QMutexLocker > lockCrossfireData ()
 
static QTreeWidgetItem * objectNode (const object *op, QTreeWidgetItem *parent)
 

Detailed Description

Definition at line 21 of file CREUtils.h.

Member Function Documentation

◆ archetypeNode()

QTreeWidgetItem * CREUtils::archetypeNode ( const archetype arch,
QTreeWidgetItem *  parent 
)
static

Definition at line 26 of file CREUtils.cpp.

References archininventory::arch, CREPixmap::getIcon(), and say::item.

Referenced by addArchetypes(), and RecipePanel::updateItem().

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

◆ faceNode() [1/2]

QTreeWidgetItem * CREUtils::faceNode ( const Face face,
QTreeWidgetItem *  parent 
)
static

Definition at line 52 of file CREUtils.cpp.

References CREPixmap::getIcon(), say::item, Face::name, and Face::number.

+ Here is the call graph for this function:

◆ faceNode() [2/2]

QTreeWidgetItem * CREUtils::faceNode ( QTreeWidgetItem *  parent)
static

Definition at line 46 of file CREUtils.cpp.

References say::item.

Referenced by AnimationPanel::updateItem().

+ Here is the caller graph for this function:

◆ lockCrossfireData()

std::unique_ptr< QMutexLocker > CREUtils::lockCrossfireData ( )
static

Definition at line 59 of file CREUtils.cpp.

References g_crossfireLock.

Referenced by RecipeWrapper::displayIcon(), and CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ objectNode()

QTreeWidgetItem * CREUtils::objectNode ( const object op,
QTreeWidgetItem *  parent 
)
static

Definition at line 33 of file CREUtils.cpp.

References CREPixmap::getIcon(), say::item, give::name, give::op, and query_name().

Referenced by CRETreasurePanel::onGenerate().

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

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