(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)

This commit is contained in:
rubidium
2009-03-15 15:12:06 +00:00
parent e9ae5ae307
commit f9def73be6
44 changed files with 369 additions and 348 deletions

View File

@@ -612,12 +612,12 @@ static const Widget _company_stations_widgets[] = {
{ WIDGETS_END},
};
static const WindowDesc _company_stations_desc = {
static const WindowDesc _company_stations_desc(
WDP_AUTO, WDP_AUTO, 358, 162, 358, 162,
WC_STATION_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_company_stations_widgets,
};
_company_stations_widgets
);
/**
* Opens window with list of company's stations
@@ -983,12 +983,12 @@ struct StationViewWindow : public Window {
};
static const WindowDesc _station_view_desc = {
static const WindowDesc _station_view_desc(
WDP_AUTO, WDP_AUTO, 249, 110, 249, 110,
WC_STATION_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
_station_view_widgets,
};
_station_view_widgets
);
/**
* Opens StationViewWindow for given station
@@ -1199,12 +1199,12 @@ struct SelectStationWindow : Window {
}
};
static const WindowDesc _select_station_desc = {
static const WindowDesc _select_station_desc(
WDP_AUTO, WDP_AUTO, 200, 92, 200, 182,
WC_SELECT_STATION, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
_select_station_widgets,
};
_select_station_widgets
);
/**