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 13 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 6 of file TreasureListComboBox.cpp.

References AssetsCollection< T, Key >::each(), getManager(), CREPixmap::getTreasureIcon(), CREPixmap::getTreasureOneIcon(), list, treasureliststruct::name, guildbuy::names, treasureliststruct::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 25 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 16 of file TreasureListComboBox.h.

Referenced by setList(), and TreasureListComboBox().


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