Crossfire Server, Trunk
ArchetypeComboBox Class Reference

#include <ArchetypeComboBox.h>

+ Inheritance diagram for ArchetypeComboBox:
+ Collaboration diagram for ArchetypeComboBox:

Public Member Functions

const archetypearch () const
 
 ArchetypeComboBox (QWidget *parent, bool allowNone)
 
void setArch (const archetype *arch)
 

Properties

const archetype arch
 

Detailed Description

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

Definition at line 13 of file ArchetypeComboBox.h.

Constructor & Destructor Documentation

◆ ArchetypeComboBox()

ArchetypeComboBox::ArchetypeComboBox ( QWidget *  parent,
bool  allowNone 
)

Standard constructor.

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

Definition at line 6 of file ArchetypeComboBox.cpp.

References arch, AssetsManager::archetypes(), archt::clone, AssetsCollection< T, Key >::each(), obj::face, CREPixmap::getIcon(), getManager(), archt::head, give::name, obj::name, archt::name, and guildbuy::names.

+ Here is the call graph for this function:

Member Function Documentation

◆ arch()

const archetype* ArchetypeComboBox::arch ( ) const

Get the selected archetype.

Returns
selected face, nullptr if no list is selected.

◆ setArch()

void ArchetypeComboBox::setArch ( const archetype arch)

Set the selected archetype.

Parameters
archarchetype to select, may be null.

Definition at line 29 of file ArchetypeComboBox.cpp.

References arch.

Referenced by TreasurePanel::dropEvent().

+ Here is the caller graph for this function:

Property Documentation

◆ arch

const archetype * ArchetypeComboBox::arch
readwrite

Definition at line 16 of file ArchetypeComboBox.h.

Referenced by ArchetypeComboBox(), CRECombatSimulator::fight(), and setArch().


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