20 #ifndef PAWS_KEY_SELECT_BOX_HEADER 21 #define PAWS_KEY_SELECT_BOX_HEADER 41 bool Setup(iDocumentNode* node);
51 void SetKey(
int _key,
int _modifiers=0);
70 void SetText(
const char* keyText);
bool Setup(iDocumentNode *node)
Setup this widget.
const char * GetText() const
Gets a text representation of the key combination.
void SetKey(int _key, int _modifiers=0)
Sets the key for this key select box.
A widget that can be used to get a key combination (alt+a, ctrl+s) and display it in text format...
virtual int GetBorderStyle()
This returns the BORDER_BUMP style.
void CalcTextPos()
Calculates the position of the text after centering.
void Draw()
Draws the widget and all of it's children.
csString text
String representing the key combination.
virtual bool GetFocusOverridesControls() const
Test if the widget should intercept all key presses.
void SetText(const char *keyText)
Sets the key combination of this text box by parsing a representing key string.
CREATE_PAWS_FACTORY(pawsKeySelectBox)
bool OnKeyDown(utf32_char keyCode, utf32_char keyChar, int modifiers)
Process keydown messages.
virtual ~pawsKeySelectBox()