summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
committerbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
commitcc29d438765429a77f359a7c0cbe0f8c3c16eae8 (patch)
tree197485baf9d0d317504f4c787e98776786d15b18 /src/genworld_gui.cpp
parent9cab7af581ef2baa9c0b593b9d85ef515c41176c (diff)
downloadopenttd-cc29d438765429a77f359a7c0cbe0f8c3c16eae8.tar.xz
(svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs. This should ease a little bit the creation of new edit aware windows.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 4da42dab7..f5088cd27 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -512,7 +512,7 @@ static void GenerateLandscapeWndProc(Window *w, WindowEvent *e)
static const WindowDesc _generate_landscape_desc = {
WDP_CENTER, WDP_CENTER, 338, 268, 338, 268,
WC_GENERATE_LANDSCAPE, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_TEXTENTRY,
_generate_landscape_widgets,
GenerateLandscapeWndProc,
};
@@ -520,7 +520,7 @@ static const WindowDesc _generate_landscape_desc = {
static const WindowDesc _heightmap_load_desc = {
WDP_CENTER, WDP_CENTER, 338, 236, 338, 236,
WC_GENERATE_LANDSCAPE, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_TEXTENTRY,
_heightmap_load_widgets,
GenerateLandscapeWndProc,
};
@@ -745,7 +745,7 @@ static const Widget _create_scenario_widgets[] = {
static const WindowDesc _create_scenario_desc = {
WDP_CENTER, WDP_CENTER, 338, 170, 338, 170,
WC_GENERATE_LANDSCAPE, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_TEXTENTRY,
_create_scenario_widgets,
CreateScenarioWndProc,
};