diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 01:22:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 01:22:29 +0000 |
commit | 861e9cefb3c31f1cab46ddb068af7a3648f45b4a (patch) | |
tree | 2efbc4cf44063706f8bd6b787f55a92c57290fbb /src/querystring_gui.h | |
parent | 9907742a0f73bdbbf578cd2b6c424b80d254fed1 (diff) | |
download | openttd-861e9cefb3c31f1cab46ddb068af7a3648f45b4a.tar.xz |
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
Diffstat (limited to 'src/querystring_gui.h')
-rw-r--r-- | src/querystring_gui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/querystring_gui.h b/src/querystring_gui.h index 52bcc24df..0a11c986c 100644 --- a/src/querystring_gui.h +++ b/src/querystring_gui.h @@ -16,6 +16,7 @@ enum HandleEditBoxResult HEBR_EDITING = 0, // Other key pressed. HEBR_CONFIRM, // Return or enter key pressed. HEBR_CANCEL, // Escape key pressed. + HEBR_NOT_FOCUSED, // Edit box widget not focused. }; /** @@ -43,6 +44,7 @@ struct QueryString { free((void*)this->orig); } + bool HasEditBoxFocus(const Window *w, int wid) const; void DrawEditBox(Window *w, int wid); void HandleEditBox(Window *w, int wid); HandleEditBoxResult HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state); |