diff options
author | frosch <frosch@openttd.org> | 2012-11-13 21:46:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-13 21:46:54 +0000 |
commit | fd55399167115dbb06e77bb03f85681ba318f5f2 (patch) | |
tree | 98b7ed09e96dbb242e05bd7551e750afb4fc1a6f /src/misc_gui.cpp | |
parent | 67f92f16eda1e9d251d665df7ceaa6127af4c593 (diff) | |
download | openttd-fd55399167115dbb06e77bb03f85681ba318f5f2.tar.xz |
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 97d218d71..f3f8f5190 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -824,11 +824,6 @@ HandleEditBoxResult QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, return result; } -void QueryStringBaseWindow::OnOpenOSKWindow(int wid) -{ - ShowOnScreenKeyboard(this, wid, -1, -1); -} - /** Class for the string query window. */ struct QueryStringWindow : public QueryStringBaseWindow { @@ -849,6 +844,8 @@ struct QueryStringWindow : public QueryStringBaseWindow if ((flags & QSF_ACCEPT_UNCHANGED) == 0) this->orig = strdup(this->edit_str_buf); this->caption = caption; + this->cancel_button = WID_QS_CANCEL; + this->ok_button = WID_QS_OK; this->afilter = afilter; this->flags = flags; this->text.Initialize(this->edit_str_buf, max_bytes, max_chars); @@ -917,11 +914,6 @@ struct QueryStringWindow : public QueryStringBaseWindow return state; } - virtual void OnOpenOSKWindow(int wid) - { - ShowOnScreenKeyboard(this, wid, WID_QS_CANCEL, WID_QS_OK); - } - ~QueryStringWindow() { if (!this->handled && this->parent != NULL) { |