Crossfire Server, Trunk
|
#include <TreasureListComboBox.h>
Public Member Functions | |
const treasurelist * | list () const |
void | setList (const treasurelist *list) |
TreasureListComboBox (QWidget *parent, bool allowNone) | |
Properties | |
const treasurelist | list |
Combobox displaying a list of treasure lists, allowing selection and search.
Definition at line 23 of file TreasureListComboBox.h.
TreasureListComboBox::TreasureListComboBox | ( | QWidget * | parent, |
bool | allowNone | ||
) |
Standard constructor.
parent | ancestor of this widget. |
allowNone | whether to allow "(none)" treasure list. |
Definition at line 18 of file TreasureListComboBox.cpp.
References AssetsCollection< T, Key >::each(), getManager(), CREPixmap::getTreasureIcon(), CREPixmap::getTreasureOneIcon(), list, treasurelist::name, names, treasurelist::total_chance, and AssetsManager::treasures().
const treasurelist* TreasureListComboBox::list | ( | ) | const |
Get the selected treasure list.
void TreasureListComboBox::setList | ( | const treasurelist * | list | ) |
Set the selected list.
list | list to select. |
Definition at line 37 of file TreasureListComboBox.cpp.
References list.
Referenced by TreasurePanel::dropEvent().
|
readwrite |
Definition at line 26 of file TreasureListComboBox.h.
Referenced by setList(), and TreasureListComboBox().