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_NETWORK_WIDGET_H
/** Widgets of the #NetworkGameWindow class. */
enum NetworkGameWidgets {
enum NetworkGameWidgets : WidgetID {
WID_NG_MAIN, ///< Main panel.
WID_NG_CLIENT_LABEL, ///< Label in front of client name edit box.
@@ -49,7 +49,7 @@ enum NetworkGameWidgets {
};
/** Widgets of the #NetworkStartServerWindow class. */
enum NetworkStartServerWidgets {
enum NetworkStartServerWidgets : WidgetID {
WID_NSS_BACKGROUND, ///< Background of the window.
WID_NSS_GAMENAME_LABEL, ///< Label for the game name.
WID_NSS_GAMENAME, ///< Background for editbox to set game name.
@@ -74,7 +74,7 @@ enum NetworkStartServerWidgets {
};
/** Widgets of the #NetworkClientListWindow class. */
enum ClientListWidgets {
enum ClientListWidgets : WidgetID {
WID_CL_PANEL, ///< Panel of the window.
WID_CL_SERVER_SELECTOR, ///< Selector to hide the server frame.
WID_CL_SERVER_NAME, ///< Server name.
@@ -91,14 +91,14 @@ enum ClientListWidgets {
};
/** Widgets of the #NetworkJoinStatusWindow class. */
enum NetworkJoinStatusWidgets {
enum NetworkJoinStatusWidgets : WidgetID {
WID_NJS_PROGRESS_BAR, ///< Simple progress bar.
WID_NJS_PROGRESS_TEXT, ///< Text explaining what is happening.
WID_NJS_CANCELOK, ///< Cancel / OK button.
};
/** Widgets of the #NetworkCompanyPasswordWindow class. */
enum NetworkCompanyPasswordWidgets {
enum NetworkCompanyPasswordWidgets : WidgetID {
WID_NCP_BACKGROUND, ///< Background of the window.
WID_NCP_LABEL, ///< Label in front of the password field.
WID_NCP_PASSWORD, ///< Input field for the password.
@@ -109,7 +109,7 @@ enum NetworkCompanyPasswordWidgets {
};
/** Widgets of the #NetworkAskRelayWindow class. */
enum NetworkAskRelayWidgets {
enum NetworkAskRelayWidgets : WidgetID {
WID_NAR_CAPTION, ///< Caption of the window.
WID_NAR_TEXT, ///< Text in the window.
WID_NAR_NO, ///< "No" button.
@@ -118,7 +118,7 @@ enum NetworkAskRelayWidgets {
};
/** Widgets of the #NetworkAskSurveyWindow class. */
enum NetworkAskSurveyWidgets {
enum NetworkAskSurveyWidgets : WidgetID {
WID_NAS_CAPTION, ///< Caption of the window.
WID_NAS_TEXT, ///< Text in the window.
WID_NAS_PREVIEW, ///< "Preview" button.