Crossfire Server, Trunk
FaceComboBox Class Reference

#include <FaceComboBox.h>

+ Inheritance diagram for FaceComboBox:
+ Collaboration diagram for FaceComboBox:

Public Member Functions

const Faceface () const
 FaceComboBox (QWidget *parent, bool allowNone)
void setFace (const Face *face)
virtual ~FaceComboBox ()

Detailed Description

Combobox displaying a list of faces, allowing selection and search.

Definition at line 11 of file FaceComboBox.h.

Constructor & Destructor Documentation

◆ FaceComboBox()

FaceComboBox::FaceComboBox ( QWidget *  parent,
bool  allowNone 

Standard constructor.

parentancestor of this widget.
allowNonewhether to allow "(none)" face.

Definition at line 6 of file FaceComboBox.cpp.

References AssetsCollection< T, Key >::each(), face(), AssetsManager::faces(), CREPixmap::getIcon(), getManager(), Face::name, guildbuy::names, and Face::number.

+ Here is the call graph for this function:

◆ ~FaceComboBox()

FaceComboBox::~FaceComboBox ( )

Definition at line 28 of file FaceComboBox.cpp.

Member Function Documentation

◆ face()

const Face * FaceComboBox::face ( ) const

Get the selected face.

selected face, nullptr if no face is selected.

Definition at line 37 of file FaceComboBox.cpp.

Referenced by CREQuestPanel::commitData(), FaceComboBox(), CRESmoothFaceMaker::makeSmooth(), and setFace().

+ Here is the caller graph for this function:

◆ setFace()

void FaceComboBox::setFace ( const Face face)

Set the selected face.

faceface to select.

Definition at line 32 of file FaceComboBox.cpp.

References face().

Referenced by CREGeneralMessagePanel::setItem(), CREQuestPanel::setItem(), and CRESmoothFaceMaker::setSelectedFace().

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