(svn r15291) -Cleanup: Move the station list widgets to their class from station_gui.h

-Fix: comment for ReallocT was wrong, the memory is not zeroed.
This commit is contained in:
Yexo
2009-01-29 02:42:36 +00:00
parent a57c73e2f9
commit e8f190849e
3 changed files with 33 additions and 30 deletions

View File

@@ -7,31 +7,6 @@
#include "command_type.h"
/** Enum for CompanyStations, referring to _company_stations_widgets */
enum StationListWidgets {
SLW_CLOSEBOX = 0, ///< Close 'X' button
SLW_LIST = 3, ///< The main panel, list of stations
SLW_TRAIN = 6, ///< 'TRAIN' button - list only facilities where is a railroad station
SLW_TRUCK,
SLW_BUS,
SLW_AIRPLANE,
SLW_SHIP,
SLW_FACILALL, ///< 'ALL' button - list all facilities
SLW_PAN_BETWEEN = 12, ///< Small panel between list of types of ficilities and list of cargo types
SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting
SLW_CARGOALL = 14, ///< 'ALL' button - list all stations
SLW_PAN_RIGHT = 15, ///< Panel right of list of cargo types
SLW_SORTBY = 16, ///< 'Sort by' button - reverse sort direction
SLW_SORTDROPBTN = 17, ///< Dropdown button
SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options
SLW_CARGOSTART = 19, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets)
};
/** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
enum StationViewWidgets {
SVW_CLOSEBOX = 0, ///< Close 'X' button