src/station_gui.h
author smatz
Sun, 16 Dec 2007 15:38:51 +0000
changeset 8083 ad22eade501f
parent 8016 1c7062ad5f50
child 8107 bb7deea89175
permissions -rw-r--r--
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
8016
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     1
/* $Id$ */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     2
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     3
/** @file station_gui.h Contains enums and function declarations connected with stations GUI */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     4
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     5
#ifndef STATION_GUI_H
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     6
#define STATION_GUI_H
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     7
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     8
/** Enum for PlayerStations, referring to _player_stations_widgets */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     9
enum StationListWidgets {
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    10
	SLW_CLOSEBOX       =  0, ///< Close 'X' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    11
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    12
	SLW_LIST           =  3, ///< The main panel, list of stations
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    13
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    14
	SLW_TRAIN          =  6, ///< 'TRAIN' button - list only facilities where is a railroad station
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    15
	SLW_TRUCK,
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    16
	SLW_BUS,
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    17
	SLW_AIRPLANE,
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    18
	SLW_SHIP,
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    19
	SLW_FACILALL,            ///< 'ALL' button - list all facilities
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    20
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    21
	SLW_PAN_BETWEEN    = 12, ///< Small panel between list of types of ficilities and list of cargo types
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    22
	SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    23
	SLW_CARGOALL       = 14, ///< 'ALL' button - list all stations
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    24
	SLW_PAN_RIGHT      = 15, ///< Panel right of list of cargo types
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    25
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    26
	SLW_SORTBY         = 16, ///< 'Sort by' button - reverse sort direction
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    27
	SLW_SORTCRITERIA   = 17, ///< Button - list of criteria
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    28
	SLW_SORTDROPBTN    = 18, ///< Dropdown button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    29
	SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    30
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    31
	SLW_CARGOSTART     = 20, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets)
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    32
};
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    33
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    34
/** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    35
enum StationViewWidgets {
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    36
	SVW_CLOSEBOX   =  0, ///< Close 'X' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    37
	SVW_CAPTION    =  1, ///< Caption of the window
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    38
	SVW_WAITING    =  3, ///< List of waiting cargo
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    39
	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    40
	SVW_RATINGLIST =  6, ///< Ratings of cargos
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    41
	SVW_LOCATION   =  7, ///< 'Location' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    42
	SVW_RATINGS    =  8, ///< 'Ratings' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    43
	SVW_ACCEPTS    =  8, ///< 'Accepts' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    44
	SVW_RENAME     =  9, ///< 'Rename' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    45
	SVW_TRAINS     = 10, ///< List of scheduled trains button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    46
	SVW_ROADVEHS,        ///< List of scheduled road vehs button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    47
	SVW_PLANES,          ///< List of scheduled planes button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    48
	SVW_SHIPS,           ///< List of scheduled ships button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    49
};
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    50
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    51
/* sorter stuff */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    52
void RebuildStationLists();
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    53
void ResortStationLists();
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    54
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    55
#endif /* STATION_GUI_H */