#include <npclistdialog.h>
Definition at line 37 of file npclistdialog.h.
Public Member Functions | |
NpcListDialog () | |
Constructor. | |
void | action (const gcn::ActionEvent &event) |
Called when receiving actions from the widgets. | |
int | getNumberOfElements () |
Returns the number of items in the choices list. | |
std::string | getElementAt (int i) |
Returns the name of item number i of the choices list. | |
void | addItem (const std::string &) |
Adds an item to the option list. | |
void | parseItems (const std::string &itemString) |
Fills the options list for an NPC dialog. | |
void | reset () |
Resets the list by removing all items. | |
void | setVisible (bool visible) |
Overloads window setVisible by Guichan to allow sticky window handling. | |
void | requestFocus () |
Requests the listbox to take focus for input and sets window width to the last known setting. | |
Private Attributes | |
gcn::ListBox * | mItemList |
std::vector< std::string > | mItems |
NpcListDialog::NpcListDialog | ( | ) |
void NpcListDialog::action | ( | const gcn::ActionEvent & | event | ) |
int NpcListDialog::getNumberOfElements | ( | ) |
std::string NpcListDialog::getElementAt | ( | int | i | ) |
Returns the name of item number i of the choices list.
Definition at line 79 of file npclistdialog.cpp.
void NpcListDialog::addItem | ( | const std::string & | item | ) |
void NpcListDialog::parseItems | ( | const std::string & | itemString | ) |
Fills the options list for an NPC dialog.
itemString | A string with the options separated with colons. |
Definition at line 89 of file npclistdialog.cpp.
void NpcListDialog::reset | ( | ) |
void NpcListDialog::setVisible | ( | bool | visible | ) |
Overloads window setVisible by Guichan to allow sticky window handling.
Reimplemented from Window.
Definition at line 137 of file npclistdialog.cpp.
void NpcListDialog::requestFocus | ( | ) |
Requests the listbox to take focus for input and sets window width to the last known setting.
Definition at line 146 of file npclistdialog.cpp.
gcn::ListBox* NpcListDialog::mItemList [private] |
Definition at line 89 of file npclistdialog.h.
std::vector<std::string> NpcListDialog::mItems [private] |
Definition at line 91 of file npclistdialog.h.