![]() |
Crossfire Resources Editor
|
Combobox displaying a list of archetypes, allowing selection and search. More...
#include <ArchetypeComboBox.h>
Inheritance diagram for ArchetypeComboBox:
Collaboration diagram for ArchetypeComboBox:Public Member Functions | |
| const archetype * | arch () const |
| Get the selected archetype. More... | |
| ArchetypeComboBox (QWidget *parent, bool allowNone) | |
| Standard constructor. More... | |
| void | setArch (const archetype *arch) |
| Set the selected archetype. More... | |
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, CREPixmap::getIcon(), and names.
Here is the call graph for this function:| 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().
Here is the caller graph for this function:
|
readwrite |
Definition at line 26 of file ArchetypeComboBox.h.
Referenced by ArchetypeComboBox(), CRECombatSimulator::fight(), and setArch().