(svn r23932) -Codechange: split the NewGRF text window into its own source files

This commit is contained in:
rubidium
2012-02-12 10:32:41 +00:00
parent 0542e26460
commit e8dbcf9043
17 changed files with 353 additions and 237 deletions

View File

@@ -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 */

View File

@@ -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.