src/station_gui.h
author rubidium
Sat, 15 Dec 2007 22:05:02 +0000
changeset 8575 dfc40de58c04
parent 8512 e77c8fb7c0ed
child 8603 88c5ce6a5215
permissions -rw-r--r--
(svn r11640) -Fix: missed change of include when moving stuff to random_func.cpp
8512
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     1
/* $Id$ */
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     2
e77c8fb7c0ed (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 */
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     4
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     5
#ifndef STATION_GUI_H
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     6
#define STATION_GUI_H
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     7
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     8
/** Enum for PlayerStations, referring to _player_stations_widgets */
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
     9
enum StationListWidgets {
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    10
	SLW_CLOSEBOX       =  0, ///< Close 'X' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    11
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    12
	SLW_LIST           =  3, ///< The main panel, list of stations
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    13
e77c8fb7c0ed (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
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    15
	SLW_TRUCK,
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    16
	SLW_BUS,
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    17
	SLW_AIRPLANE,
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    18
	SLW_SHIP,
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    19
	SLW_FACILALL,            ///< 'ALL' button - list all facilities
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    20
e77c8fb7c0ed (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
e77c8fb7c0ed (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
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    23
	SLW_CARGOALL       = 14, ///< 'ALL' button - list all stations
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    24
	SLW_PAN_RIGHT      = 15, ///< Panel right of list of cargo types
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    25
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    26
	SLW_SORTBY         = 16, ///< 'Sort by' button - reverse sort direction
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    27
	SLW_SORTCRITERIA   = 17, ///< Button - list of criteria
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    28
	SLW_SORTDROPBTN    = 18, ///< Dropdown button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    29
	SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    30
e77c8fb7c0ed (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)
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    32
};
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    33
e77c8fb7c0ed (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 */
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    35
enum StationViewWidgets {
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    36
	SVW_CLOSEBOX   =  0, ///< Close 'X' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    37
	SVW_CAPTION    =  1, ///< Caption of the window
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    38
	SVW_WAITING    =  3, ///< List of waiting cargo
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    39
	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    40
	SVW_RATINGLIST =  6, ///< Ratings of cargos
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    41
	SVW_LOCATION   =  7, ///< 'Location' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    42
	SVW_RATINGS    =  8, ///< 'Ratings' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    43
	SVW_ACCEPTS    =  8, ///< 'Accepts' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    44
	SVW_RENAME     =  9, ///< 'Rename' button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    45
	SVW_TRAINS     = 10, ///< List of scheduled trains button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    46
	SVW_ROADVEHS,        ///< List of scheduled road vehs button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    47
	SVW_PLANES,          ///< List of scheduled planes button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    48
	SVW_SHIPS,           ///< List of scheduled ships button
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    49
};
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    50
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    51
/* sorter stuff */
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    52
void RebuildStationLists();
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    53
void ResortStationLists();
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    54
e77c8fb7c0ed (svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff changeset
    55
#endif /* STATION_GUI_H */