Planeshift
Classes | Public Member Functions

EEditLoadMapToolbox Class Reference

This allows loading of a new map. More...

#include <eeditloadmaptoolbox.h>

List of all members.

Classes

class  OnFileSelected
 Callback class for the pawsFileNavigation dialog.

Public Member Functions

 EEditLoadMapToolbox ()
virtual const char * GetName () const
 Gets the name of the toolbox.
virtual size_t GetType () const
 Gets the toolbox type.
virtual bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget)
 Called whenever a button is pressed.
virtual bool PostSetup ()
 This is called after the widget and all of it's children have been created.
void SetMapFile (const char *mapFile)
 Sets the text for the map field.
virtual void Update (unsigned int elapsed)
 Updates the toobox.
virtual ~EEditLoadMapToolbox ()

Detailed Description

This allows loading of a new map.

Definition at line 38 of file eeditloadmaptoolbox.h.


Constructor & Destructor Documentation

EEditLoadMapToolbox::EEditLoadMapToolbox ( )
virtual EEditLoadMapToolbox::~EEditLoadMapToolbox ( ) [virtual]

Member Function Documentation

virtual const char* EEditLoadMapToolbox::GetName ( ) const [virtual]

Gets the name of the toolbox.

Returns:
the toolbox name

Implements EEditToolbox.

virtual size_t EEditLoadMapToolbox::GetType ( ) const [virtual]

Gets the toolbox type.

Returns:
the toolbox type

Implements EEditToolbox.

virtual bool EEditLoadMapToolbox::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 bool EEditLoadMapToolbox::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 EEditLoadMapToolbox::SetMapFile ( const char *  mapFile)

Sets the text for the map field.

Parameters:
mapFileThe new map.
virtual void EEditLoadMapToolbox::Update ( unsigned int  elapsed) [virtual]

Updates the toobox.

Parameters:
elapsedthe time elapsed in milliseconds.

Reimplemented from EEditToolbox.


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