OpenTTD

settings_widget.h
Go to the documentation of this file.
1 /* $Id: settings_widget.h 26990 2014-10-11 13:22:37Z peter1138 $ */
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 WIDGETS_SETTINGS_WIDGET_H
13 #define WIDGETS_SETTINGS_WIDGET_H
14
16 enum GameOptionsWidgets {
17 WID_GO_BACKGROUND,
18 WID_GO_CURRENCY_DROPDOWN,
19 WID_GO_DISTANCE_DROPDOWN,
20 WID_GO_ROADSIDE_DROPDOWN,
21 WID_GO_TOWNNAME_DROPDOWN,
22 WID_GO_AUTOSAVE_DROPDOWN,
23 WID_GO_LANG_DROPDOWN,
24 WID_GO_RESOLUTION_DROPDOWN,
25 WID_GO_FULLSCREEN_BUTTON,
26 WID_GO_GUI_ZOOM_DROPDOWN,
27 WID_GO_BASE_GRF_DROPDOWN,
28 WID_GO_BASE_GRF_STATUS,
29 WID_GO_BASE_GRF_TEXTFILE,
30 WID_GO_BASE_GRF_DESCRIPTION = WID_GO_BASE_GRF_TEXTFILE + TFT_END,
31 WID_GO_BASE_SFX_DROPDOWN,
32 WID_GO_BASE_SFX_TEXTFILE,
33 WID_GO_BASE_SFX_DESCRIPTION = WID_GO_BASE_SFX_TEXTFILE + TFT_END,
34 WID_GO_BASE_MUSIC_DROPDOWN,
35 WID_GO_BASE_MUSIC_STATUS,
36 WID_GO_BASE_MUSIC_TEXTFILE,
37 WID_GO_BASE_MUSIC_DESCRIPTION = WID_GO_BASE_MUSIC_TEXTFILE + TFT_END,
38 };
39
41 enum GameSettingsWidgets {
42 WID_GS_FILTER,
43 WID_GS_OPTIONSPANEL,
44 WID_GS_SCROLLBAR,
45 WID_GS_HELP_TEXT,
46 WID_GS_EXPAND_ALL,
47 WID_GS_COLLAPSE_ALL,
48 WID_GS_RESTRICT_CATEGORY,
49 WID_GS_RESTRICT_TYPE,
50 WID_GS_RESTRICT_DROPDOWN,
51 WID_GS_TYPE_DROPDOWN,
52 };
53
55 enum CustomCurrencyWidgets {
56 WID_CC_RATE_DOWN,
57 WID_CC_RATE_UP,
58 WID_CC_RATE,
59 WID_CC_SEPARATOR_EDIT,
60 WID_CC_SEPARATOR,
61 WID_CC_PREFIX_EDIT,
62 WID_CC_PREFIX,
63 WID_CC_SUFFIX_EDIT,
64 WID_CC_SUFFIX,
65 WID_CC_YEAR_DOWN,
66 WID_CC_YEAR_UP,
67 WID_CC_YEAR,
68 WID_CC_PREVIEW,
69 };
70
71 #endif /* WIDGETS_SETTINGS_WIDGET_H */
WID_GO_CURRENCY_DROPDOWN
Currency dropdown.
Definition: settings_widget.h:18
WID_GO_GUI_ZOOM_DROPDOWN
Dropdown for the GUI zoom level.
Definition: settings_widget.h:26
CustomCurrencyWidgets
CustomCurrencyWidgets
Widgets of the CustomCurrencyWindow class.
Definition: settings_widget.h:55
WID_CC_RATE
Rate of currency.
Definition: settings_widget.h:58
WID_CC_SUFFIX
Current suffix.
Definition: settings_widget.h:64
WID_GO_BASE_GRF_STATUS
Info about missing files etc.
Definition: settings_widget.h:28
WID_GO_BASE_SFX_TEXTFILE
Open base SFX readme, changelog (+1) or license (+2).
Definition: settings_widget.h:32
WID_GO_BASE_MUSIC_TEXTFILE
Open base music readme, changelog (+1) or license (+2).
Definition: settings_widget.h:36
WID_GO_BASE_MUSIC_DROPDOWN
Use to select a base music set.
Definition: settings_widget.h:34
WID_CC_YEAR_UP
Up button.
Definition: settings_widget.h:66
WID_CC_SEPARATOR
Current separator.
Definition: settings_widget.h:60
WID_GS_SCROLLBAR
Scrollbar.
Definition: settings_widget.h:44
WID_CC_SEPARATOR_EDIT
Separator edit button.
Definition: settings_widget.h:59
WID_GS_OPTIONSPANEL
Panel widget containing the option lists.
Definition: settings_widget.h:43
WID_GS_TYPE_DROPDOWN
The drop down box to choose client/game/company/all settings.
Definition: settings_widget.h:51
WID_GO_ROADSIDE_DROPDOWN
Dropdown to select the road side (to set the right side ;)).
Definition: settings_widget.h:20
WID_GO_TOWNNAME_DROPDOWN
Town name dropdown.
Definition: settings_widget.h:21
WID_CC_PREVIEW
Preview.
Definition: settings_widget.h:68
WID_GO_BACKGROUND
Background of the window.
Definition: settings_widget.h:17
GameSettingsWidgets
GameSettingsWidgets
Widgets of the GameSettingsWindow class.
Definition: settings_widget.h:41
WID_GO_AUTOSAVE_DROPDOWN
Dropdown to say how often to autosave.
Definition: settings_widget.h:22
WID_CC_SUFFIX_EDIT
Suffix edit button.
Definition: settings_widget.h:63
WID_GS_COLLAPSE_ALL
Collapse all button.
Definition: settings_widget.h:47
WID_GO_BASE_GRF_DESCRIPTION
Description of selected base GRF.
Definition: settings_widget.h:30
WID_GS_RESTRICT_TYPE
Label upfront to the type drop-down box to restrict the list of settings to show. ...
Definition: settings_widget.h:49
WID_CC_PREFIX_EDIT
Prefix edit button.
Definition: settings_widget.h:61
WID_CC_YEAR_DOWN
Down button.
Definition: settings_widget.h:65
WID_GO_LANG_DROPDOWN
Language dropdown.
Definition: settings_widget.h:23
WID_GO_FULLSCREEN_BUTTON
Toggle fullscreen.
Definition: settings_widget.h:25
WID_CC_PREFIX
Current prefix.
Definition: settings_widget.h:62
WID_GO_RESOLUTION_DROPDOWN
Dropdown for the resolution.
Definition: settings_widget.h:24
WID_CC_YEAR
Year of introduction.
Definition: settings_widget.h:67
WID_GS_EXPAND_ALL
Expand all button.
Definition: settings_widget.h:46
WID_GO_BASE_GRF_TEXTFILE
Open base GRF readme, changelog (+1) or license (+2).
Definition: settings_widget.h:29
WID_GO_BASE_GRF_DROPDOWN
Use to select a base GRF.
Definition: settings_widget.h:27
WID_GO_BASE_SFX_DESCRIPTION
Description of selected base SFX.
Definition: settings_widget.h:33
GameOptionsWidgets
GameOptionsWidgets
Widgets of the GameOptionsWindow class.
Definition: settings_widget.h:16
WID_GS_RESTRICT_CATEGORY
Label upfront to the category drop-down box to restrict the list of settings to show.
Definition: settings_widget.h:48
WID_GO_DISTANCE_DROPDOWN
Measuring unit dropdown.
Definition: settings_widget.h:19
WID_CC_RATE_UP
Up button.
Definition: settings_widget.h:57
WID_GS_FILTER
Text filter.
Definition: settings_widget.h:42
WID_GS_RESTRICT_DROPDOWN
The drop down box to restrict the list of settings.
Definition: settings_widget.h:50
WID_GS_HELP_TEXT
Information area to display help text of the selected option.
Definition: settings_widget.h:45
WID_GO_BASE_SFX_DROPDOWN
Use to select a base SFX.
Definition: settings_widget.h:31
WID_GO_BASE_MUSIC_STATUS
Info about corrupted files etc.
Definition: settings_widget.h:35
WID_GO_BASE_MUSIC_DESCRIPTION
Description of selected base music set.
Definition: settings_widget.h:37
WID_CC_RATE_DOWN
Down button.
Definition: settings_widget.h:56