OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

newgrf_widget.h
Go to the documentation of this file.
1 /* $Id: newgrf_widget.h 26613 2014-05-24 19:15:57Z alberth $ */
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_NEWGRF_WIDGET_H
13 #define WIDGETS_NEWGRF_WIDGET_H
14
15 #include "../newgrf_config.h"
16 #include "../textfile_type.h"
17
19 enum NewGRFParametersWidgets {
20 WID_NP_SHOW_NUMPAR,
21 WID_NP_NUMPAR_DEC,
22 WID_NP_NUMPAR_INC,
23 WID_NP_NUMPAR,
24 WID_NP_NUMPAR_TEXT,
25 WID_NP_BACKGROUND,
26 WID_NP_SCROLLBAR,
27 WID_NP_ACCEPT,
28 WID_NP_RESET,
29 WID_NP_SHOW_DESCRIPTION,
30 WID_NP_DESCRIPTION,
31 };
32
34 enum NewGRFStateWidgets {
35 WID_NS_PRESET_LIST,
36 WID_NS_PRESET_SAVE,
37 WID_NS_PRESET_DELETE,
38 WID_NS_ADD,
39 WID_NS_REMOVE,
40 WID_NS_MOVE_UP,
41 WID_NS_MOVE_DOWN,
42 WID_NS_UPGRADE,
43 WID_NS_FILTER,
44 WID_NS_FILE_LIST,
45 WID_NS_SCROLLBAR,
46 WID_NS_AVAIL_LIST,
47 WID_NS_SCROLL2BAR,
48 WID_NS_NEWGRF_INFO_TITLE,
49 WID_NS_NEWGRF_INFO,
50 WID_NS_OPEN_URL,
51 WID_NS_NEWGRF_TEXTFILE,
52 WID_NS_SET_PARAMETERS = WID_NS_NEWGRF_TEXTFILE + TFT_END,
53 WID_NS_VIEW_PARAMETERS,
54 WID_NS_TOGGLE_PALETTE,
55 WID_NS_APPLY_CHANGES,
56 WID_NS_RESCAN_FILES,
57 WID_NS_RESCAN_FILES2,
58 WID_NS_CONTENT_DOWNLOAD,
59 WID_NS_CONTENT_DOWNLOAD2,
60 WID_NS_SHOW_REMOVE,
61 WID_NS_SHOW_APPLY,
62 };
63
65 enum SavePresetWidgets {
66 WID_SVP_PRESET_LIST,
67 WID_SVP_SCROLLBAR,
68 WID_SVP_EDITBOX,
69 WID_SVP_CANCEL,
70 WID_SVP_SAVE,
71 };
72
74 enum ScanProgressWidgets {
75 WID_SP_PROGRESS_BAR,
76 WID_SP_PROGRESS_TEXT,
77 };
78
79 #endif /* WIDGETS_NEWGRF_WIDGET_H */