diff options
author | truebrain <truebrain@openttd.org> | 2011-12-16 16:39:48 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-16 16:39:48 +0000 |
commit | cb8e37197dcd1ab2f37ab3c6fc34cc87fdfbcb59 (patch) | |
tree | 1e20f91391d41cab441eceba695fb07576d2515c /src/widgets | |
parent | f578edd3bca11807a0e8245f6036d24d33d6a268 (diff) | |
download | openttd-cb8e37197dcd1ab2f37ab3c6fc34cc87fdfbcb59.tar.xz |
(svn r23534) -Codechange: document and rename widgets to be consistent and understandable
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/highscore_widget.h | 2 | ||||
-rw-r--r-- | src/widgets/industry_widget.h | 37 |
2 files changed, 19 insertions, 20 deletions
diff --git a/src/widgets/highscore_widget.h b/src/widgets/highscore_widget.h index f7cec2e8b..3430fd3ef 100644 --- a/src/widgets/highscore_widget.h +++ b/src/widgets/highscore_widget.h @@ -14,7 +14,7 @@ /** Widgets of the WC_HIGHSCORE / WC_ENDSCREEN. */ enum HighscoreWidgets { - HSW_BACKGROUND, + WID_H_BACKGROUND, ///< Background of the window. }; #endif /* WIDGETS_HIGHSCORE_WIDGET_H */ diff --git a/src/widgets/industry_widget.h b/src/widgets/industry_widget.h index 9a4f5aa54..70be85a2a 100644 --- a/src/widgets/industry_widget.h +++ b/src/widgets/industry_widget.h @@ -14,37 +14,36 @@ /** Widgets of the WC_BUILD_INDUSTRY. */ enum DynamicPlaceIndustriesWidgets { - DPIW_MATRIX_WIDGET, - DPIW_SCROLLBAR, - DPIW_INFOPANEL, - DPIW_DISPLAY_WIDGET, - DPIW_FUND_WIDGET, + WID_DPI_MATRIX_WIDGET, ///< Matrix of the industries. + WID_DPI_SCROLLBAR, ///< Scrollbar of the matrix. + WID_DPI_INFOPANEL, ///< Info panel about the industry. + WID_DPI_DISPLAY_WIDGET, ///< Display chain button. + WID_DPI_FUND_WIDGET, ///< Fund button. }; /** Widgets of the WC_INDUSTRY_VIEW. */ enum IndustryViewWidgets { - IVW_CAPTION, - IVW_VIEWPORT, - IVW_INFO, - IVW_GOTO, - IVW_DISPLAY, + WID_IV_CAPTION, ///< Caption of the window. + WID_IV_VIEWPORT, ///< Viewport of the industry. + WID_IV_INFO, ///< Info of the industry. + WID_IV_GOTO, ///< Goto button. + WID_IV_DISPLAY, ///< Display chain button. }; /** Widgets of the WC_INDUSTRY_DIRECTORY. */ enum IndustryDirectoryWidgets { - IDW_DROPDOWN_ORDER, - IDW_DROPDOWN_CRITERIA, - IDW_INDUSTRY_LIST, - IDW_SCROLLBAR, + WID_ID_DROPDOWN_ORDER, ///< Dropdown for the order of the sort. + WID_ID_DROPDOWN_CRITERIA, ///< Dropdown for the criteria of the sort. + WID_ID_INDUSTRY_LIST, ///< Industry list. + WID_ID_SCROLLBAR, ///< Scrollbar of the list. }; /** Widgets of the WC_INDUSTRY_CARGOES */ enum IndustryCargoesWidgets { - ICW_CAPTION, - ICW_NOTIFY, - ICW_PANEL, - ICW_SCROLLBAR, + WID_IC_CAPTION, ///< Caption of the window. + WID_IC_NOTIFY, ///< Row of buttons at the bottom. + WID_IC_PANEL, ///< Panel that shows the chain. + WID_IC_SCROLLBAR, ///< Scrollbar of the panel. }; - #endif /* WIDGETS_INDUSTRY_WIDGET_H */ |