Crossfire Server, Trunk
|
#include <ArchetypeComboBox.h>
Public Member Functions | |
const archetype * | arch () const |
ArchetypeComboBox (QWidget *parent, bool allowNone) | |
void | setArch (const archetype *arch) |
Properties | |
const archetype | arch |
Combobox displaying a list of archetypes, allowing selection and search.
Definition at line 23 of file ArchetypeComboBox.h.
ArchetypeComboBox::ArchetypeComboBox | ( | QWidget * | parent, |
bool | allowNone | ||
) |
Standard constructor.
parent | ancestor of this widget. |
allowNone | whether 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.
const archetype* ArchetypeComboBox::arch | ( | ) | const |
Get the selected archetype.
void ArchetypeComboBox::setArch | ( | const archetype * | arch | ) |
Set the selected archetype.
arch | archetype to select, may be null. |
Definition at line 41 of file ArchetypeComboBox.cpp.
References arch.
Referenced by TreasurePanel::dropEvent().
|
readwrite |
Definition at line 26 of file ArchetypeComboBox.h.
Referenced by ArchetypeComboBox(), CRECombatSimulator::fight(), and setArch().