summaryrefslogtreecommitdiff
path: root/src/widgets/newgrf_widget.h
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
committertruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
commit2aa774e831ad1cb7849c998759449ef777c5c664 (patch)
tree37293298be999cb3446fe4af7f11e107bfa17c3d /src/widgets/newgrf_widget.h
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/widgets/newgrf_widget.h')
-rw-r--r--src/widgets/newgrf_widget.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/widgets/newgrf_widget.h b/src/widgets/newgrf_widget.h
new file mode 100644
index 000000000..d76d3019b
--- /dev/null
+++ b/src/widgets/newgrf_widget.h
@@ -0,0 +1,73 @@
+/* $Id$ */
+
+/*
+ * This file is part of OpenTTD.
+ * 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.
+ * 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.
+ * 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/>.
+ */
+
+/** @file newgrf_widget.h Types related to the newgrf widgets. */
+
+#ifndef WIDGETS_NEWGRF_WIDGET_H
+#define WIDGETS_NEWGRF_WIDGET_H
+
+/** Widgets of the WC_GRF_PARAMETERS. */
+enum ShowNewGRFParametersWidgets {
+ GRFPAR_WIDGET_SHOW_NUMPAR, ///< #NWID_SELECTION to optionally display #GRFPAR_WIDGET_NUMPAR
+ GRFPAR_WIDGET_NUMPAR_DEC, ///< Button to decrease number of parameters
+ GRFPAR_WIDGET_NUMPAR_INC, ///< Button to increase number of parameters
+ GRFPAR_WIDGET_NUMPAR, ///< Optional number of parameters
+ GRFPAR_WIDGET_NUMPAR_TEXT, ///< Text description
+ GRFPAR_WIDGET_BACKGROUND, ///< Panel to draw the settings on
+ GRFPAR_WIDGET_SCROLLBAR, ///< Scrollbar to scroll through all settings
+ GRFPAR_WIDGET_ACCEPT, ///< Accept button
+ GRFPAR_WIDGET_RESET, ///< Reset button
+ GRFPAR_WIDGET_SHOW_DESCRIPTION, ///< #NWID_SELECTION to optionally display parameter descriptions
+ GRFPAR_WIDGET_DESCRIPTION, ///< Multi-line description of a parameter
+};
+
+/** Widgets of the WC_NEWGRF_TEXTFILE. */
+enum ShowNewGRFTextfileWidgets {
+ GTW_WIDGET_CAPTION, ///< The caption of the window.
+ GTW_WIDGET_BACKGROUND, ///< Panel to draw the textfile on.
+ GTW_WIDGET_VSCROLLBAR, ///< Vertical scrollbar to scroll through the textfile up-and-down.
+ GTW_WIDGET_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
+};
+
+/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
+enum ShowNewGRFStateWidgets {
+ SNGRFS_PRESET_LIST,
+ SNGRFS_PRESET_SAVE,
+ SNGRFS_PRESET_DELETE,
+ SNGRFS_ADD,
+ SNGRFS_REMOVE,
+ SNGRFS_MOVE_UP,
+ SNGRFS_MOVE_DOWN,
+ SNGRFS_FILTER,
+ SNGRFS_FILE_LIST,
+ SNGRFS_SCROLLBAR,
+ SNGRFS_AVAIL_LIST,
+ SNGRFS_SCROLL2BAR,
+ SNGRFS_NEWGRF_INFO_TITLE,
+ SNGRFS_NEWGRF_INFO,
+ SNGRFS_OPEN_URL,
+ SNGRFS_NEWGRF_TEXTFILE,
+ SNGRFS_SET_PARAMETERS = SNGRFS_NEWGRF_TEXTFILE + TFT_END,
+ SNGRFS_TOGGLE_PALETTE,
+ SNGRFS_APPLY_CHANGES,
+ SNGRFS_RESCAN_FILES,
+ SNGRFS_RESCAN_FILES2,
+ SNGRFS_CONTENT_DOWNLOAD,
+ SNGRFS_CONTENT_DOWNLOAD2,
+ SNGRFS_SHOW_REMOVE, ///< Select active list buttons (0 = normal, 1 = simple layout).
+ SNGRFS_SHOW_APPLY, ///< Select display of the buttons below the 'details'.
+};
+
+/** Widgets of the WC_MODAL_PROGRESS (WC_MODAL_PROGRESS is also used in GenerationProgressWindowWidgets). */
+enum ScanProgressWindowWidgets {
+ SPWW_PROGRESS_BAR, ///< Simple progress bar.
+ GPWW_PROGRESS_TEXT, ///< Text explaining what is happening.
+};
+
+#endif /* WIDGETS_NEWGRF_WIDGET_H */