Planeshift
Public Member Functions

EEditShortcutsToolbox Class Reference

This manages the shortcuts. More...

#include <eeditshortcutstoolbox.h>

List of all members.

Public Member Functions

void AddShortcut (const char *name)
 Adds a shortcut command to the list.
 EEditShortcutsToolbox ()
void ExecuteShortcutCommand (int key, int modifiers=0) const
 Executes all commands associated with the given key+modifiers combination.
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 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.
virtual void Show ()
 Makes widget visible and brings it to the front.
virtual void Update (unsigned int elapsed)
 Updates the toobox.
virtual ~EEditShortcutsToolbox ()

Detailed Description

This manages the shortcuts.

Definition at line 47 of file eeditshortcutstoolbox.h.


Constructor & Destructor Documentation

EEditShortcutsToolbox::EEditShortcutsToolbox ( )
virtual EEditShortcutsToolbox::~EEditShortcutsToolbox ( ) [virtual]

Member Function Documentation

void EEditShortcutsToolbox::AddShortcut ( const char *  name)

Adds a shortcut command to the list.

Parameters:
nameThe name of the shortcut.
void EEditShortcutsToolbox::ExecuteShortcutCommand ( int  key,
int  modifiers = 0 
) const

Executes all commands associated with the given key+modifiers combination.

Parameters:
keyThe keycode of the main key.
modifiersThe modifiers.
virtual const char* EEditShortcutsToolbox::GetName ( ) const [virtual]

Gets the name of the toolbox.

Returns:
the toolbox name

Implements EEditToolbox.

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

Gets the toolbox type.

Returns:
the toolbox type

Implements EEditToolbox.

virtual bool EEditShortcutsToolbox::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 EEditShortcutsToolbox::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 EEditShortcutsToolbox::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.

virtual void EEditShortcutsToolbox::Show ( ) [virtual]

Makes widget visible and brings it to the front.

Sets visible TRUE shows border if present then calls BringToTop() on itself.

Reimplemented from pawsWidget.

virtual void EEditShortcutsToolbox::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: