Planeshift
|
This manages the shortcuts. More...
#include <eeditshortcutstoolbox.h>
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 () |
This manages the shortcuts.
Definition at line 47 of file eeditshortcutstoolbox.h.
EEditShortcutsToolbox::EEditShortcutsToolbox | ( | ) |
virtual EEditShortcutsToolbox::~EEditShortcutsToolbox | ( | ) | [virtual] |
void EEditShortcutsToolbox::AddShortcut | ( | const char * | name | ) |
Adds a shortcut command to the list.
name | The name of the shortcut. |
Executes all commands associated with the given key+modifiers combination.
key | The keycode of the main key. |
modifiers | The modifiers. |
virtual const char* EEditShortcutsToolbox::GetName | ( | ) | const [virtual] |
virtual size_t EEditShortcutsToolbox::GetType | ( | ) | const [virtual] |
virtual bool EEditShortcutsToolbox::OnButtonPressed | ( | int | button, |
int | keyModifier, | ||
pawsWidget * | widget | ||
) | [virtual] |
Called whenever a button is pressed.
button | The button pressed. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
virtual void EEditShortcutsToolbox::OnListAction | ( | pawsListBox * | selected, |
int | status | ||
) | [virtual] |
Called whenever an item in a child list box is selected.
selected | The listbox that has the item selected. |
status | From 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.
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.
Updates the toobox.
elapsed | the time elapsed in milliseconds. |
Reimplemented from EEditToolbox.