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)


const archetype arch

Detailed Description

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

Definition at line 23 of file ArchetypeComboBox.h.

Constructor & Destructor Documentation

◆ ArchetypeComboBox()

ArchetypeComboBox::ArchetypeComboBox ( QWidget *  parent,
bool  allowNone 

Standard constructor.

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

Definition at line 18 of file ArchetypeComboBox.cpp.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ arch()

const archetype* ArchetypeComboBox::arch ( ) const

Get the selected archetype.

selected face, nullptr if no list is selected.

◆ setArch()

void ArchetypeComboBox::setArch ( const archetype arch)

Set the selected archetype.

archarchetype to select, may be null.

Definition at line 41 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

Definition at line 26 of file ArchetypeComboBox.h.

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

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