Changeset - r11816:51966ecac704
[Not reviewed]
master
0 2 0
alberth - 15 years ago 2009-05-03 10:38:35
alberth@openttd.org
(svn r16211) -Codechange: Moving StationListWidgets out of the window class, completing StationViewWidgets.
2 files changed with 7 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/station_gui.cpp
Show inline comments
 
@@ -79,11 +79,6 @@ static void StationsWndShowStationRating
 

	
 
typedef GUIList<const Station*> GUIStationList;
 

	
 
/**
 
 * The list of stations per company.
 
 */
 
class CompanyStationsWindow : public Window
 
{
 
	/** Enum for CompanyStations, referring to _company_stations_widgets */
 
	enum StationListWidgets {
 
		SLW_CLOSEBOX =  0,  ///< Close window button
 
@@ -112,6 +107,11 @@ class CompanyStationsWindow : public Win
 
		SLW_CARGOSTART,     ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets)
 
	};
 

	
 
/**
 
 * The list of stations per company.
 
 */
 
class CompanyStationsWindow : public Window
 
{
 
protected:
 
	/* Runtime saved values */
 
	static Listing last_sorting;
src/station_gui.h
Show inline comments
 
@@ -11,7 +11,9 @@
 
enum StationViewWidgets {
 
	SVW_CLOSEBOX   =  0, ///< Close 'X' button
 
	SVW_CAPTION    =  1, ///< Caption of the window
 
	SVW_STICKYBOX  =  2, ///< Sticky button
 
	SVW_WAITING    =  3, ///< List of waiting cargo
 
	SVW_SCROLLBAR  =  4, ///< Scrollbar
 
	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
 
	SVW_RATINGLIST =  5, ///< Ratings of cargos
 
	SVW_LOCATION   =  6, ///< 'Location' button
0 comments (0 inline, 0 general)