summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-02-12 10:32:41 +0000
committerrubidium <rubidium@openttd.org>2012-02-12 10:32:41 +0000
commite8dbcf90430610e2f19aeb3b764d9e8809c8f3ea (patch)
tree8cca3b6ad3193e943cd0121ba465e5cedf268307 /src/widgets
parent0542e26460cf5da6fb4a3486ed9b515721bdb0bd (diff)
downloadopenttd-e8dbcf90430610e2f19aeb3b764d9e8809c8f3ea.tar.xz
(svn r23932) -Codechange: split the NewGRF text window into its own source files
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/misc_widget.h8
-rw-r--r--src/widgets/newgrf_widget.h9
2 files changed, 9 insertions, 8 deletions
diff --git a/src/widgets/misc_widget.h b/src/widgets/misc_widget.h
index 04f81da71..a54e83035 100644
--- a/src/widgets/misc_widget.h
+++ b/src/widgets/misc_widget.h
@@ -45,4 +45,12 @@ enum QueryWidgets {
WID_Q_YES, ///< No button.
};
+/** Widgets of the #TextfileWindow class. */
+enum TextfileWidgets {
+ WID_TF_CAPTION, ///< The caption of the window.
+ WID_TF_BACKGROUND, ///< Panel to draw the textfile on.
+ WID_TF_VSCROLLBAR, ///< Vertical scrollbar to scroll through the textfile up-and-down.
+ WID_TF_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
+};
+
#endif /* WIDGETS_MISC_WIDGET_H */
diff --git a/src/widgets/newgrf_widget.h b/src/widgets/newgrf_widget.h
index 32b5c5a30..878dcb891 100644
--- a/src/widgets/newgrf_widget.h
+++ b/src/widgets/newgrf_widget.h
@@ -13,6 +13,7 @@
#define WIDGETS_NEWGRF_WIDGET_H
#include "../newgrf_config.h"
+#include "../textfile_type.h"
/** Widgets of the #NewGRFParametersWindow class. */
enum NewGRFParametersWidgets {
@@ -29,14 +30,6 @@ enum NewGRFParametersWidgets {
WID_NP_DESCRIPTION, ///< Multi-line description of a parameter.
};
-/** Widgets of the #NewGRFTextfileWindow class. */
-enum NewGRFTextfileWidgets {
- WID_NT_CAPTION, ///< The caption of the window.
- WID_NT_BACKGROUND, ///< Panel to draw the textfile on.
- WID_NT_VSCROLLBAR, ///< Vertical scrollbar to scroll through the textfile up-and-down.
- WID_NT_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
-};
-
/** Widgets of the #NewGRFWindow class. */
enum NewGRFStateWidgets {
WID_NS_PRESET_LIST, ///< Active NewGRF preset.