diff options
author | truebrain <truebrain@openttd.org> | 2011-12-16 16:49:53 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-16 16:49:53 +0000 |
commit | 05af1d176bff01154933da8c3e3ba97784f4b8d6 (patch) | |
tree | fca79faf9f9319be4cae1b972e603c9512961402 /src/widgets | |
parent | 4453288f3f5acf4e20441303e14bd7d5d285c92b (diff) | |
download | openttd-05af1d176bff01154933da8c3e3ba97784f4b8d6.tar.xz |
(svn r23536) -Codechange: document and rename widgets to be consistent and understandable
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/intro_widget.h | 38 | ||||
-rw-r--r-- | src/widgets/main_widget.h | 4 | ||||
-rw-r--r-- | src/widgets/misc_widget.h | 26 |
3 files changed, 34 insertions, 34 deletions
diff --git a/src/widgets/intro_widget.h b/src/widgets/intro_widget.h index 5b7de2252..b5ac79496 100644 --- a/src/widgets/intro_widget.h +++ b/src/widgets/intro_widget.h @@ -14,25 +14,25 @@ /** Widgets of the WC_SELECT_GAME. */ enum SelectGameIntroWidgets { - SGI_GENERATE_GAME, - SGI_LOAD_GAME, - SGI_PLAY_SCENARIO, - SGI_PLAY_HEIGHTMAP, - SGI_EDIT_SCENARIO, - SGI_PLAY_NETWORK, - SGI_TEMPERATE_LANDSCAPE, - SGI_ARCTIC_LANDSCAPE, - SGI_TROPIC_LANDSCAPE, - SGI_TOYLAND_LANDSCAPE, - SGI_TRANSLATION_SELECTION, - SGI_TRANSLATION, - SGI_OPTIONS, - SGI_DIFFICULTIES, - SGI_SETTINGS_OPTIONS, - SGI_GRF_SETTINGS, - SGI_CONTENT_DOWNLOAD, - SGI_AI_SETTINGS, - SGI_EXIT, + WID_SGI_GENERATE_GAME, ///< Generate game button. + WID_SGI_LOAD_GAME, ///< Load game button. + WID_SGI_PLAY_SCENARIO, ///< Play scenario button. + WID_SGI_PLAY_HEIGHTMAP, ///< Play heightmap button. + WID_SGI_EDIT_SCENARIO, ///< Edit scenario button. + WID_SGI_PLAY_NETWORK, ///< Play network button. + WID_SGI_TEMPERATE_LANDSCAPE, ///< Select temperate landscape button. + WID_SGI_ARCTIC_LANDSCAPE, ///< Select arctic landscape button. + WID_SGI_TROPIC_LANDSCAPE, ///< Select tropic landscape button. + WID_SGI_TOYLAND_LANDSCAPE, ///< Select toyland landscape button. + WID_SGI_TRANSLATION_SELECTION, ///< Translation selection. + WID_SGI_TRANSLATION, ///< Translation. + WID_SGI_OPTIONS, ///< Options button. + WID_SGI_DIFFICULTIES, ///< Difficulties button. + WID_SGI_SETTINGS_OPTIONS, ///< Settings button. + WID_SGI_GRF_SETTINGS, ///< NewGRF button. + WID_SGI_CONTENT_DOWNLOAD, ///< Content Download button. + WID_SGI_AI_SETTINGS, ///< AI button. + WID_SGI_EXIT, ///< Exit button. }; #endif /* WIDGETS_INTRO_WIDGET_H */ diff --git a/src/widgets/main_widget.h b/src/widgets/main_widget.h index 823e62283..7bb16804a 100644 --- a/src/widgets/main_widget.h +++ b/src/widgets/main_widget.h @@ -13,8 +13,8 @@ #define WIDGETS_MAIN_WIDGET_H /** Widgets of the WC_MAIN_WINDOW. */ -enum MainWindowWidgets { - MW_VIEWPORT, ///< Main window viewport. +enum MainWidgets { + WID_M_VIEWPORT, ///< Main window viewport. }; #endif /* WIDGETS_MAIN_WIDGET_H */ diff --git a/src/widgets/misc_widget.h b/src/widgets/misc_widget.h index b446509e2..13d37da97 100644 --- a/src/widgets/misc_widget.h +++ b/src/widgets/misc_widget.h @@ -14,35 +14,35 @@ /** Widgets of the WC_LAND_INFO. */ enum LandInfoWidgets { - LIW_BACKGROUND, ///< Background to draw on + WID_LI_BACKGROUND, ///< Background of the window. }; /** Widgets of the WC_TOOLTIPS. */ enum ToolTipsWidgets { - TTW_BACKGROUND, ///< Background to draw on + WID_TT_BACKGROUND, ///< Background of the window. }; /** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */ enum AboutWidgets { - AW_SCROLLING_TEXT, ///< The actually scrolling text - AW_WEBSITE, ///< URL of OpenTTD website + WID_A_SCROLLING_TEXT, ///< The actually scrolling text. + WID_A_WEBSITE, ///< URL of OpenTTD website. }; /** Widgets of the WC_QUERY_STRING (WC_QUERY_STRING is also used in QueryEditSignWidgets). */ enum QueryStringWidgets { - QUERY_STR_WIDGET_CAPTION, - QUERY_STR_WIDGET_TEXT, - QUERY_STR_WIDGET_DEFAULT, - QUERY_STR_WIDGET_CANCEL, - QUERY_STR_WIDGET_OK + WID_QS_CAPTION, ///< Caption of the window. + WID_QS_TEXT, ///< Text of the query. + WID_QS_DEFAULT, ///< Default button. + WID_QS_CANCEL, ///< Cancel button. + WID_QS_OK ///< OK button. }; /** Widgets of the WC_CONFIRM_POPUP_QUERY (WC_CONFIRM_POPUP_QUERY is also used in BootstrapAskForDownloadWidgets). */ enum QueryWidgets { - QUERY_WIDGET_CAPTION, - QUERY_WIDGET_TEXT, - QUERY_WIDGET_NO, - QUERY_WIDGET_YES + WID_Q_CAPTION, ///< Caption of the window. + WID_Q_TEXT, ///< Text of the query. + WID_Q_NO, ///< Yes button. + WID_Q_YES ///< No button. }; #endif /* WIDGETS_MISC_WIDGET_H */ |