diff options
author | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
commit | 2aa774e831ad1cb7849c998759449ef777c5c664 (patch) | |
tree | 37293298be999cb3446fe4af7f11e107bfa17c3d /src/town_gui.cpp | |
parent | fd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff) | |
download | openttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz |
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 56 |
1 files changed, 2 insertions, 54 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index e2aa9b95a..4f77dfedd 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -36,20 +36,12 @@ #include "genworld.h" #include "sprite.h" +#include "widgets/town_widget.h" + #include "table/strings.h" typedef GUIList<const Town*> GUITownList; -/** Widget numbers of the town authority window. */ -enum TownAuthorityWidgets { - TWA_CAPTION, - TWA_RATING_INFO, ///< Overview with ratings for each company. - TWA_COMMAND_LIST, ///< List of commands for the player. - TWA_SCROLLBAR, - TWA_ACTION_INFO, ///< Additional information about the action. - TWA_EXECUTE, ///< Do-it button. -}; - static const NWidgetPart _nested_town_authority_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_BROWN), @@ -303,17 +295,6 @@ static void ShowTownAuthorityWindow(uint town) AllocateWindowDescFront<TownAuthorityWindow>(&_town_authority_desc, town); } -/** Widget numbers of the town view window. */ -enum TownViewWidgets { - TVW_CAPTION, - TVW_VIEWPORT, - TVW_INFOPANEL, - TVW_CENTERVIEW, - TVW_SHOWAUTHORITY, - TVW_CHANGENAME, - TVW_EXPAND, - TVW_DELETE, -}; /* Town view window. */ struct TownViewWindow : Window { @@ -609,16 +590,6 @@ void ShowTownViewWindow(TownID town) } } -/** Widget numbers of town directory window. */ -enum TownDirectoryWidgets { - TDW_SORTNAME, - TDW_SORTPOPULATION, - TDW_CENTERTOWN, - TDW_SCROLLBAR, - TDW_BOTTOM_PANEL, - TDW_BOTTOM_TEXT, -}; - static const NWidgetPart _nested_town_directory_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_BROWN), @@ -915,29 +886,6 @@ void CcFoundRandomTown(const CommandCost &result, TileIndex tile, uint32 p1, uin if (result.Succeeded()) ScrollMainWindowToTile(Town::Get(_new_town_id)->xy); } -/** Widget numbers of town scenario editor window. */ -enum TownScenarioEditorWidgets { - TSEW_BACKGROUND, - TSEW_NEWTOWN, - TSEW_RANDOMTOWN, - TSEW_MANYRANDOMTOWNS, - TSEW_TOWNNAME_TEXT, - TSEW_TOWNNAME_EDITBOX, - TSEW_TOWNNAME_RANDOM, - TSEW_TOWNSIZE, - TSEW_SIZE_SMALL, - TSEW_SIZE_MEDIUM, - TSEW_SIZE_LARGE, - TSEW_SIZE_RANDOM, - TSEW_CITY, - TSEW_TOWNLAYOUT, - TSEW_LAYOUT_ORIGINAL, - TSEW_LAYOUT_BETTER, - TSEW_LAYOUT_GRID2, - TSEW_LAYOUT_GRID3, - TSEW_LAYOUT_RANDOM, -}; - static const NWidgetPart _nested_found_town_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN), |