Changeset - r20283:2a199c78224c
[Not reviewed]
master
0 56 0
frosch - 11 years ago 2013-05-26 19:25:01
frosch@openttd.org
(svn r25290) -Add: Assign string names to notable windows.
56 files changed with 142 insertions and 140 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_gui.cpp
Show inline comments
 
@@ -258,7 +258,7 @@ static const NWidgetPart _nested_ai_list
 

	
 
/** Window definition for the ai list window. */
 
static WindowDesc _ai_list_desc(
 
	WDP_CENTER, 200, 234,
 
	WDP_CENTER, "settings_script_list", 200, 234,
 
	WC_AI_LIST, WC_NONE,
 
	0,
 
	_nested_ai_list_widgets, lengthof(_nested_ai_list_widgets)
 
@@ -604,7 +604,7 @@ static const NWidgetPart _nested_ai_sett
 

	
 
/** Window definition for the AI settings window. */
 
static WindowDesc _ai_settings_desc(
 
	WDP_CENTER, 500, 208,
 
	WDP_CENTER, "settings_script", 500, 208,
 
	WC_AI_SETTINGS, WC_NONE,
 
	0,
 
	_nested_ai_settings_widgets, lengthof(_nested_ai_settings_widgets)
 
@@ -698,7 +698,7 @@ static const NWidgetPart _nested_ai_conf
 

	
 
/** Window definition for the configure AI window. */
 
static WindowDesc _ai_config_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, "settings_script_config", 0, 0,
 
	WC_GAME_OPTIONS, WC_NONE,
 
	0,
 
	_nested_ai_config_widgets, lengthof(_nested_ai_config_widgets)
 
@@ -1487,7 +1487,7 @@ static const NWidgetPart _nested_ai_debu
 

	
 
/** Window definition for the AI debug window. */
 
static WindowDesc _ai_debug_desc(
 
	WDP_AUTO, 600, 450,
 
	WDP_AUTO, "script_debug", 600, 450,
 
	WC_AI_DEBUG, WC_NONE,
 
	0,
 
	_nested_ai_debug_widgets, lengthof(_nested_ai_debug_widgets)
src/airport_gui.cpp
Show inline comments
 
@@ -166,7 +166,7 @@ static const NWidgetPart _nested_air_too
 
};
 

	
 
static WindowDesc _air_toolbar_desc(
 
	WDP_ALIGN_TOOLBAR, 0, 0,
 
	WDP_ALIGN_TOOLBAR, "toolbar_air", 0, 0,
 
	WC_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_air_toolbar_widgets, lengthof(_nested_air_toolbar_widgets)
 
@@ -555,7 +555,7 @@ static const NWidgetPart _nested_build_a
 
};
 

	
 
static WindowDesc _build_airport_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "build_station_air", 0, 0,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_airport_widgets, lengthof(_nested_build_airport_widgets)
src/autoreplace_gui.cpp
Show inline comments
 
@@ -564,7 +564,7 @@ static const NWidgetPart _nested_replace
 
};
 

	
 
static WindowDesc _replace_rail_vehicle_desc(
 
	WDP_AUTO, 500, 140,
 
	WDP_AUTO, "replace_vehicle_train", 500, 140,
 
	WC_REPLACE_VEHICLE, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_replace_rail_vehicle_widgets, lengthof(_nested_replace_rail_vehicle_widgets)
 
@@ -596,7 +596,7 @@ static const NWidgetPart _nested_replace
 
};
 

	
 
static WindowDesc _replace_vehicle_desc(
 
	WDP_AUTO, 456, 118,
 
	WDP_AUTO, "replace_vehicle", 456, 118,
 
	WC_REPLACE_VEHICLE, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_replace_vehicle_widgets, lengthof(_nested_replace_vehicle_widgets)
src/bootstrap_gui.cpp
Show inline comments
 
@@ -38,7 +38,7 @@ static const struct NWidgetPart _backgro
 
 * Window description for the background window to prevent smearing.
 
 */
 
static WindowDesc _background_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_BOOTSTRAP, WC_NONE,
 
	0,
 
	_background_widgets, lengthof(_background_widgets)
 
@@ -71,7 +71,7 @@ static const NWidgetPart _nested_boostra
 

	
 
/** Window description for the download window */
 
static WindowDesc _bootstrap_download_status_window_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_NETWORK_STATUS_WINDOW, WC_NONE,
 
	WDF_MODAL,
 
	_nested_boostrap_download_status_window_widgets, lengthof(_nested_boostrap_download_status_window_widgets)
 
@@ -116,7 +116,7 @@ static const NWidgetPart _bootstrap_quer
 

	
 
/** The window description for the query. */
 
static WindowDesc _bootstrap_query_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_CONFIRM_POPUP_QUERY, WC_NONE,
 
	0,
 
	_bootstrap_query_widgets, lengthof(_bootstrap_query_widgets)
src/bridge_gui.cpp
Show inline comments
 
@@ -352,7 +352,7 @@ static const NWidgetPart _nested_build_b
 

	
 
/** Window definition for the rail bridge selection window. */
 
static WindowDesc _build_bridge_desc(
 
	WDP_AUTO, 200, 114,
 
	WDP_AUTO, "build_bridge", 200, 114,
 
	WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_bridge_widgets, lengthof(_nested_build_bridge_widgets)
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -1405,7 +1405,7 @@ struct BuildVehicleWindow : Window {
 
};
 

	
 
static WindowDesc _build_vehicle_desc(
 
	WDP_AUTO, 240, 268,
 
	WDP_AUTO, "build_vehicle", 240, 268,
 
	WC_BUILD_VEHICLE, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_vehicle_widgets, lengthof(_nested_build_vehicle_widgets)
src/cheat_gui.cpp
Show inline comments
 
@@ -349,7 +349,7 @@ struct CheatWindow : Window {
 

	
 
/** Window description of the cheats GUI. */
 
static WindowDesc _cheats_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "cheats", 0, 0,
 
	WC_CHEATS, WC_NONE,
 
	0,
 
	_nested_cheat_widgets, lengthof(_nested_cheat_widgets)
src/company_gui.cpp
Show inline comments
 
@@ -464,7 +464,7 @@ struct CompanyFinancesWindow : Window {
 
Money CompanyFinancesWindow::max_money = INT32_MAX;
 

	
 
static WindowDesc _company_finances_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "company_finances", 0, 0,
 
	WC_FINANCES, WC_NONE,
 
	0,
 
	_nested_company_finances_widgets, lengthof(_nested_company_finances_widgets)
 
@@ -842,7 +842,7 @@ static const NWidgetPart _nested_select_
 
};
 

	
 
static WindowDesc _select_company_livery_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "company_livery", 0, 0,
 
	WC_COMPANY_COLOUR, WC_NONE,
 
	0,
 
	_nested_select_company_livery_widgets, lengthof(_nested_select_company_livery_widgets)
 
@@ -1480,7 +1480,7 @@ const StringID SelectCompanyManagerFaceW
 

	
 
/** Company manager face selection window description */
 
static WindowDesc _select_company_manager_face_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "company_face", 0, 0,
 
	WC_COMPANY_MANAGER_FACE, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_select_company_manager_face_widgets, lengthof(_nested_select_company_manager_face_widgets)
 
@@ -1834,7 +1834,7 @@ struct CompanyInfrastructureWindow : Win
 
};
 

	
 
static WindowDesc _company_infrastructure_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "company_infrastructure", 0, 0,
 
	WC_COMPANY_INFRASTRUCTURE, WC_NONE,
 
	0,
 
	_nested_company_infrastructure_widgets, lengthof(_nested_company_infrastructure_widgets)
 
@@ -2411,7 +2411,7 @@ struct CompanyWindow : Window
 
};
 

	
 
static WindowDesc _company_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "company", 0, 0,
 
	WC_COMPANY, WC_NONE,
 
	0,
 
	_nested_company_widgets, lengthof(_nested_company_widgets)
 
@@ -2523,7 +2523,7 @@ static const NWidgetPart _nested_buy_com
 
};
 

	
 
static WindowDesc _buy_company_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUY_COMPANY, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
src/console_gui.cpp
Show inline comments
 
@@ -159,7 +159,7 @@ static const struct NWidgetPart _nested_
 
};
 

	
 
static WindowDesc _console_window_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_CONSOLE, WC_NONE,
 
	0,
 
	_nested_console_window_widgets, lengthof(_nested_console_window_widgets)
src/date_gui.cpp
Show inline comments
 
@@ -195,7 +195,7 @@ static const NWidgetPart _nested_set_dat
 

	
 
/** Description of the date setting window. */
 
static WindowDesc _set_date_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_SET_DATE, WC_NONE,
 
	0,
 
	_nested_set_date_widgets, lengthof(_nested_set_date_widgets)
src/depot_gui.cpp
Show inline comments
 
@@ -79,28 +79,28 @@ static const NWidgetPart _nested_train_d
 
};
 

	
 
static WindowDesc _train_depot_desc(
 
	WDP_AUTO, 362, 123,
 
	WDP_AUTO, "depot_train", 362, 123,
 
	WC_VEHICLE_DEPOT, WC_NONE,
 
	0,
 
	_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
 
);
 

	
 
static WindowDesc _road_depot_desc(
 
	WDP_AUTO, 316, 97,
 
	WDP_AUTO, "depot_roadveh", 316, 97,
 
	WC_VEHICLE_DEPOT, WC_NONE,
 
	0,
 
	_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
 
);
 

	
 
static WindowDesc _ship_depot_desc(
 
	WDP_AUTO, 306, 99,
 
	WDP_AUTO, "depot_ship", 306, 99,
 
	WC_VEHICLE_DEPOT, WC_NONE,
 
	0,
 
	_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
 
);
 

	
 
static WindowDesc _aircraft_depot_desc(
 
	WDP_AUTO, 332, 99,
 
	WDP_AUTO, "depot_aircraft", 332, 99,
 
	WC_VEHICLE_DEPOT, WC_NONE,
 
	0,
 
	_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
src/dock_gui.cpp
Show inline comments
 
@@ -314,7 +314,7 @@ static const NWidgetPart _nested_build_d
 
};
 

	
 
static WindowDesc _build_docks_toolbar_desc(
 
	WDP_ALIGN_TOOLBAR, 0, 0,
 
	WDP_ALIGN_TOOLBAR, "toolbar_water", 0, 0,
 
	WC_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_docks_toolbar_widgets, lengthof(_nested_build_docks_toolbar_widgets)
 
@@ -366,7 +366,7 @@ static const NWidgetPart _nested_build_d
 

	
 
/** Window definition for the build docks in scenario editor window. */
 
static WindowDesc _build_docks_scen_toolbar_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "toolbar_water_scen", 0, 0,
 
	WC_SCEN_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_docks_scen_toolbar_widgets, lengthof(_nested_build_docks_scen_toolbar_widgets)
 
@@ -466,7 +466,7 @@ static const NWidgetPart _nested_build_d
 
};
 

	
 
static WindowDesc _build_dock_station_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_dock_station_widgets, lengthof(_nested_build_dock_station_widgets)
 
@@ -543,7 +543,7 @@ static const NWidgetPart _nested_build_d
 
};
 

	
 
static WindowDesc _build_docks_depot_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_docks_depot_widgets, lengthof(_nested_build_docks_depot_widgets)
src/engine_gui.cpp
Show inline comments
 
@@ -121,7 +121,7 @@ struct EnginePreviewWindow : Window {
 
};
 

	
 
static WindowDesc _engine_preview_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, "engine_preview", 0, 0,
 
	WC_ENGINE_PREVIEW, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_engine_preview_widgets, lengthof(_nested_engine_preview_widgets)
src/error_gui.cpp
Show inline comments
 
@@ -40,7 +40,7 @@ static const NWidgetPart _nested_errmsg_
 
};
 

	
 
static WindowDesc _errmsg_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, "error", 0, 0,
 
	WC_ERRMSG, WC_NONE,
 
	0,
 
	_nested_errmsg_widgets, lengthof(_nested_errmsg_widgets)
 
@@ -60,7 +60,7 @@ static const NWidgetPart _nested_errmsg_
 
};
 

	
 
static WindowDesc _errmsg_face_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, "error_face", 0, 0,
 
	WC_ERRMSG, WC_NONE,
 
	0,
 
	_nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets)
src/fios_gui.cpp
Show inline comments
 
@@ -697,7 +697,7 @@ public:
 

	
 
/** Load game/scenario */
 
static WindowDesc _load_dialog_desc(
 
	WDP_CENTER, 500, 294,
 
	WDP_CENTER, "load_game", 500, 294,
 
	WC_SAVELOAD, WC_NONE,
 
	0,
 
	_nested_load_dialog_widgets, lengthof(_nested_load_dialog_widgets)
 
@@ -705,7 +705,7 @@ static WindowDesc _load_dialog_desc(
 

	
 
/** Load heightmap */
 
static WindowDesc _load_heightmap_dialog_desc(
 
	WDP_CENTER, 257, 320,
 
	WDP_CENTER, "load_heightmap", 257, 320,
 
	WC_SAVELOAD, WC_NONE,
 
	0,
 
	_nested_load_heightmap_dialog_widgets, lengthof(_nested_load_heightmap_dialog_widgets)
 
@@ -713,7 +713,7 @@ static WindowDesc _load_heightmap_dialog
 

	
 
/** Save game/scenario */
 
static WindowDesc _save_dialog_desc(
 
	WDP_CENTER, 500, 294,
 
	WDP_CENTER, "save_game", 500, 294,
 
	WC_SAVELOAD, WC_NONE,
 
	0,
 
	_nested_save_dialog_widgets, lengthof(_nested_save_dialog_widgets)
src/genworld_gui.cpp
Show inline comments
 
@@ -797,14 +797,14 @@ struct GenerateLandscapeWindow : public 
 
};
 

	
 
static WindowDesc _generate_landscape_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_GENERATE_LANDSCAPE, WC_NONE,
 
	0,
 
	_nested_generate_landscape_widgets, lengthof(_nested_generate_landscape_widgets)
 
);
 

	
 
static WindowDesc _heightmap_load_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_GENERATE_LANDSCAPE, WC_NONE,
 
	0,
 
	_nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
 
@@ -1098,7 +1098,7 @@ static const NWidgetPart _nested_create_
 
};
 

	
 
static WindowDesc _create_scenario_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_GENERATE_LANDSCAPE, WC_NONE,
 
	0,
 
	_nested_create_scenario_widgets, lengthof(_nested_create_scenario_widgets)
 
@@ -1126,7 +1126,7 @@ static const NWidgetPart _nested_generat
 

	
 

	
 
static WindowDesc _generate_progress_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_MODAL_PROGRESS, WC_NONE,
 
	0,
 
	_nested_generate_progress_widgets, lengthof(_nested_generate_progress_widgets)
src/goal_gui.cpp
Show inline comments
 
@@ -231,7 +231,7 @@ static const NWidgetPart _nested_goals_l
 
};
 

	
 
static WindowDesc _goals_list_desc(
 
	WDP_AUTO, 500, 127,
 
	WDP_AUTO, "list_goals", 500, 127,
 
	WC_GOALS_LIST, WC_NONE,
 
	0,
 
	_nested_goals_list_widgets, lengthof(_nested_goals_list_widgets)
 
@@ -360,7 +360,7 @@ static const NWidgetPart _nested_goal_qu
 
};
 

	
 
static WindowDesc _goal_question_list_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_GOAL_QUESTION, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_goal_question_widgets, lengthof(_nested_goal_question_widgets)
src/graph_gui.cpp
Show inline comments
 
@@ -141,7 +141,7 @@ static const NWidgetPart _nested_graph_l
 
};
 

	
 
static WindowDesc _graph_legend_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_legend", 0, 0,
 
	WC_GRAPH_LEGEND, WC_NONE,
 
	0,
 
	_nested_graph_legend_widgets, lengthof(_nested_graph_legend_widgets)
 
@@ -643,7 +643,7 @@ static const NWidgetPart _nested_operati
 
};
 

	
 
static WindowDesc _operating_profit_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_operating_profit", 0, 0,
 
	WC_OPERATING_PROFIT, WC_NONE,
 
	0,
 
	_nested_operating_profit_widgets, lengthof(_nested_operating_profit_widgets)
 
@@ -693,7 +693,7 @@ static const NWidgetPart _nested_income_
 
};
 

	
 
static WindowDesc _income_graph_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_income", 0, 0,
 
	WC_INCOME_GRAPH, WC_NONE,
 
	0,
 
	_nested_income_graph_widgets, lengthof(_nested_income_graph_widgets)
 
@@ -741,7 +741,7 @@ static const NWidgetPart _nested_deliver
 
};
 

	
 
static WindowDesc _delivered_cargo_graph_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_delivered_cargo", 0, 0,
 
	WC_DELIVERED_CARGO, WC_NONE,
 
	0,
 
	_nested_delivered_cargo_graph_widgets, lengthof(_nested_delivered_cargo_graph_widgets)
 
@@ -796,7 +796,7 @@ static const NWidgetPart _nested_perform
 
};
 

	
 
static WindowDesc _performance_history_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_performance", 0, 0,
 
	WC_PERFORMANCE_HISTORY, WC_NONE,
 
	0,
 
	_nested_performance_history_widgets, lengthof(_nested_performance_history_widgets)
 
@@ -844,7 +844,7 @@ static const NWidgetPart _nested_company
 
};
 

	
 
static WindowDesc _company_value_graph_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_company_value", 0, 0,
 
	WC_COMPANY_VALUE, WC_NONE,
 
	0,
 
	_nested_company_value_graph_widgets, lengthof(_nested_company_value_graph_widgets)
 
@@ -1074,7 +1074,7 @@ static const NWidgetPart _nested_cargo_p
 
};
 

	
 
static WindowDesc _cargo_payment_rates_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "graph_cargo_payment_rates", 0, 0,
 
	WC_PAYMENT_RATES, WC_NONE,
 
	0,
 
	_nested_cargo_payment_rates_widgets, lengthof(_nested_cargo_payment_rates_widgets)
 
@@ -1263,7 +1263,7 @@ static const NWidgetPart _nested_company
 
};
 

	
 
static WindowDesc _company_league_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "league", 0, 0,
 
	WC_COMPANY_LEAGUE, WC_NONE,
 
	0,
 
	_nested_company_league_widgets, lengthof(_nested_company_league_widgets)
 
@@ -1562,7 +1562,7 @@ static const NWidgetPart _nested_perform
 
};
 

	
 
static WindowDesc _performance_rating_detail_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "league_details", 0, 0,
 
	WC_PERFORMANCE_DETAIL, WC_NONE,
 
	0,
 
	_nested_performance_rating_detail_widgets, lengthof(_nested_performance_rating_detail_widgets)
src/group_gui.cpp
Show inline comments
 
@@ -799,14 +799,14 @@ public:
 

	
 

	
 
static WindowDesc _other_group_desc(
 
	WDP_AUTO, 460, 246,
 
	WDP_AUTO, "list_groups", 460, 246,
 
	WC_INVALID, WC_NONE,
 
	0,
 
	_nested_group_widgets, lengthof(_nested_group_widgets)
 
);
 

	
 
static WindowDesc _train_group_desc(
 
	WDP_AUTO, 525, 246,
 
	WDP_AUTO, "list_groups_train", 525, 246,
 
	WC_TRAINS_LIST, WC_NONE,
 
	0,
 
	_nested_group_widgets, lengthof(_nested_group_widgets)
src/highscore_gui.cpp
Show inline comments
 
@@ -204,14 +204,14 @@ static const NWidgetPart _nested_highsco
 
};
 

	
 
static WindowDesc _highscore_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_HIGHSCORE, WC_NONE,
 
	0,
 
	_nested_highscore_widgets, lengthof(_nested_highscore_widgets)
 
);
 

	
 
static WindowDesc _endgame_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_ENDSCREEN, WC_NONE,
 
	0,
 
	_nested_highscore_widgets, lengthof(_nested_highscore_widgets)
src/industry_gui.cpp
Show inline comments
 
@@ -188,7 +188,7 @@ static const NWidgetPart _nested_build_i
 

	
 
/** Window definition of the dynamic place industries gui */
 
static WindowDesc _build_industry_desc(
 
	WDP_AUTO, 170, 212,
 
	WDP_AUTO, "build_industry", 170, 212,
 
	WC_BUILD_INDUSTRY, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_industry_widgets, lengthof(_nested_build_industry_widgets)
 
@@ -1018,7 +1018,7 @@ static const NWidgetPart _nested_industr
 

	
 
/** Window definition of the view industry gui */
 
static WindowDesc _industry_view_desc(
 
	WDP_AUTO, 260, 120,
 
	WDP_AUTO, "view_industry", 260, 120,
 
	WC_INDUSTRY_VIEW, WC_NONE,
 
	0,
 
	_nested_industry_view_widgets, lengthof(_nested_industry_view_widgets)
 
@@ -1389,7 +1389,7 @@ const StringID IndustryDirectoryWindow::
 

	
 
/** Window definition of the industry directory gui */
 
static WindowDesc _industry_directory_desc(
 
	WDP_AUTO, 428, 190,
 
	WDP_AUTO, "list_industries", 428, 190,
 
	WC_INDUSTRY_DIRECTORY, WC_NONE,
 
	0,
 
	_nested_industry_directory_widgets, lengthof(_nested_industry_directory_widgets)
 
@@ -1430,7 +1430,7 @@ static const NWidgetPart _nested_industr
 

	
 
/** Window description for the industry cargoes window. */
 
static WindowDesc _industry_cargoes_desc(
 
	WDP_AUTO, 300, 210,
 
	WDP_AUTO, "industry_cargoes", 300, 210,
 
	WC_INDUSTRY_CARGOES, WC_NONE,
 
	0,
 
	_nested_industry_cargoes_widgets, lengthof(_nested_industry_cargoes_widgets)
src/intro_gui.cpp
Show inline comments
 
@@ -247,7 +247,7 @@ static const NWidgetPart _nested_select_
 
};
 

	
 
static WindowDesc _select_game_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_SELECT_GAME, WC_NONE,
 
	0,
 
	_nested_select_game_widgets, lengthof(_nested_select_game_widgets)
src/linkgraph/linkgraph_gui.cpp
Show inline comments
 
@@ -381,7 +381,7 @@ assert_compile(WID_LGL_SATURATION_LAST -
 
		lengthof(LinkGraphOverlay::LINK_COLOURS) - 1);
 

	
 
static WindowDesc _linkgraph_legend_desc(
 
	WDP_MANUAL, 300, 314,
 
	WDP_MANUAL, "toolbar_linkgraph", 300, 314,
 
	WC_LINKGRAPH_LEGEND, WC_NONE,
 
	0,
 
	_nested_linkgraph_legend_widgets, lengthof(_nested_linkgraph_legend_widgets)
src/main_gui.cpp
Show inline comments
 
@@ -207,7 +207,7 @@ static const struct NWidgetPart _nested_
 
};
 

	
 
static WindowDesc _main_window_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_MAIN_WINDOW, WC_NONE,
 
	0,
 
	_nested_main_window_widgets, lengthof(_nested_main_window_widgets)
src/misc_gui.cpp
Show inline comments
 
@@ -49,7 +49,7 @@ static const NWidgetPart _nested_land_in
 
};
 

	
 
static WindowDesc _land_info_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "land_info", 0, 0,
 
	WC_LAND_INFO, WC_NONE,
 
	0,
 
	_nested_land_info_widgets, lengthof(_nested_land_info_widgets)
 
@@ -366,7 +366,7 @@ static const NWidgetPart _nested_about_w
 
};
 

	
 
static WindowDesc _about_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_GAME_OPTIONS, WC_NONE,
 
	0,
 
	_nested_about_widgets, lengthof(_nested_about_widgets)
 
@@ -616,7 +616,7 @@ static const NWidgetPart _nested_tooltip
 
};
 

	
 
static WindowDesc _tool_tips_desc(
 
	WDP_MANUAL, 0, 0, // Coordinates and sizes are not used,
 
	WDP_MANUAL, NULL, 0, 0, // Coordinates and sizes are not used,
 
	WC_TOOLTIPS, WC_NONE,
 
	0,
 
	_nested_tooltips_widgets, lengthof(_nested_tooltips_widgets)
 
@@ -919,7 +919,7 @@ static const NWidgetPart _nested_query_s
 
};
 

	
 
static WindowDesc _query_string_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, "query_string", 0, 0,
 
	WC_QUERY_STRING, WC_NONE,
 
	0,
 
	_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
 
@@ -1060,7 +1060,7 @@ static const NWidgetPart _nested_query_w
 
};
 

	
 
static WindowDesc _query_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_CONFIRM_POPUP_QUERY, WC_NONE,
 
	WDF_MODAL,
 
	_nested_query_widgets, lengthof(_nested_query_widgets)
src/music_gui.cpp
Show inline comments
 
@@ -496,7 +496,7 @@ static const NWidgetPart _nested_music_t
 
};
 

	
 
static WindowDesc _music_track_selection_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "music_track", 0, 0,
 
	WC_MUSIC_TRACK_SELECTION, WC_NONE,
 
	0,
 
	_nested_music_track_selection_widgets, lengthof(_nested_music_track_selection_widgets)
 
@@ -759,7 +759,7 @@ static const NWidgetPart _nested_music_w
 
};
 

	
 
static WindowDesc _music_window_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "music", 0, 0,
 
	WC_MUSIC_WINDOW, WC_NONE,
 
	0,
 
	_nested_music_window_widgets, lengthof(_nested_music_window_widgets)
src/network/network_chat_gui.cpp
Show inline comments
 
@@ -541,7 +541,7 @@ static const NWidgetPart _nested_chat_wi
 

	
 
/** The description of the chat window. */
 
static WindowDesc _chat_window_desc(
 
	WDP_MANUAL, 640, 14, // x, y, width, height
 
	WDP_MANUAL, NULL, 640, 14, // x, y, width, height
 
	WC_SEND_NETWORK_MSG, WC_NONE,
 
	0,
 
	_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
src/network/network_content_gui.cpp
Show inline comments
 
@@ -92,7 +92,7 @@ static const NWidgetPart _nested_network
 

	
 
/** Window description for the download window */
 
static WindowDesc _network_content_download_status_window_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_NETWORK_STATUS_WINDOW, WC_NONE,
 
	WDF_MODAL,
 
	_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets)
 
@@ -1033,7 +1033,7 @@ static const NWidgetPart _nested_network
 

	
 
/** Window description of the content list */
 
static WindowDesc _network_content_list_desc(
 
	WDP_CENTER, 630, 460,
 
	WDP_CENTER, "list_content", 630, 460,
 
	WC_NETWORK_WINDOW, WC_NONE,
 
	0,
 
	_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets)
src/network/network_gui.cpp
Show inline comments
 
@@ -1012,7 +1012,7 @@ static const NWidgetPart _nested_network
 
};
 

	
 
static WindowDesc _network_game_window_desc(
 
	WDP_CENTER, 1000, 730,
 
	WDP_CENTER, "list_servers", 1000, 730,
 
	WC_NETWORK_WINDOW, WC_NONE,
 
	0,
 
	_nested_network_game_widgets, lengthof(_nested_network_game_widgets)
 
@@ -1327,7 +1327,7 @@ static const NWidgetPart _nested_network
 
};
 

	
 
static WindowDesc _network_start_server_window_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_NETWORK_WINDOW, WC_NONE,
 
	0,
 
	_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
 
@@ -1616,7 +1616,7 @@ static const NWidgetPart _nested_network
 
};
 

	
 
static WindowDesc _network_lobby_window_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_NETWORK_WINDOW, WC_NONE,
 
	0,
 
	_nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
 
@@ -1665,7 +1665,7 @@ static const NWidgetPart _nested_client_
 
};
 

	
 
static WindowDesc _client_list_popup_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_CLIENT_LIST_POPUP, WC_CLIENT_LIST,
 
	0,
 
	_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
 
@@ -1841,7 +1841,7 @@ static const NWidgetPart _nested_client_
 
};
 

	
 
static WindowDesc _client_list_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "list_clients", 0, 0,
 
	WC_CLIENT_LIST, WC_NONE,
 
	0,
 
	_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
 
@@ -2113,7 +2113,7 @@ static const NWidgetPart _nested_network
 
};
 

	
 
static WindowDesc _network_join_status_window_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_NETWORK_STATUS_WINDOW, WC_NONE,
 
	WDF_MODAL,
 
	_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
 
@@ -2207,7 +2207,7 @@ static const NWidgetPart _nested_network
 
};
 

	
 
static WindowDesc _network_company_password_window_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
 
	0,
 
	_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
src/newgrf_debug_gui.cpp
Show inline comments
 
@@ -519,7 +519,7 @@ static const NWidgetPart _nested_newgrf_
 
};
 

	
 
static WindowDesc _newgrf_inspect_desc(
 
	WDP_AUTO, 400, 300,
 
	WDP_AUTO, "newgrf_inspect", 400, 300,
 
	WC_NEWGRF_INSPECT, WC_NONE,
 
	0,
 
	_nested_newgrf_inspect_widgets, lengthof(_nested_newgrf_inspect_widgets)
 
@@ -873,7 +873,7 @@ static const NWidgetPart _nested_sprite_
 
};
 

	
 
static WindowDesc _sprite_aligner_desc(
 
	WDP_AUTO, 400, 300,
 
	WDP_AUTO, "sprite_aligner", 400, 300,
 
	WC_SPRITE_ALIGNER, WC_NONE,
 
	0,
 
	_nested_sprite_aligner_widgets, lengthof(_nested_sprite_aligner_widgets)
src/newgrf_gui.cpp
Show inline comments
 
@@ -529,7 +529,7 @@ static const NWidgetPart _nested_newgrf_
 

	
 
/** Window definition for the change grf parameters window */
 
static WindowDesc _newgrf_parameters_desc(
 
	WDP_CENTER, 500, 208,
 
	WDP_CENTER, "settings_newgrf_config", 500, 208,
 
	WC_GRF_PARAMETERS, WC_NONE,
 
	0,
 
	_nested_newgrf_parameter_widgets, lengthof(_nested_newgrf_parameter_widgets)
 
@@ -1878,7 +1878,7 @@ static const NWidgetPart _nested_newgrf_
 

	
 
/* Window definition of the manage newgrfs window */
 
static WindowDesc _newgrf_desc(
 
	WDP_CENTER, 300, 263,
 
	WDP_CENTER, "settings_newgrf", 300, 263,
 
	WC_GAME_OPTIONS, WC_NONE,
 
	0,
 
	_nested_newgrf_widgets, lengthof(_nested_newgrf_widgets)
 
@@ -1949,7 +1949,7 @@ static const NWidgetPart _nested_scan_pr
 

	
 
/** Description of the widgets and other settings of the window. */
 
static WindowDesc _scan_progress_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_MODAL_PROGRESS, WC_NONE,
 
	0,
 
	_nested_scan_progress_widgets, lengthof(_nested_scan_progress_widgets)
src/news_gui.cpp
Show inline comments
 
@@ -90,7 +90,7 @@ static const NWidgetPart _nested_normal_
 
};
 

	
 
static WindowDesc _normal_news_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_NEWS_WINDOW, WC_NONE,
 
	0,
 
	_nested_normal_news_widgets, lengthof(_nested_normal_news_widgets)
 
@@ -117,7 +117,7 @@ static const NWidgetPart _nested_vehicle
 
};
 

	
 
static WindowDesc _vehicle_news_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_NEWS_WINDOW, WC_NONE,
 
	0,
 
	_nested_vehicle_news_widgets, lengthof(_nested_vehicle_news_widgets)
 
@@ -148,7 +148,7 @@ static const NWidgetPart _nested_company
 
};
 

	
 
static WindowDesc _company_news_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_NEWS_WINDOW, WC_NONE,
 
	0,
 
	_nested_company_news_widgets, lengthof(_nested_company_news_widgets)
 
@@ -171,7 +171,7 @@ static const NWidgetPart _nested_thin_ne
 
};
 

	
 
static WindowDesc _thin_news_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_NEWS_WINDOW, WC_NONE,
 
	0,
 
	_nested_thin_news_widgets, lengthof(_nested_thin_news_widgets)
 
@@ -195,7 +195,7 @@ static const NWidgetPart _nested_small_n
 
};
 

	
 
static WindowDesc _small_news_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_NEWS_WINDOW, WC_NONE,
 
	0,
 
	_nested_small_news_widgets, lengthof(_nested_small_news_widgets)
 
@@ -1110,7 +1110,7 @@ static const NWidgetPart _nested_message
 
};
 

	
 
static WindowDesc _message_history_desc(
 
	WDP_AUTO, 400, 140,
 
	WDP_AUTO, "list_news", 400, 140,
 
	WC_MESSAGE_HISTORY, WC_NONE,
 
	0,
 
	_nested_message_history, lengthof(_nested_message_history)
src/object_gui.cpp
Show inline comments
 
@@ -489,7 +489,7 @@ static const NWidgetPart _nested_build_o
 
};
 

	
 
static WindowDesc _build_object_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "build_object", 0, 0,
 
	WC_BUILD_OBJECT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_object_widgets, lengthof(_nested_build_object_widgets)
src/order_gui.cpp
Show inline comments
 
@@ -1594,7 +1594,7 @@ static const NWidgetPart _nested_orders_
 
};
 

	
 
static WindowDesc _orders_train_desc(
 
	WDP_AUTO, 384, 100,
 
	WDP_AUTO, "view_vehicle_orders_train", 384, 100,
 
	WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
 
	WDF_CONSTRUCTION,
 
	_nested_orders_train_widgets, lengthof(_nested_orders_train_widgets)
 
@@ -1665,7 +1665,7 @@ static const NWidgetPart _nested_orders_
 
};
 

	
 
static WindowDesc _orders_desc(
 
	WDP_AUTO, 384, 100,
 
	WDP_AUTO, "view_vehicle_orders", 384, 100,
 
	WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
 
	WDF_CONSTRUCTION,
 
	_nested_orders_widgets, lengthof(_nested_orders_widgets)
 
@@ -1690,7 +1690,7 @@ static const NWidgetPart _nested_other_o
 
};
 

	
 
static WindowDesc _other_orders_desc(
 
	WDP_AUTO, 384, 86,
 
	WDP_AUTO, "view_vehicle_orders_competitor", 384, 86,
 
	WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
 
	WDF_CONSTRUCTION,
 
	_nested_other_orders_widgets, lengthof(_nested_other_orders_widgets)
src/osk_gui.cpp
Show inline comments
 
@@ -340,7 +340,7 @@ static const NWidgetPart _nested_osk_wid
 
};
 

	
 
static WindowDesc _osk_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, "query_osk", 0, 0,
 
	WC_OSK, WC_NONE,
 
	0,
 
	_nested_osk_widgets, lengthof(_nested_osk_widgets)
src/rail_gui.cpp
Show inline comments
 
@@ -820,7 +820,7 @@ static const NWidgetPart _nested_build_r
 
};
 

	
 
static WindowDesc _build_rail_desc(
 
	WDP_ALIGN_TOOLBAR, 0, 0,
 
	WDP_ALIGN_TOOLBAR, "toolbar_rail", 0, 0,
 
	WC_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_rail_widgets, lengthof(_nested_build_rail_widgets)
 
@@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_station
 

	
 
/** High level window description of the station-build window (default & newGRF) */
 
static WindowDesc _station_builder_desc(
 
	WDP_AUTO, 350, 0,
 
	WDP_AUTO, "build_station_rail", 350, 0,
 
	WC_BUILD_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_station_builder_widgets, lengthof(_nested_station_builder_widgets)
 
@@ -1615,7 +1615,7 @@ static const NWidgetPart _nested_signal_
 

	
 
/** Signal selection window description */
 
static WindowDesc _signal_builder_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "build_signal", 0, 0,
 
	WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_signal_builder_widgets, lengthof(_nested_signal_builder_widgets)
 
@@ -1692,7 +1692,7 @@ static const NWidgetPart _nested_build_d
 
};
 

	
 
static WindowDesc _build_depot_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_depot_widgets, lengthof(_nested_build_depot_widgets)
 
@@ -1785,7 +1785,7 @@ static const NWidgetPart _nested_build_w
 
};
 

	
 
static WindowDesc _build_waypoint_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "build_waypoint", 0, 0,
 
	WC_BUILD_WAYPOINT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_waypoint_widgets, lengthof(_nested_build_waypoint_widgets)
src/road_gui.cpp
Show inline comments
 
@@ -714,7 +714,7 @@ static const NWidgetPart _nested_build_r
 
};
 

	
 
static WindowDesc _build_road_desc(
 
	WDP_ALIGN_TOOLBAR, 0, 0,
 
	WDP_ALIGN_TOOLBAR, "toolbar_road", 0, 0,
 
	WC_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_road_widgets, lengthof(_nested_build_road_widgets)
 
@@ -753,7 +753,7 @@ static const NWidgetPart _nested_build_t
 
};
 

	
 
static WindowDesc _build_tramway_desc(
 
	WDP_ALIGN_TOOLBAR, 0, 0,
 
	WDP_ALIGN_TOOLBAR, "toolbar_tramway", 0, 0,
 
	WC_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_tramway_widgets, lengthof(_nested_build_tramway_widgets)
 
@@ -813,7 +813,7 @@ static const NWidgetPart _nested_build_r
 
};
 

	
 
static WindowDesc _build_road_scen_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "toolbar_road_scen", 0, 0,
 
	WC_SCEN_BUILD_TOOLBAR, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_road_scen_widgets, lengthof(_nested_build_road_scen_widgets)
 
@@ -910,7 +910,7 @@ static const NWidgetPart _nested_build_r
 
};
 

	
 
static WindowDesc _build_road_depot_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_road_depot_widgets, lengthof(_nested_build_road_depot_widgets)
 
@@ -1064,7 +1064,7 @@ static const NWidgetPart _nested_rv_stat
 
};
 

	
 
static WindowDesc _rv_station_picker_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, NULL, 0, 0,
 
	WC_BUS_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_rv_station_picker_widgets, lengthof(_nested_rv_station_picker_widgets)
src/settings_gui.cpp
Show inline comments
 
@@ -663,7 +663,7 @@ static const NWidgetPart _nested_game_op
 
};
 

	
 
static WindowDesc _game_options_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, "settings_game", 0, 0,
 
	WC_GAME_OPTIONS, WC_NONE,
 
	0,
 
	_nested_game_options_widgets, lengthof(_nested_game_options_widgets)
 
@@ -2262,7 +2262,7 @@ static const NWidgetPart _nested_setting
 
};
 

	
 
static WindowDesc _settings_selection_desc(
 
	WDP_CENTER, 510, 450,
 
	WDP_CENTER, "settings", 510, 450,
 
	WC_GAME_OPTIONS, WC_NONE,
 
	0,
 
	_nested_settings_selection_widgets, lengthof(_nested_settings_selection_widgets)
 
@@ -2555,7 +2555,7 @@ static const NWidgetPart _nested_cust_cu
 
};
 

	
 
static WindowDesc _cust_currency_desc(
 
	WDP_CENTER, 0, 0,
 
	WDP_CENTER, NULL, 0, 0,
 
	WC_CUSTOM_CURRENCY, WC_NONE,
 
	0,
 
	_nested_cust_currency_widgets, lengthof(_nested_cust_currency_widgets)
src/signs_gui.cpp
Show inline comments
 
@@ -370,7 +370,7 @@ static const NWidgetPart _nested_sign_li
 
};
 

	
 
static WindowDesc _sign_list_desc(
 
	WDP_AUTO, 358, 138,
 
	WDP_AUTO, "list_signs", 358, 138,
 
	WC_SIGN_LIST, WC_NONE,
 
	0,
 
	_nested_sign_list_widgets, lengthof(_nested_sign_list_widgets)
 
@@ -532,7 +532,7 @@ static const NWidgetPart _nested_query_s
 
};
 

	
 
static WindowDesc _query_sign_edit_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "query_sign", 0, 0,
 
	WC_QUERY_STRING, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)
src/smallmap_gui.cpp
Show inline comments
 
@@ -1777,7 +1777,7 @@ static const NWidgetPart _nested_smallma
 
};
 

	
 
static WindowDesc _smallmap_desc(
 
	WDP_AUTO, 484, 314,
 
	WDP_AUTO, "smallmap", 484, 314,
 
	WC_SMALLMAP, WC_NONE,
 
	0,
 
	_nested_smallmap_widgets, lengthof(_nested_smallmap_widgets)
src/station_gui.cpp
Show inline comments
 
@@ -712,7 +712,7 @@ static const NWidgetPart _nested_company
 
};
 

	
 
static WindowDesc _company_stations_desc(
 
	WDP_AUTO, 358, 162,
 
	WDP_AUTO, "list_stations", 358, 162,
 
	WC_STATION_LIST, WC_NONE,
 
	0,
 
	_nested_company_stations_widgets, lengthof(_nested_company_stations_widgets)
 
@@ -1184,7 +1184,7 @@ struct StationViewWindow : public Window
 

	
 

	
 
static WindowDesc _station_view_desc(
 
	WDP_AUTO, 249, 110,
 
	WDP_AUTO, "view_station", 249, 110,
 
	WC_STATION_VIEW, WC_NONE,
 
	0,
 
	_nested_station_view_widgets, lengthof(_nested_station_view_widgets)
 
@@ -1428,7 +1428,7 @@ struct SelectStationWindow : Window {
 
};
 

	
 
static WindowDesc _select_station_desc(
 
	WDP_AUTO, 200, 180,
 
	WDP_AUTO, "build_station_join", 200, 180,
 
	WC_SELECT_STATION, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_select_station_widgets, lengthof(_nested_select_station_widgets)
src/statusbar_gui.cpp
Show inline comments
 
@@ -236,7 +236,7 @@ static const NWidgetPart _nested_main_st
 
};
 

	
 
static WindowDesc _main_status_desc(
 
	WDP_MANUAL, 640, 12,
 
	WDP_MANUAL, NULL, 640, 12,
 
	WC_STATUS_BAR, WC_NONE,
 
	WDF_NO_FOCUS,
 
	_nested_main_status_widgets, lengthof(_nested_main_status_widgets)
src/subsidy_gui.cpp
Show inline comments
 
@@ -239,7 +239,7 @@ static const NWidgetPart _nested_subsidi
 
};
 

	
 
static WindowDesc _subsidies_list_desc(
 
	WDP_AUTO, 500, 127,
 
	WDP_AUTO, "list_subsidies", 500, 127,
 
	WC_SUBSIDIES_LIST, WC_NONE,
 
	0,
 
	_nested_subsidies_list_widgets, lengthof(_nested_subsidies_list_widgets)
src/terraform_gui.cpp
Show inline comments
 
@@ -342,7 +342,7 @@ static const NWidgetPart _nested_terrafo
 
};
 

	
 
static WindowDesc _terraform_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, "toolbar_landscape", 0, 0,
 
	WC_SCEN_LAND_GEN, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_terraform_widgets, lengthof(_nested_terraform_widgets)
 
@@ -740,7 +740,7 @@ Hotkey<ScenarioEditorLandscapeGeneration
 
Hotkey<ScenarioEditorLandscapeGenerationWindow> *_terraform_editor_hotkeys = ScenarioEditorLandscapeGenerationWindow::terraform_editor_hotkeys;
 

	
 
static WindowDesc _scen_edit_land_gen_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "toolbar_landscape_scen", 0, 0,
 
	WC_SCEN_LAND_GEN, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_scen_edit_land_gen_widgets, lengthof(_nested_scen_edit_land_gen_widgets)
src/textfile_gui.cpp
Show inline comments
 
@@ -43,7 +43,7 @@ static const NWidgetPart _nested_textfil
 

	
 
/** Window definition for the textfile window */
 
static WindowDesc _textfile_desc(
 
	WDP_CENTER, 630, 460,
 
	WDP_CENTER, "textfile", 630, 460,
 
	WC_TEXTFILE, WC_NONE,
 
	0,
 
	_nested_textfile_widgets, lengthof(_nested_textfile_widgets)
src/timetable_gui.cpp
Show inline comments
 
@@ -690,7 +690,7 @@ static const NWidgetPart _nested_timetab
 
};
 

	
 
static WindowDesc _timetable_desc(
 
	WDP_AUTO, 400, 130,
 
	WDP_AUTO, "view_vehicle_timetable", 400, 130,
 
	WC_VEHICLE_TIMETABLE, WC_VEHICLE_VIEW,
 
	WDF_CONSTRUCTION,
 
	_nested_timetable_widgets, lengthof(_nested_timetable_widgets)
src/toolbar_gui.cpp
Show inline comments
 
@@ -1787,7 +1787,7 @@ static const NWidgetPart _nested_toolbar
 
};
 

	
 
static WindowDesc _toolb_normal_desc(
 
	WDP_MANUAL, 640, 22,
 
	WDP_MANUAL, NULL, 640, 22,
 
	WC_MAIN_TOOLBAR, WC_NONE,
 
	WDF_NO_FOCUS,
 
	_nested_toolbar_normal_widgets, lengthof(_nested_toolbar_normal_widgets)
 
@@ -2096,7 +2096,7 @@ static const NWidgetPart _nested_toolb_s
 
};
 

	
 
static WindowDesc _toolb_scen_desc(
 
	WDP_MANUAL, 640, 22,
 
	WDP_MANUAL, NULL, 640, 22,
 
	WC_MAIN_TOOLBAR, WC_NONE,
 
	WDF_NO_FOCUS,
 
	_nested_toolb_scen_widgets, lengthof(_nested_toolb_scen_widgets)
src/town_gui.cpp
Show inline comments
 
@@ -281,7 +281,7 @@ public:
 
};
 

	
 
static WindowDesc _town_authority_desc(
 
	WDP_AUTO, 317, 222,
 
	WDP_AUTO, "view_town_authority", 317, 222,
 
	WC_TOWN_AUTHORITY, WC_NONE,
 
	0,
 
	_nested_town_authority_widgets, lengthof(_nested_town_authority_widgets)
 
@@ -551,7 +551,7 @@ static const NWidgetPart _nested_town_ga
 
};
 

	
 
static WindowDesc _town_game_view_desc(
 
	WDP_AUTO, 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
 
	WDP_AUTO, "view_town", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
 
	WC_TOWN_VIEW, WC_NONE,
 
	0,
 
	_nested_town_game_view_widgets, lengthof(_nested_town_game_view_widgets)
 
@@ -582,7 +582,7 @@ static const NWidgetPart _nested_town_ed
 
};
 

	
 
static WindowDesc _town_editor_view_desc(
 
	WDP_AUTO, 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
 
	WDP_AUTO, "view_town_scen", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
 
	WC_TOWN_VIEW, WC_NONE,
 
	0,
 
	_nested_town_editor_view_widgets, lengthof(_nested_town_editor_view_widgets)
 
@@ -938,7 +938,7 @@ GUITownList::SortFunction * const TownDi
 
};
 

	
 
static WindowDesc _town_directory_desc(
 
	WDP_AUTO, 208, 202,
 
	WDP_AUTO, "list_towns", 208, 202,
 
	WC_TOWN_DIRECTORY, WC_NONE,
 
	0,
 
	_nested_town_directory_widgets, lengthof(_nested_town_directory_widgets)
 
@@ -1179,7 +1179,7 @@ public:
 
};
 

	
 
static WindowDesc _found_town_desc(
 
	WDP_AUTO, 160, 162,
 
	WDP_AUTO, "build_town", 160, 162,
 
	WC_FOUND_TOWN, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_found_town_widgets, lengthof(_nested_found_town_widgets)
src/transparency_gui.cpp
Show inline comments
 
@@ -147,7 +147,7 @@ static const NWidgetPart _nested_transpa
 
};
 

	
 
static WindowDesc _transparency_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, "toolbar_transparency", 0, 0,
 
	WC_TRANSPARENCY_TOOLBAR, WC_NONE,
 
	0,
 
	_nested_transparency_widgets, lengthof(_nested_transparency_widgets)
src/tree_gui.cpp
Show inline comments
 
@@ -239,7 +239,7 @@ static const NWidgetPart _nested_build_t
 
};
 

	
 
static WindowDesc _build_trees_desc(
 
	WDP_AUTO, 0, 0,
 
	WDP_AUTO, "build_tree", 0, 0,
 
	WC_BUILD_TREES, WC_NONE,
 
	WDF_CONSTRUCTION,
 
	_nested_build_trees_widgets, lengthof(_nested_build_trees_widgets)
src/vehicle_gui.cpp
Show inline comments
 
@@ -1000,7 +1000,7 @@ static const NWidgetPart _nested_vehicle
 
};
 

	
 
static WindowDesc _vehicle_refit_desc(
 
	WDP_AUTO, 240, 174,
 
	WDP_AUTO, "view_vehicle_refit", 240, 174,
 
	WC_VEHICLE_REFIT, WC_VEHICLE_VIEW,
 
	WDF_CONSTRUCTION,
 
	_nested_vehicle_refit_widgets, lengthof(_nested_vehicle_refit_widgets)
 
@@ -1697,7 +1697,7 @@ public:
 
};
 

	
 
static WindowDesc _vehicle_list_desc(
 
	WDP_AUTO, 260, 246,
 
	WDP_AUTO, "list_vehicles", 260, 246,
 
	WC_INVALID, WC_NONE,
 
	0,
 
	_nested_vehicle_list, lengthof(_nested_vehicle_list)
 
@@ -2202,7 +2202,7 @@ struct VehicleDetailsWindow : Window {
 

	
 
/** Vehicle details window descriptor. */
 
static WindowDesc _train_vehicle_details_desc(
 
	WDP_AUTO, 405, 178,
 
	WDP_AUTO, "view_vehicle_details_train", 405, 178,
 
	WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
 
	0,
 
	_nested_train_vehicle_details_widgets, lengthof(_nested_train_vehicle_details_widgets)
 
@@ -2210,7 +2210,7 @@ static WindowDesc _train_vehicle_details
 

	
 
/** Vehicle details window descriptor for other vehicles than a train. */
 
static WindowDesc _nontrain_vehicle_details_desc(
 
	WDP_AUTO, 405, 113,
 
	WDP_AUTO, "view_vehicle_details", 405, 113,
 
	WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
 
	0,
 
	_nested_nontrain_vehicle_details_widgets, lengthof(_nested_nontrain_vehicle_details_widgets)
 
@@ -2269,7 +2269,7 @@ static const NWidgetPart _nested_vehicle
 

	
 
/** Vehicle view window descriptor for all vehicles but trains. */
 
static WindowDesc _vehicle_view_desc(
 
	WDP_AUTO, 250, 116,
 
	WDP_AUTO, "view_vehicle", 250, 116,
 
	WC_VEHICLE_VIEW, WC_NONE,
 
	0,
 
	_nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets)
 
@@ -2280,7 +2280,7 @@ static WindowDesc _vehicle_view_desc(
 
 *  default_height are different for train view.
 
 */
 
static WindowDesc _train_view_desc(
 
	WDP_AUTO, 250, 134,
 
	WDP_AUTO, "view_vehicle_train", 250, 134,
 
	WC_VEHICLE_VIEW, WC_NONE,
 
	0,
 
	_nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets)
src/viewport_gui.cpp
Show inline comments
 
@@ -154,7 +154,7 @@ public:
 
};
 

	
 
static WindowDesc _extra_view_port_desc(
 
	WDP_AUTO, 300, 268,
 
	WDP_AUTO, "extra_viewport", 300, 268,
 
	WC_EXTRA_VIEW_PORT, WC_NONE,
 
	0,
 
	_nested_extra_view_port_widgets, lengthof(_nested_extra_view_port_widgets)
src/waypoint_gui.cpp
Show inline comments
 
@@ -171,7 +171,7 @@ static const NWidgetPart _nested_waypoin
 

	
 
/** The description of the waypoint view. */
 
static WindowDesc _waypoint_view_desc(
 
	WDP_AUTO, 260, 118,
 
	WDP_AUTO, "view_waypoint", 260, 118,
 
	WC_WAYPOINT_VIEW, WC_NONE,
 
	0,
 
	_nested_waypoint_view_widgets, lengthof(_nested_waypoint_view_widgets)
src/widgets/dropdown.cpp
Show inline comments
 
@@ -91,7 +91,7 @@ static const NWidgetPart _nested_dropdow
 
};
 

	
 
static WindowDesc _dropdown_desc(
 
	WDP_MANUAL, 0, 0,
 
	WDP_MANUAL, NULL, 0, 0,
 
	WC_DROPDOWN_MENU, WC_NONE,
 
	0,
 
	_nested_dropdown_menu_widgets, lengthof(_nested_dropdown_menu_widgets)
src/window.cpp
Show inline comments
 
@@ -73,7 +73,7 @@ bool _mouse_hovering;      ///< The mous
 
SpecialMouseMode _special_mouse_mode; ///< Mode of the mouse.
 

	
 
/** Window description constructor. */
 
WindowDesc::WindowDesc(WindowPosition def_pos, int16 def_width, int16 def_height,
 
WindowDesc::WindowDesc(WindowPosition def_pos, const char *ini_key, int16 def_width, int16 def_height,
 
			WindowClass window_class, WindowClass parent_class, uint32 flags,
 
			const NWidgetPart *nwid_parts, int16 nwid_length) :
 
	default_pos(def_pos),
 
@@ -81,6 +81,7 @@ WindowDesc::WindowDesc(WindowPosition de
 
	default_height(def_height),
 
	cls(window_class),
 
	parent_cls(parent_class),
 
	ini_key(ini_key),
 
	flags(flags),
 
	nwid_parts(nwid_parts),
 
	nwid_length(nwid_length)
src/window_gui.h
Show inline comments
 
@@ -165,7 +165,7 @@ Point GetToolbarAlignedWindowPosition(in
 
 */
 
struct WindowDesc : ZeroedMemoryAllocator {
 

	
 
	WindowDesc(WindowPosition default_pos, int16 def_width, int16 def_height,
 
	WindowDesc(WindowPosition default_pos, const char *ini_key, int16 def_width, int16 def_height,
 
			WindowClass window_class, WindowClass parent_class, uint32 flags,
 
			const NWidgetPart *nwid_parts, int16 nwid_length);
 

	
 
@@ -176,6 +176,7 @@ struct WindowDesc : ZeroedMemoryAllocato
 
	int16 default_height;          ///< Preferred initial height of the window.
 
	WindowClass cls;               ///< Class of the window, @see WindowClass.
 
	WindowClass parent_cls;        ///< Class of the parent window. @see WindowClass
 
	const char *ini_key;           ///< Key to store window defaults in openttd.cfg. \c NULL if nothing shall be stored.
 
	uint32 flags;                  ///< Flags. @see WindowDefaultFlag
 
	const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window.
 
	int16 nwid_length;             ///< Length of the #nwid_parts array.
0 comments (0 inline, 0 general)