src/station_gui.h
author peter1138
Tue, 22 Jan 2008 07:27:06 +0000
changeset 8374 7a1b6c89cb89
parent 8338 598af8119b97
child 8420 4ebc9752e7bd
permissions -rw-r--r--
(svn r11940) -Codechange: Store short filename once per open file instead of once per sprite cache entry. Not all file types need this, but most of the time no sprite cache entry needed it either.
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
8338
598af8119b97 (svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents: 8268
diff changeset
    27
	SLW_SORTDROPBTN    = 17, ///< Dropdown button
598af8119b97 (svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents: 8268
diff changeset
    28
	SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options
8016
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    29
8338
598af8119b97 (svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents: 8268
diff changeset
    30
	SLW_CARGOSTART     = 19, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets)
8016
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    31
};
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
/** 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
    34
enum StationViewWidgets {
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    35
	SVW_CLOSEBOX   =  0, ///< Close 'X' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    36
	SVW_CAPTION    =  1, ///< Caption of the window
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    37
	SVW_WAITING    =  3, ///< List of waiting cargo
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    38
	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    39
	SVW_RATINGLIST =  6, ///< Ratings of cargos
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    40
	SVW_LOCATION   =  7, ///< 'Location' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    41
	SVW_RATINGS    =  8, ///< 'Ratings' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    42
	SVW_ACCEPTS    =  8, ///< 'Accepts' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    43
	SVW_RENAME     =  9, ///< 'Rename' button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    44
	SVW_TRAINS     = 10, ///< List of scheduled trains button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    45
	SVW_ROADVEHS,        ///< List of scheduled road vehs button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    46
	SVW_PLANES,          ///< List of scheduled planes button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    47
	SVW_SHIPS,           ///< List of scheduled ships button
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    48
};
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
/* sorter stuff */
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    51
void RebuildStationLists();
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    52
void ResortStationLists();
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    53
8107
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    54
enum StationCoverageType {
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    55
	SCT_PASSENGERS_ONLY,
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    56
	SCT_NON_PASSENGERS_ONLY,
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    57
	SCT_ALL
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    58
};
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    59
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    60
void DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad);
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    61
void CheckRedrawStationCoverage(const Window *w);
bb7deea89175 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents: 8016
diff changeset
    62
8268
5027ad5e70a0 (svn r11832) -Codechange: get rid of (quite) some VARDEFs.
rubidium
parents: 8107
diff changeset
    63
extern bool _station_show_coverage;
5027ad5e70a0 (svn r11832) -Codechange: get rid of (quite) some VARDEFs.
rubidium
parents: 8107
diff changeset
    64
8016
1c7062ad5f50 (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    65
#endif /* STATION_GUI_H */