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 */
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
Types related to windows.
return success even when the text didn&#39;t change
Definition: textbuf_gui.h:22
Data structure for an opened window.
Definition: window_gui.h:271
enable the &#39;Default&#39; button ("\0" is returned)
Definition: textbuf_gui.h:23
static const uint OSK_KEYBOARD_ENTRIES
The number of &#39;characters&#39; on the on-screen keyboard.
Definition: textbuf_gui.h:36
the length of the string is counted in characters
Definition: textbuf_gui.h:24
QueryStringFlags
Flags used in ShowQueryString() call.
Definition: textbuf_gui.h:20
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Definition: strings_type.h:18
CharSetFilter
Valid filter types for IsValidChar.
Definition: string_type.h:26
void ShowQuery(StringID caption, StringID message, Window *w, QueryCallbackProc *callback)
Show a modal confirmation window with standard &#39;yes&#39; and &#39;no&#39; buttons The window is aligned to the ce...
Definition: misc_gui.cpp:1206
void ShowQueryString(StringID str, StringID caption, uint max_len, Window *parent, CharSetFilter afilter, QueryStringFlags flags)
Show a query popup window with a textbox in it.
Definition: misc_gui.cpp:1065
void QueryCallbackProc(Window *, bool)
Callback procedure for the ShowQuery method.
Definition: textbuf_gui.h:30
Types related to strings.
Types for strings.
char _keyboard_opt[2][OSK_KEYBOARD_ENTRIES *4+1]
The number of characters has to be OSK_KEYBOARD_ENTRIES.
Definition: osk_gui.cpp:28