Crossfire Server, Trunk
QuestComboBox Class Reference

#include <QuestComboBox.h>

+ Inheritance diagram for QuestComboBox:
+ Collaboration diagram for QuestComboBox:

Public Member Functions

const quest_definitionquest () const
 
 QuestComboBox (QWidget *parent, bool allowNone)
 
void setQuest (const quest_definition *quest)
 
virtual ~QuestComboBox ()
 

Properties

const quest_definition quest
 

Detailed Description

Combobox displaying a list of quests, allowing selection and search.

Definition at line 23 of file QuestComboBox.h.

Constructor & Destructor Documentation

◆ QuestComboBox()

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

Standard constructor.

Parameters
parentancestor of this widget.
allowNonewhether to allow "(none)" face.

Definition at line 20 of file QuestComboBox.cpp.

References AssetsCollection< T, Key >::each(), CREPixmap::getIcon(), getManager(), names, and AssetsManager::quests().

+ Here is the call graph for this function:

◆ ~QuestComboBox()

QuestComboBox::~QuestComboBox ( )
virtual

Definition at line 41 of file QuestComboBox.cpp.

Member Function Documentation

◆ quest()

const quest_definition* QuestComboBox::quest ( ) const

Get the selected quest.

Returns
selected quest, nullptr if no face is selected.

◆ setQuest()

void QuestComboBox::setQuest ( const quest_definition quest)

Set the selected quest.

Parameters
questquest to select.

Definition at line 45 of file QuestComboBox.cpp.

Property Documentation

◆ quest

const quest_definition * QuestComboBox::quest
readwrite

Definition at line 26 of file QuestComboBox.h.


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