Files
@ r14761:075075d449a9
Branch filter:
Location: cpp/openttd-patchpack/source/src/vehicle_gui_base.h - annotation
r14761:075075d449a9
1.8 KiB
text/x-c
(svn r19359) -Update from WebTranslator v3.0:
croatian - 5 changes by VoyagerOne
esperanto - 4 changes by Ailanto
finnish - 6 changes by jpx_
french - 5 changes by glx
german - 1 changes by planetmaker
greek - 6 changes by fumantsu
hungarian - 5 changes by Petert, alyr
slovak - 5 changes by keso53
slovenian - 5 changes by ntadej
spanish - 5 changes by Terkhen
croatian - 5 changes by VoyagerOne
esperanto - 4 changes by Ailanto
finnish - 6 changes by jpx_
french - 5 changes by glx
german - 1 changes by planetmaker
greek - 6 changes by fumantsu
hungarian - 5 changes by Petert, alyr
slovak - 5 changes by keso53
slovenian - 5 changes by ntadej
spanish - 5 changes by Terkhen
r10122:8be97f532491 r10122:8be97f532491 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r14248:a9050881acd7 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r13602:30f9b380fb13 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r14023:0dbab10e82db r10122:8be97f532491 r10122:8be97f532491 r11371:4a7632225c6c r10122:8be97f532491 r13348:a18e66ad9ec7 r13348:a18e66ad9ec7 r13348:a18e66ad9ec7 r13348:a18e66ad9ec7 r13348:a18e66ad9ec7 r13348:a18e66ad9ec7 r10122:8be97f532491 r10207:a1fc2f2a33db r10122:8be97f532491 r10122:8be97f532491 r13596:83142daf4c93 r13596:83142daf4c93 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 r10122:8be97f532491 | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file vehicle_gui_base.h Functions/classes shared between the different vehicle list GUIs. */
#ifndef VEHICLE_GUI_BASE_H
#define VEHICLE_GUI_BASE_H
#include "sortlist_type.h"
#include "window_gui.h"
typedef GUIList<const Vehicle*> GUIVehicleList;
struct BaseVehicleListWindow : public Window {
GUIVehicleList vehicles; ///< The list of vehicles
Listing *sorting; ///< Pointer to the vehicle type related sorting.
VehicleType vehicle_type; ///< The vehicle type that is sorted
byte unitnumber_digits; ///< The number of digits of the highest unit number
static const StringID vehicle_sorter_names[];
static GUIVehicleList::SortFunction * const vehicle_sorter_funcs[];
BaseVehicleListWindow() : Window()
{
this->vehicles.SetSortFuncs(this->vehicle_sorter_funcs);
}
void DrawVehicleListItems(VehicleID selected_vehicle, int line_height, const Rect &r) const;
void SortVehicleList();
void BuildVehicleList(Owner owner, uint16 index, uint16 window_type);
};
uint GetVehicleListHeight(VehicleType type, uint divisor = 1);
struct Sorting {
Listing aircraft;
Listing roadveh;
Listing ship;
Listing train;
};
extern Sorting _sorting;
#endif /* VEHICLE_GUI_BASE_H */
|