Planeshift
|
A widget that can be used to select key and display combinations. More...
#include <pawskeyselectbox.h>
Public Member Functions | |
void | Draw () |
Draws the widget and all of it's children. | |
virtual int | GetBorderStyle () |
This returns the BORDER_BUMP style. | |
virtual bool | GetFocusOverridesControls () const |
Test if the widget should intercept all key presses. | |
int | GetKey () const |
int | GetModifiers () const |
const char * | GetText () const |
Gets a text representation of the key combination. | |
bool | OnKeyDown (utf32_char keyCode, utf32_char keyChar, int modifiers) |
Process keydown messages. | |
pawsKeySelectBox () | |
pawsKeySelectBox (const pawsKeySelectBox &origin) | |
void | SetKey (int _key, int _modifiers=0) |
Sets the key for this key select box. | |
void | SetText (const char *keyText) |
Sets the key combination of this text box by parsing a representing key string. | |
bool | Setup (iDocumentNode *node) |
Setup this widget. | |
virtual | ~pawsKeySelectBox () |
Protected Member Functions | |
void | CalcTextPos () |
Calculates the position of the text after centering. | |
Protected Attributes | |
int | key |
int | modifiers |
csString | text |
String representing the key combination. | |
int | textX |
int | textY |
A widget that can be used to select key and display combinations.
Definition at line 32 of file pawskeyselectbox.h.
pawsKeySelectBox::pawsKeySelectBox | ( | ) | [inline] |
Definition at line 35 of file pawskeyselectbox.h.
virtual pawsKeySelectBox::~pawsKeySelectBox | ( | ) | [virtual] |
pawsKeySelectBox::pawsKeySelectBox | ( | const pawsKeySelectBox & | origin | ) |
void pawsKeySelectBox::CalcTextPos | ( | ) | [protected] |
Calculates the position of the text after centering.
void pawsKeySelectBox::Draw | ( | ) | [virtual] |
Draws the widget and all of it's children.
Reimplemented from pawsWidget.
virtual int pawsKeySelectBox::GetBorderStyle | ( | ) | [virtual] |
This returns the BORDER_BUMP style.
Reimplemented from pawsWidget.
virtual bool pawsKeySelectBox::GetFocusOverridesControls | ( | ) | const [inline, virtual] |
Test if the widget should intercept all key presses.
Reimplemented from pawsWidget.
Definition at line 74 of file pawskeyselectbox.h.
int pawsKeySelectBox::GetKey | ( | ) | const [inline] |
Definition at line 53 of file pawskeyselectbox.h.
int pawsKeySelectBox::GetModifiers | ( | ) | const [inline] |
Definition at line 57 of file pawskeyselectbox.h.
const char* pawsKeySelectBox::GetText | ( | ) | const |
Gets a text representation of the key combination.
bool pawsKeySelectBox::OnKeyDown | ( | utf32_char | keyCode, |
utf32_char | keyChar, | ||
int | modifiers | ||
) | [virtual] |
Process keydown messages.
keyCode | The code for the pressed key. |
keyChar | The key pressed. |
modifiers | Used to modify tab behavior. |
Reimplemented from pawsWidget.
Sets the key for this key select box.
_key | The new key. |
_modifiers | The new modifiers. |
void pawsKeySelectBox::SetText | ( | const char * | keyText | ) |
Sets the key combination of this text box by parsing a representing key string.
keyText | The string representation of the key combination. |
bool pawsKeySelectBox::Setup | ( | iDocumentNode * | ) | [virtual] |
Setup this widget.
Reimplemented from pawsWidget.
int pawsKeySelectBox::key [protected] |
Definition at line 88 of file pawskeyselectbox.h.
int pawsKeySelectBox::modifiers [protected] |
Definition at line 89 of file pawskeyselectbox.h.
csString pawsKeySelectBox::text [protected] |
String representing the key combination.
Definition at line 86 of file pawskeyselectbox.h.
int pawsKeySelectBox::textX [protected] |
Definition at line 91 of file pawskeyselectbox.h.
int pawsKeySelectBox::textY [protected] |
Definition at line 91 of file pawskeyselectbox.h.