diff options
author | truelight <truelight@openttd.org> | 2006-08-19 09:31:22 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-19 09:31:22 +0000 |
commit | d3f2180438830f8fefc1e319276d33a914fee767 (patch) | |
tree | 99ae4703fae7e532aba0086cf644ec2230755e2e /gui.h | |
parent | 9b18c11413655ef3bc1871cf84fe1a0e95a166c3 (diff) | |
download | openttd-d3f2180438830f8fefc1e319276d33a914fee767.tar.xz |
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
allow certain patterns (like numbers only)
Diffstat (limited to 'gui.h')
-rw-r--r-- | gui.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,6 +5,7 @@ #include "station.h" #include "window.h" +#include "string.h" /* main_gui.c */ void SetupColorsAndInitialWindow(void); @@ -106,7 +107,7 @@ void AskForNewGameToStart(void); void DrawEditBox(Window *w, querystr_d *string, int wid); void HandleEditBox(Window *w, querystr_d *string, int wid); -int HandleEditBoxKey(Window *w, querystr_d *string, int wid, WindowEvent *we); +int HandleEditBoxKey(Window *w, querystr_d *string, int wid, WindowEvent *we, CharSetFilter afilter); bool HandleCaret(Textbuf *tb); void DeleteTextBufferAll(Textbuf *tb); @@ -136,7 +137,7 @@ enum { bool DoZoomInOutWindow(int how, Window *w); void ShowBuildIndustryWindow(void); -void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber window_number); +void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber window_number, CharSetFilter afilter); void ShowMusicWindow(void); /* main_gui.c */ |