src/graph_gui.cpp
branchNewGRF_ports
changeset 6743 cabfaa4a0295
parent 6725 23339968083f
child 6870 ca3fd1fbe311
equal deleted inserted replaced
6742:1337d6c9b97b 6743:cabfaa4a0295
   307 {      WWT_PANEL,   RESIZE_NONE,    14,     2,   247,   100,   111, 0x0,                            STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
   307 {      WWT_PANEL,   RESIZE_NONE,    14,     2,   247,   100,   111, 0x0,                            STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
   308 {   WIDGETS_END},
   308 {   WIDGETS_END},
   309 };
   309 };
   310 
   310 
   311 static const WindowDesc _graph_legend_desc = {
   311 static const WindowDesc _graph_legend_desc = {
   312 	WDP_AUTO, WDP_AUTO, 250, 114,
   312 	WDP_AUTO, WDP_AUTO, 250, 114, 250, 114,
   313 	WC_GRAPH_LEGEND, WC_NONE,
   313 	WC_GRAPH_LEGEND, WC_NONE,
   314 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   314 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   315 	_graph_legend_widgets,
   315 	_graph_legend_widgets,
   316 	GraphLegendWndProc
   316 	GraphLegendWndProc
   317 };
   317 };
   405 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   173, 0x0,                             STR_NULL},
   405 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   173, 0x0,                             STR_NULL},
   406 {   WIDGETS_END},
   406 {   WIDGETS_END},
   407 };
   407 };
   408 
   408 
   409 static const WindowDesc _operating_profit_desc = {
   409 static const WindowDesc _operating_profit_desc = {
   410 	WDP_AUTO, WDP_AUTO, 576, 174,
   410 	WDP_AUTO, WDP_AUTO, 576, 174, 576, 174,
   411 	WC_OPERATING_PROFIT, WC_NONE,
   411 	WC_OPERATING_PROFIT, WC_NONE,
   412 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   412 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   413 	_operating_profit_widgets,
   413 	_operating_profit_widgets,
   414 	OperatingProfitWndProc
   414 	OperatingProfitWndProc
   415 };
   415 };
   474 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                   STR_NULL},
   474 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                   STR_NULL},
   475 {   WIDGETS_END},
   475 {   WIDGETS_END},
   476 };
   476 };
   477 
   477 
   478 static const WindowDesc _income_graph_desc = {
   478 static const WindowDesc _income_graph_desc = {
   479 	WDP_AUTO, WDP_AUTO, 576, 142,
   479 	WDP_AUTO, WDP_AUTO, 576, 142, 576, 142,
   480 	WC_INCOME_GRAPH, WC_NONE,
   480 	WC_INCOME_GRAPH, WC_NONE,
   481 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   481 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   482 	_income_graph_widgets,
   482 	_income_graph_widgets,
   483 	IncomeGraphWndProc
   483 	IncomeGraphWndProc
   484 };
   484 };
   541 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                               STR_NULL},
   541 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   141, 0x0,                               STR_NULL},
   542 {   WIDGETS_END},
   542 {   WIDGETS_END},
   543 };
   543 };
   544 
   544 
   545 static const WindowDesc _delivered_cargo_graph_desc = {
   545 static const WindowDesc _delivered_cargo_graph_desc = {
   546 	WDP_AUTO, WDP_AUTO, 576, 142,
   546 	WDP_AUTO, WDP_AUTO, 576, 142, 576, 142,
   547 	WC_DELIVERED_CARGO, WC_NONE,
   547 	WC_DELIVERED_CARGO, WC_NONE,
   548 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   548 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   549 	_delivered_cargo_graph_widgets,
   549 	_delivered_cargo_graph_widgets,
   550 	DeliveredCargoGraphWndProc
   550 	DeliveredCargoGraphWndProc
   551 };
   551 };
   610 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                                  STR_NULL},
   610 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                                  STR_NULL},
   611 {   WIDGETS_END},
   611 {   WIDGETS_END},
   612 };
   612 };
   613 
   613 
   614 static const WindowDesc _performance_history_desc = {
   614 static const WindowDesc _performance_history_desc = {
   615 	WDP_AUTO, WDP_AUTO, 576, 238,
   615 	WDP_AUTO, WDP_AUTO, 576, 238, 576, 238,
   616 	WC_PERFORMANCE_HISTORY, WC_NONE,
   616 	WC_PERFORMANCE_HISTORY, WC_NONE,
   617 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   617 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   618 	_performance_history_widgets,
   618 	_performance_history_widgets,
   619 	PerformanceHistoryWndProc
   619 	PerformanceHistoryWndProc
   620 };
   620 };
   677 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                     STR_NULL},
   677 {      WWT_PANEL,   RESIZE_NONE,    14,     0,   575,    14,   237, 0x0,                     STR_NULL},
   678 {   WIDGETS_END},
   678 {   WIDGETS_END},
   679 };
   679 };
   680 
   680 
   681 static const WindowDesc _company_value_graph_desc = {
   681 static const WindowDesc _company_value_graph_desc = {
   682 	WDP_AUTO, WDP_AUTO, 576, 238,
   682 	WDP_AUTO, WDP_AUTO, 576, 238, 576, 238,
   683 	WC_COMPANY_VALUE, WC_NONE,
   683 	WC_COMPANY_VALUE, WC_NONE,
   684 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   684 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   685 	_company_value_graph_widgets,
   685 	_company_value_graph_widgets,
   686 	CompanyValueGraphWndProc
   686 	CompanyValueGraphWndProc
   687 };
   687 };
   774 {      WWT_PANEL, RESIZE_BOTTOM,    14,     0,   567,    14,    45, 0x0,                          STR_NULL},
   774 {      WWT_PANEL, RESIZE_BOTTOM,    14,     0,   567,    14,    45, 0x0,                          STR_NULL},
   775 {   WIDGETS_END},
   775 {   WIDGETS_END},
   776 };
   776 };
   777 
   777 
   778 static const WindowDesc _cargo_payment_rates_desc = {
   778 static const WindowDesc _cargo_payment_rates_desc = {
   779 	WDP_AUTO, WDP_AUTO, 568, 46,
   779 	WDP_AUTO, WDP_AUTO, 568, 46, 568, 46,
   780 	WC_PAYMENT_RATES, WC_NONE,
   780 	WC_PAYMENT_RATES, WC_NONE,
   781 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   781 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   782 	_cargo_payment_rates_widgets,
   782 	_cargo_payment_rates_widgets,
   783 	CargoPaymentRatesWndProc
   783 	CargoPaymentRatesWndProc
   784 };
   784 };
   896 {      WWT_PANEL, RESIZE_NONE, 14,   0, 399, 14, 96, 0x0,                           STR_NULL},
   896 {      WWT_PANEL, RESIZE_NONE, 14,   0, 399, 14, 96, 0x0,                           STR_NULL},
   897 {   WIDGETS_END},
   897 {   WIDGETS_END},
   898 };
   898 };
   899 
   899 
   900 static const WindowDesc _company_league_desc = {
   900 static const WindowDesc _company_league_desc = {
   901 	WDP_AUTO, WDP_AUTO, 400, 97,
   901 	WDP_AUTO, WDP_AUTO, 400, 97, 400, 97,
   902 	WC_COMPANY_LEAGUE, WC_NONE,
   902 	WC_COMPANY_LEAGUE, WC_NONE,
   903 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
   903 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
   904 	_company_league_widgets,
   904 	_company_league_widgets,
   905 	CompanyLeagueWndProc
   905 	CompanyLeagueWndProc
   906 };
   906 };
  1135 {      WWT_PANEL,   RESIZE_NONE,    14,   261,   297,    14,    26, 0x0,                    STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
  1135 {      WWT_PANEL,   RESIZE_NONE,    14,   261,   297,    14,    26, 0x0,                    STR_704F_CLICK_HERE_TO_TOGGLE_COMPANY},
  1136 {   WIDGETS_END},
  1136 {   WIDGETS_END},
  1137 };
  1137 };
  1138 
  1138 
  1139 static const WindowDesc _performance_rating_detail_desc = {
  1139 static const WindowDesc _performance_rating_detail_desc = {
  1140 	WDP_AUTO, WDP_AUTO, 299, 228,
  1140 	WDP_AUTO, WDP_AUTO, 299, 228, 299, 228,
  1141 	WC_PERFORMANCE_DETAIL, WC_NONE,
  1141 	WC_PERFORMANCE_DETAIL, WC_NONE,
  1142 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
  1142 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
  1143 	_performance_rating_detail_widgets,
  1143 	_performance_rating_detail_widgets,
  1144 	PerformanceRatingDetailWndProc
  1144 	PerformanceRatingDetailWndProc
  1145 };
  1145 };