summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
committertruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
commit2aa774e831ad1cb7849c998759449ef777c5c664 (patch)
tree37293298be999cb3446fe4af7f11e107bfa17c3d /src/osk_gui.cpp
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 001251790..79d8b14e0 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -17,37 +17,11 @@
#include "gfx_func.h"
#include "querystring_gui.h"
+#include "widgets/osk_widget.h"
+
#include "table/sprites.h"
#include "table/strings.h"
-/** Widget numbers of the on-screen keyboard (OSK) window. */
-enum OskWidgets {
- OSK_WIDGET_CAPTION, ///< Title bar.
- OSK_WIDGET_TEXT, ///< Edit box.
- OSK_WIDGET_CANCEL, ///< Cancel key.
- OSK_WIDGET_OK, ///< Ok key.
- OSK_WIDGET_BACKSPACE, ///< Backspace key.
- OSK_WIDGET_SPECIAL, ///< Special key (at keyborads often used for tab key).
- OSK_WIDGET_CAPS, ///< Capslock key.
- OSK_WIDGET_SHIFT, ///< Shift(lock) key.
- OSK_WIDGET_SPACE, ///< Space bar.
- OSK_WIDGET_LEFT, ///< Cursor left key.
- OSK_WIDGET_RIGHT, ///< Cursor right key.
- OSK_WIDGET_LETTERS, ///< First widget of the 'normal' keys.
-
- OSK_WIDGET_NUMBERS_FIRST = OSK_WIDGET_LETTERS, ///< First widget of the numbers row.
- OSK_WIDGET_NUMBERS_LAST = OSK_WIDGET_NUMBERS_FIRST + 13, ///< Last widget of the numbers row.
-
- OSK_WIDGET_QWERTY_FIRST, ///< First widget of the qwerty row.
- OSK_WIDGET_QWERTY_LAST = OSK_WIDGET_QWERTY_FIRST + 11, ///< Last widget of the qwerty row.
-
- OSK_WIDGET_ASDFG_FIRST, ///< First widget of the asdfg row.
- OSK_WIDGET_ASDFG_LAST = OSK_WIDGET_ASDFG_FIRST + 11, ///< Last widget of the asdfg row.
-
- OSK_WIDGET_ZXCVB_FIRST, ///< First widget of the zxcvb row.
- OSK_WIDGET_ZXCVB_LAST = OSK_WIDGET_ZXCVB_FIRST + 11, ///< Last widget of the zxcvb row.
-};
-
char _keyboard_opt[2][OSK_KEYBOARD_ENTRIES * 4 + 1];
static WChar _keyboard[2][OSK_KEYBOARD_ENTRIES];