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,7 +11,7 @@
#define WIDGETS_COMPANY_WIDGET_H
/** Widgets of the #CompanyWindow class. */
enum CompanyWidgets {
enum CompanyWidgets : WidgetID {
WID_C_CAPTION, ///< Caption of the window.
WID_C_FACE, ///< View of the face.
@@ -54,7 +54,7 @@ enum CompanyWidgets {
};
/** Widgets of the #CompanyFinancesWindow class. */
enum CompanyFinancesWidgets {
enum CompanyFinancesWidgets : WidgetID {
WID_CF_CAPTION, ///< Caption of the window.
WID_CF_TOGGLE_SIZE, ///< Toggle windows size.
WID_CF_SEL_PANEL, ///< Select panel or nothing.
@@ -78,7 +78,7 @@ enum CompanyFinancesWidgets {
/** Widgets of the #SelectCompanyLiveryWindow class. */
enum SelectCompanyLiveryWidgets {
enum SelectCompanyLiveryWidgets : WidgetID {
WID_SCL_CAPTION, ///< Caption of window.
WID_SCL_CLASS_GENERAL, ///< Class general.
WID_SCL_CLASS_RAIL, ///< Class rail.
@@ -102,7 +102,7 @@ enum SelectCompanyLiveryWidgets {
* Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
* this order is needed for the WE_CLICK event of DrawFaceStringLabel().
*/
enum SelectCompanyManagerFaceWidgets {
enum SelectCompanyManagerFaceWidgets : WidgetID {
WID_SCMF_CAPTION, ///< Caption of window.
WID_SCMF_TOGGLE_LARGE_SMALL, ///< Toggle for large or small.
WID_SCMF_SELECT_FACE, ///< Select face.
@@ -170,7 +170,7 @@ enum SelectCompanyManagerFaceWidgets {
};
/** Widgets of the #CompanyInfrastructureWindow class. */
enum CompanyInfrastructureWidgets {
enum CompanyInfrastructureWidgets : WidgetID {
WID_CI_CAPTION, ///< Caption of window.
WID_CI_RAIL_DESC, ///< Description of rail.
WID_CI_RAIL_COUNT, ///< Count of rail.
@@ -187,7 +187,7 @@ enum CompanyInfrastructureWidgets {
};
/** Widgets of the #BuyCompanyWindow class. */
enum BuyCompanyWidgets {
enum BuyCompanyWidgets : WidgetID {
WID_BC_CAPTION, ///< Caption of window.
WID_BC_FACE, ///< Face button.
WID_BC_QUESTION, ///< Question text.