Crossfire Server, Trunk
TreasureListComboBox Class Reference

#include <TreasureListComboBox.h>

+ Inheritance diagram for TreasureListComboBox:
+ Collaboration diagram for TreasureListComboBox:

Public Member Functions

const treasurelistlist () const
 
void setList (const treasurelist *list)
 
 TreasureListComboBox (QWidget *parent, bool allowNone)
 

Properties

const treasurelist list
 

Detailed Description

Combobox displaying a list of treasure lists, allowing selection and search.

Definition at line 23 of file TreasureListComboBox.h.

Constructor & Destructor Documentation

◆ TreasureListComboBox()

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

Standard constructor.

Parameters
parentancestor of this widget.
allowNonewhether 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().

+ Here is the call graph for this function:

Member Function Documentation

◆ list()

const treasurelist* TreasureListComboBox::list ( ) const

Get the selected treasure list.

Returns
selected face, nullptr if no list is selected.

◆ setList()

void TreasureListComboBox::setList ( const treasurelist list)

Set the selected list.

Parameters
listlist to select.

Definition at line 37 of file TreasureListComboBox.cpp.

References list.

Referenced by TreasurePanel::dropEvent().

+ Here is the caller graph for this function:

Property Documentation

◆ list

const treasurelist * TreasureListComboBox::list
readwrite

Definition at line 26 of file TreasureListComboBox.h.

Referenced by setList(), and TreasureListComboBox().


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