diff options
author | frosch <frosch@openttd.org> | 2013-03-17 13:05:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-03-17 13:05:45 +0000 |
commit | c2c50b0c507d427caa32f71eda009bba95fac684 (patch) | |
tree | f21279587550f7711729c87c56ab67369e6c3799 /src/querystring_gui.h | |
parent | 1ddf5a0786a59431c3092673fd65a7a8aca755a3 (diff) | |
download | openttd-c2c50b0c507d427caa32f71eda009bba95fac684.tar.xz |
(svn r25092) -Codechange: Deduplicate keyboard handling between console and editboxes.
Diffstat (limited to 'src/querystring_gui.h')
-rw-r--r-- | src/querystring_gui.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/querystring_gui.h b/src/querystring_gui.h index 6ec93ffd9..b2c91f354 100644 --- a/src/querystring_gui.h +++ b/src/querystring_gui.h @@ -17,18 +17,6 @@ #include "window_gui.h" /** - * Return values for HandleEditBoxKey - */ -enum HandleEditBoxResult -{ - HEBR_EDITING, ///< Editbox content changed. - HEBR_CURSOR, ///< Non-text change, e.g. cursor position. - HEBR_CONFIRM, ///< Return or enter key pressed. - HEBR_CANCEL, ///< Escape key pressed. - HEBR_NOT_FOCUSED, ///< Edit box widget not focused. -}; - -/** * Data stored about a string that can be modified in the GUI */ struct QueryString { @@ -65,7 +53,6 @@ public: void DrawEditBox(const Window *w, int wid) const; void ClickEditBox(Window *w, Point pt, int wid, int click_count, bool focus_changed); void HandleEditBox(Window *w, int wid); - HandleEditBoxResult HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, EventState &state); }; void ShowOnScreenKeyboard(Window *parent, int button); |