Planeshift
Classes | Public Member Functions

EEditPositionToolbox Class Reference

This handles the effect position object. More...

#include <eeditpositiontoolbox.h>

List of all members.

Classes

class  OnAnimSelected
 Callback class for the anim selection dialog.
class  OnFileSelected
 Callback class for the pawsFileNavigation dialog.

Public Member Functions

 EEditPositionToolbox ()
void FillAnimList (iSpriteCal3DState *cal3d)
 Fills the animation list with the cal3d animations.
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 SetMeshFile (const csString &file)
 Sets the path to the position's mesh indicator, to be filled in the edit box.
void SetPosition (const csVector3 &pos)
 Sets the position of the actor.
virtual void Update (unsigned int elapsed)
 Updates the toobox.
virtual ~EEditPositionToolbox ()

Detailed Description

This handles the effect position object.

Definition at line 40 of file eeditpositiontoolbox.h.


Constructor & Destructor Documentation

EEditPositionToolbox::EEditPositionToolbox ( )
virtual EEditPositionToolbox::~EEditPositionToolbox ( ) [virtual]

Member Function Documentation

void EEditPositionToolbox::FillAnimList ( iSpriteCal3DState *  cal3d)

Fills the animation list with the cal3d animations.

Parameters:
cal3dthe cal3d state to get the anims from.
virtual const char* EEditPositionToolbox::GetName ( ) const [virtual]

Gets the name of the toolbox.

Returns:
the toolbox name

Implements EEditToolbox.

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

Gets the toolbox type.

Returns:
the toolbox type

Implements EEditToolbox.

virtual bool EEditPositionToolbox::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 EEditPositionToolbox::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 EEditPositionToolbox::SetMeshFile ( const csString &  file)

Sets the path to the position's mesh indicator, to be filled in the edit box.

Parameters:
filethe file path to fill in the mesh edit box.
void EEditPositionToolbox::SetPosition ( const csVector3 &  pos)

Sets the position of the actor.

Parameters:
posThe new position.
virtual void EEditPositionToolbox::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: