OpenTTD
textbuf_gui.h
Go to the documentation of this file.
1 /* $Id: textbuf_gui.h 24323 2012-06-04 15:29:37Z frosch $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef TEXTBUF_GUI_H
13 #define TEXTBUF_GUI_H
14 
15 #include "window_type.h"
16 #include "string_type.h"
17 #include "strings_type.h"
18 
21  QSF_NONE = 0,
25 };
26 
28 
29 
30 typedef void QueryCallbackProc(Window*, bool);
31 
32 void ShowQueryString(StringID str, StringID caption, uint max_len, Window *parent, CharSetFilter afilter, QueryStringFlags flags);
33 void ShowQuery(StringID caption, StringID message, Window *w, QueryCallbackProc *callback);
34 
36 static const uint OSK_KEYBOARD_ENTRIES = 50;
37 
43 extern char _keyboard_opt[2][OSK_KEYBOARD_ENTRIES * 4 + 1];
44 
45 #endif /* TEXTBUF_GUI_H */