NpcListDialog Class Reference
[User interface related classes (windows, dialogs)]

#include <npclistdialog.h>

Inheritance diagram for NpcListDialog:

Window

List of all members.


Detailed Description

The npc list dialog.

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

Constructor & Destructor Documentation

NpcListDialog::NpcListDialog (  ) 

Constructor.

See also:
Window::Window

Definition at line 41 of file npclistdialog.cpp.


Member Function Documentation

void NpcListDialog::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from the widgets.

Definition at line 105 of file npclistdialog.cpp.

int NpcListDialog::getNumberOfElements (  ) 

Returns the number of items in the choices list.

Definition at line 74 of file npclistdialog.cpp.

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  ) 

Adds an item to the option list.

Definition at line 84 of file npclistdialog.cpp.

void NpcListDialog::parseItems ( const std::string &  itemString  ) 

Fills the options list for an NPC dialog.

Parameters:
itemString A string with the options separated with colons.

Definition at line 89 of file npclistdialog.cpp.

void NpcListDialog::reset (  ) 

Resets the list by removing all items.

Definition at line 98 of file npclistdialog.cpp.

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.


Member Data Documentation

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.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5