Planeshift
Public Member Functions

EEditSelectList Class Reference

A dialog window to select from a list of values. More...

#include <eeditselectlist.h>

List of all members.

Public Member Functions

 EEditSelectList ()
virtual bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
virtual void OnListAction (pawsListBox *selected, int status)
 Called whenever an item in a child list box is selected.
virtual bool PostSetup ()
 This is called after the widget and all of it's children have been created.
void Select (csString *list, size_t listCount, const csString &defaultValue, EEditInputboxManager::iSelectList *callback, const csVector2 &pos)
 Pops up the select list dialog.
virtual ~EEditSelectList ()

Detailed Description

A dialog window to select from a list of values.

Definition at line 35 of file eeditselectlist.h.


Constructor & Destructor Documentation

EEditSelectList::EEditSelectList ( )
virtual EEditSelectList::~EEditSelectList ( ) [virtual]

Member Function Documentation

virtual bool EEditSelectList::OnButtonPressed ( int  button,
int  keyModifier,
pawsWidget widget 
) [virtual]

Called whenever a button is pressed.

Parameters:
buttonThe button pressed.
keyModifierModifier key in effect.
widgetThe widget the button belongs to.
Returns:
bool Parent's result or FALSE if no parent.

Reimplemented from pawsWidget.

virtual void EEditSelectList::OnListAction ( pawsListBox selected,
int  status 
) [virtual]

Called whenever an item in a child list box is selected.

Parameters:
selectedThe listbox that has the item selected.
statusFrom listbox when a row is selected.

Reimplemented from pawsWidget.

virtual bool EEditSelectList::PostSetup ( ) [virtual]

This is called after the widget and all of it's children have been created.

Remarks:
This can be useful for widgets that want to get pointers to some of it's children for quick access.

Reimplemented from pawsWidget.

void EEditSelectList::Select ( csString *  list,
size_t  listCount,
const csString &  defaultValue,
EEditInputboxManager::iSelectList callback,
const csVector2 &  pos 
)

Pops up the select list dialog.

Parameters:
listthe list of possible values.
listCountthe number of possible values.
defaultValuethe default value.
callbacka pointer to the callback that should be called on selection.
posSelected position.

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