OpenTTD Source: src/widgets/newgrf_widget.h Source File

OpenTTD Source 1.11.0-RC1

newgrf_widget.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
7
10 #ifndef WIDGETS_NEWGRF_WIDGET_H
11 #define WIDGETS_NEWGRF_WIDGET_H
12
13 #include "../newgrf_config.h"
14 #include "../textfile_type.h"
15
17 enum NewGRFParametersWidgets {
18 WID_NP_SHOW_NUMPAR,
19 WID_NP_NUMPAR_DEC,
20 WID_NP_NUMPAR_INC,
21 WID_NP_NUMPAR,
22 WID_NP_NUMPAR_TEXT,
23 WID_NP_BACKGROUND,
24 WID_NP_SCROLLBAR,
25 WID_NP_ACCEPT,
26 WID_NP_RESET,
27 WID_NP_SHOW_DESCRIPTION,
28 WID_NP_DESCRIPTION,
29 };
30
32 enum NewGRFStateWidgets {
33 WID_NS_PRESET_LIST,
34 WID_NS_PRESET_SAVE,
35 WID_NS_PRESET_DELETE,
36 WID_NS_ADD,
37 WID_NS_REMOVE,
38 WID_NS_MOVE_UP,
39 WID_NS_MOVE_DOWN,
40 WID_NS_UPGRADE,
41 WID_NS_FILTER,
42 WID_NS_FILE_LIST,
43 WID_NS_SCROLLBAR,
44 WID_NS_AVAIL_LIST,
45 WID_NS_SCROLL2BAR,
46 WID_NS_NEWGRF_INFO_TITLE,
47 WID_NS_NEWGRF_INFO,
48 WID_NS_OPEN_URL,
49 WID_NS_NEWGRF_TEXTFILE,
50 WID_NS_SET_PARAMETERS = WID_NS_NEWGRF_TEXTFILE + TFT_END,
51 WID_NS_VIEW_PARAMETERS,
52 WID_NS_TOGGLE_PALETTE,
53 WID_NS_APPLY_CHANGES,
54 WID_NS_RESCAN_FILES,
55 WID_NS_RESCAN_FILES2,
56 WID_NS_CONTENT_DOWNLOAD,
57 WID_NS_CONTENT_DOWNLOAD2,
58 WID_NS_SHOW_REMOVE,
59 WID_NS_SHOW_APPLY,
60 };
61
63 enum SavePresetWidgets {
64 WID_SVP_PRESET_LIST,
65 WID_SVP_SCROLLBAR,
66 WID_SVP_EDITBOX,
67 WID_SVP_CANCEL,
68 WID_SVP_SAVE,
69 };
70
72 enum ScanProgressWidgets {
73 WID_SP_PROGRESS_BAR,
74 WID_SP_PROGRESS_TEXT,
75 };
76
77 #endif /* WIDGETS_NEWGRF_WIDGET_H */
WID_NS_SCROLLBAR
@ WID_NS_SCROLLBAR
Scrollbar for active NewGRF list.
Definition: newgrf_widget.h:43
WID_NS_TOGGLE_PALETTE
@ WID_NS_TOGGLE_PALETTE
Toggle Palette of selected, active NewGRF.
Definition: newgrf_widget.h:52
WID_NS_PRESET_LIST
@ WID_NS_PRESET_LIST
Active NewGRF preset.
Definition: newgrf_widget.h:33
WID_NS_PRESET_DELETE
@ WID_NS_PRESET_DELETE
Delete active preset.
Definition: newgrf_widget.h:35
WID_NP_RESET
@ WID_NP_RESET
Reset button.
Definition: newgrf_widget.h:26
WID_NS_NEWGRF_TEXTFILE
@ WID_NS_NEWGRF_TEXTFILE
Open NewGRF readme, changelog (+1) or license (+2).
Definition: newgrf_widget.h:49
WID_NS_AVAIL_LIST
@ WID_NS_AVAIL_LIST
List window of available NewGRFs.
Definition: newgrf_widget.h:44
WID_NP_BACKGROUND
@ WID_NP_BACKGROUND
Panel to draw the settings on.
Definition: newgrf_widget.h:23
WID_NS_NEWGRF_INFO
@ WID_NS_NEWGRF_INFO
Panel for Info on selected NewGRF.
Definition: newgrf_widget.h:47
WID_NS_MOVE_DOWN
@ WID_NS_MOVE_DOWN
Move NewGRF down in active list.
Definition: newgrf_widget.h:39
SavePresetWidgets
SavePresetWidgets
Widgets of the SavePresetWindow class.
Definition: newgrf_widget.h:63
WID_NS_RESCAN_FILES2
@ WID_NS_RESCAN_FILES2
Rescan files (active NewGRFs).
Definition: newgrf_widget.h:55
WID_SVP_SAVE
@ WID_SVP_SAVE
Button to save the preset.
Definition: newgrf_widget.h:68
WID_NP_NUMPAR_INC
@ WID_NP_NUMPAR_INC
Button to increase number of parameters.
Definition: newgrf_widget.h:20
WID_NP_SCROLLBAR
@ WID_NP_SCROLLBAR
Scrollbar to scroll through all settings.
Definition: newgrf_widget.h:24
WID_NS_OPEN_URL
@ WID_NS_OPEN_URL
Open URL of NewGRF.
Definition: newgrf_widget.h:48
ScanProgressWidgets
ScanProgressWidgets
Widgets of the ScanProgressWindow class.
Definition: newgrf_widget.h:72
WID_NS_UPGRADE
@ WID_NS_UPGRADE
Upgrade NewGRFs that have a newer version available.
Definition: newgrf_widget.h:40
WID_NS_MOVE_UP
@ WID_NS_MOVE_UP
Move NewGRF up in active list.
Definition: newgrf_widget.h:38
WID_NS_APPLY_CHANGES
@ WID_NS_APPLY_CHANGES
Apply changes to NewGRF config.
Definition: newgrf_widget.h:53
WID_NS_CONTENT_DOWNLOAD2
@ WID_NS_CONTENT_DOWNLOAD2
Open content download (active NewGRFs).
Definition: newgrf_widget.h:57
WID_NS_REMOVE
@ WID_NS_REMOVE
Remove NewGRF from active list.
Definition: newgrf_widget.h:37
WID_SVP_CANCEL
@ WID_SVP_CANCEL
Button to cancel saving the preset.
Definition: newgrf_widget.h:67
WID_NS_CONTENT_DOWNLOAD
@ WID_NS_CONTENT_DOWNLOAD
Open content download (available NewGRFs).
Definition: newgrf_widget.h:56
WID_NP_NUMPAR_DEC
@ WID_NP_NUMPAR_DEC
Button to decrease number of parameters.
Definition: newgrf_widget.h:19
WID_NS_SHOW_APPLY
@ WID_NS_SHOW_APPLY
Select display of the buttons below the 'details'.
Definition: newgrf_widget.h:59
WID_NS_ADD
@ WID_NS_ADD
Add NewGRF to active list.
Definition: newgrf_widget.h:36
WID_NP_NUMPAR
@ WID_NP_NUMPAR
Optional number of parameters.
Definition: newgrf_widget.h:21
WID_SP_PROGRESS_TEXT
@ WID_SP_PROGRESS_TEXT
Text explaining what is happening.
Definition: newgrf_widget.h:74
WID_NS_VIEW_PARAMETERS
@ WID_NS_VIEW_PARAMETERS
Open Parameters Window for selected NewGRF for viewing parameters.
Definition: newgrf_widget.h:51
WID_SVP_PRESET_LIST
@ WID_SVP_PRESET_LIST
List with available preset names.
Definition: newgrf_widget.h:64
WID_NS_SET_PARAMETERS
@ WID_NS_SET_PARAMETERS
Open Parameters Window for selected NewGRF for editing parameters.
Definition: newgrf_widget.h:50
WID_NP_NUMPAR_TEXT
@ WID_NP_NUMPAR_TEXT
Text description.
Definition: newgrf_widget.h:22
WID_NS_FILTER
@ WID_NS_FILTER
Filter list of available NewGRFs.
Definition: newgrf_widget.h:41
WID_NS_SCROLL2BAR
@ WID_NS_SCROLL2BAR
Scrollbar for available NewGRF list.
Definition: newgrf_widget.h:45
WID_NP_SHOW_NUMPAR
@ WID_NP_SHOW_NUMPAR
NWID_SELECTION to optionally display WID_NP_NUMPAR.
Definition: newgrf_widget.h:18
WID_NS_NEWGRF_INFO_TITLE
@ WID_NS_NEWGRF_INFO_TITLE
Title for Info on selected NewGRF.
Definition: newgrf_widget.h:46
WID_NS_FILE_LIST
@ WID_NS_FILE_LIST
List window of active NewGRFs.
Definition: newgrf_widget.h:42
WID_NP_SHOW_DESCRIPTION
@ WID_NP_SHOW_DESCRIPTION
NWID_SELECTION to optionally display parameter descriptions.
Definition: newgrf_widget.h:27
WID_SVP_SCROLLBAR
@ WID_SVP_SCROLLBAR
Scrollbar for the list available preset names.
Definition: newgrf_widget.h:65
NewGRFStateWidgets
NewGRFStateWidgets
Widgets of the NewGRFWindow class.
Definition: newgrf_widget.h:32
NewGRFParametersWidgets
NewGRFParametersWidgets
Widgets of the NewGRFParametersWindow class.
Definition: newgrf_widget.h:17
WID_NP_ACCEPT
@ WID_NP_ACCEPT
Accept button.
Definition: newgrf_widget.h:25
WID_NP_DESCRIPTION
@ WID_NP_DESCRIPTION
Multi-line description of a parameter.
Definition: newgrf_widget.h:28
WID_NS_PRESET_SAVE
@ WID_NS_PRESET_SAVE
Save list of active NewGRFs as presets.
Definition: newgrf_widget.h:34
WID_SVP_EDITBOX
@ WID_SVP_EDITBOX
Edit box for changing the preset name.
Definition: newgrf_widget.h:66
WID_NS_SHOW_REMOVE
@ WID_NS_SHOW_REMOVE
Select active list buttons (0 = normal, 1 = simple layout).
Definition: newgrf_widget.h:58
WID_NS_RESCAN_FILES
@ WID_NS_RESCAN_FILES
Rescan files (available NewGRFs).
Definition: newgrf_widget.h:54
WID_SP_PROGRESS_BAR
@ WID_SP_PROGRESS_BAR
Simple progress bar.
Definition: newgrf_widget.h:73