Codechange: Set storage type of widget enums to WidgetID.

This commit is contained in:
Peter Nelson
2023-12-29 21:15:25 +00:00
committed by Peter Nelson
parent a0dfb76e34
commit 268e512fb8
60 changed files with 120 additions and 120 deletions

View File

@@ -11,25 +11,25 @@
#define WIDGETS_MISC_WIDGET_H
/** Widgets of the #LandInfoWindow class. */
enum LandInfoWidgets {
enum LandInfoWidgets : WidgetID {
WID_LI_LOCATION, ///< Scroll to location.
WID_LI_BACKGROUND, ///< Background of the window.
};
/** Widgets of the #TooltipsWindow class. */
enum ToolTipsWidgets {
enum ToolTipsWidgets : WidgetID {
WID_TT_BACKGROUND, ///< Background of the window.
};
/** Widgets of the #AboutWindow class. */
enum AboutWidgets {
enum AboutWidgets : WidgetID {
WID_A_SCROLLING_TEXT, ///< The actually scrolling text.
WID_A_WEBSITE, ///< URL of OpenTTD website.
WID_A_COPYRIGHT, ///< Copyright string
};
/** Widgets of the #QueryStringWindow class. */
enum QueryStringWidgets {
enum QueryStringWidgets : WidgetID {
WID_QS_CAPTION, ///< Caption of the window.
WID_QS_TEXT, ///< Text of the query.
WID_QS_WARNING, ///< Warning label about password security
@@ -39,7 +39,7 @@ enum QueryStringWidgets {
};
/** Widgets of the #QueryWindow class. */
enum QueryWidgets {
enum QueryWidgets : WidgetID {
WID_Q_CAPTION, ///< Caption of the window.
WID_Q_TEXT, ///< Text of the query.
WID_Q_NO, ///< Yes button.
@@ -47,7 +47,7 @@ enum QueryWidgets {
};
/** Widgets of the #TextfileWindow class. */
enum TextfileWidgets {
enum TextfileWidgets : WidgetID {
WID_TF_CAPTION, ///< The caption of the window.
WID_TF_NAVBACK, ///< Navigate back button.
WID_TF_NAVFORWARD, ///< Navigate forward button.