diff --git a/src/widgets/misc_widget.h b/src/widgets/misc_widget.h --- a/src/widgets/misc_widget.h +++ b/src/widgets/misc_widget.h @@ -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.