2007-12-19 19:44:29 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2007-12-19 19:44:29 +00:00
|
|
|
/** @file window_type.h Types related to windows */
|
|
|
|
|
|
|
|
#ifndef WINDOW_TYPE_H
|
|
|
|
#define WINDOW_TYPE_H
|
|
|
|
|
|
|
|
|
2008-04-13 19:01:26 +00:00
|
|
|
/**
|
|
|
|
* Window classes
|
|
|
|
*/
|
2007-12-19 19:44:29 +00:00
|
|
|
enum WindowClass {
|
|
|
|
WC_NONE,
|
|
|
|
WC_MAIN_WINDOW = WC_NONE,
|
|
|
|
WC_MAIN_TOOLBAR,
|
|
|
|
WC_STATUS_BAR,
|
|
|
|
WC_BUILD_TOOLBAR,
|
|
|
|
WC_NEWS_WINDOW,
|
|
|
|
WC_TOWN_DIRECTORY,
|
|
|
|
WC_STATION_LIST,
|
|
|
|
WC_TOWN_VIEW,
|
2009-02-17 00:21:08 +00:00
|
|
|
WC_FOUND_TOWN,
|
2007-12-19 19:44:29 +00:00
|
|
|
WC_SMALLMAP,
|
|
|
|
WC_TRAINS_LIST,
|
|
|
|
WC_ROADVEH_LIST,
|
|
|
|
WC_SHIPS_LIST,
|
|
|
|
WC_AIRCRAFT_LIST,
|
|
|
|
WC_VEHICLE_VIEW,
|
|
|
|
WC_VEHICLE_DETAILS,
|
|
|
|
WC_VEHICLE_REFIT,
|
|
|
|
WC_VEHICLE_ORDERS,
|
|
|
|
WC_STATION_VIEW,
|
|
|
|
WC_VEHICLE_DEPOT,
|
|
|
|
WC_BUILD_VEHICLE,
|
|
|
|
WC_BUILD_BRIDGE,
|
|
|
|
WC_ERRMSG,
|
|
|
|
WC_BUILD_STATION,
|
|
|
|
WC_BUS_STATION,
|
|
|
|
WC_TRUCK_STATION,
|
|
|
|
WC_BUILD_DEPOT,
|
|
|
|
WC_COMPANY,
|
|
|
|
WC_FINANCES,
|
2009-02-09 02:57:15 +00:00
|
|
|
WC_COMPANY_COLOUR,
|
2007-12-19 19:44:29 +00:00
|
|
|
WC_QUERY_STRING,
|
|
|
|
WC_SAVELOAD,
|
|
|
|
WC_SELECT_GAME,
|
|
|
|
WC_TOOLBAR_MENU,
|
|
|
|
WC_INCOME_GRAPH,
|
|
|
|
WC_OPERATING_PROFIT,
|
|
|
|
WC_TOOLTIPS,
|
|
|
|
WC_INDUSTRY_VIEW,
|
2008-09-30 20:39:50 +00:00
|
|
|
WC_COMPANY_MANAGER_FACE,
|
2007-12-19 19:44:29 +00:00
|
|
|
WC_LAND_INFO,
|
|
|
|
WC_TOWN_AUTHORITY,
|
|
|
|
WC_SUBSIDIES_LIST,
|
|
|
|
WC_GRAPH_LEGEND,
|
|
|
|
WC_DELIVERED_CARGO,
|
|
|
|
WC_PERFORMANCE_HISTORY,
|
|
|
|
WC_COMPANY_VALUE,
|
|
|
|
WC_COMPANY_LEAGUE,
|
|
|
|
WC_BUY_COMPANY,
|
|
|
|
WC_PAYMENT_RATES,
|
|
|
|
WC_ENGINE_PREVIEW,
|
|
|
|
WC_MUSIC_WINDOW,
|
|
|
|
WC_MUSIC_TRACK_SELECTION,
|
|
|
|
WC_SCEN_LAND_GEN,
|
|
|
|
WC_SCEN_INDUSTRY,
|
2008-06-25 17:30:16 +00:00
|
|
|
WC_SCEN_BUILD_TOOLBAR,
|
2007-12-19 19:44:29 +00:00
|
|
|
WC_BUILD_TREES,
|
|
|
|
WC_SEND_NETWORK_MSG,
|
|
|
|
WC_DROPDOWN_MENU,
|
|
|
|
WC_BUILD_INDUSTRY,
|
|
|
|
WC_GAME_OPTIONS,
|
|
|
|
WC_NETWORK_WINDOW,
|
|
|
|
WC_INDUSTRY_DIRECTORY,
|
|
|
|
WC_MESSAGE_HISTORY,
|
|
|
|
WC_CHEATS,
|
|
|
|
WC_PERFORMANCE_DETAIL,
|
|
|
|
WC_CONSOLE,
|
|
|
|
WC_EXTRA_VIEW_PORT,
|
|
|
|
WC_CLIENT_LIST,
|
|
|
|
WC_NETWORK_STATUS_WINDOW,
|
|
|
|
WC_CUSTOM_CURRENCY,
|
|
|
|
WC_REPLACE_VEHICLE,
|
|
|
|
WC_HIGHSCORE,
|
|
|
|
WC_ENDSCREEN,
|
|
|
|
WC_SIGN_LIST,
|
|
|
|
WC_GENERATE_LANDSCAPE,
|
|
|
|
WC_GENERATE_PROGRESS_WINDOW,
|
|
|
|
WC_CONFIRM_POPUP_QUERY,
|
|
|
|
WC_TRANSPARENCY_TOOLBAR,
|
|
|
|
WC_VEHICLE_TIMETABLE,
|
|
|
|
WC_BUILD_SIGNAL,
|
|
|
|
WC_COMPANY_PASSWORD_WINDOW,
|
2008-03-26 10:08:17 +00:00
|
|
|
WC_OSK,
|
2008-08-20 01:29:05 +00:00
|
|
|
WC_WAYPOINT_VIEW,
|
2009-01-08 16:35:45 +00:00
|
|
|
WC_SELECT_STATION,
|
2009-11-25 23:38:59 +00:00
|
|
|
WC_SET_DATE,
|
2009-01-12 17:11:45 +00:00
|
|
|
WC_AI_DEBUG,
|
2009-01-20 16:49:10 +00:00
|
|
|
WC_AI_LIST,
|
|
|
|
WC_AI_SETTINGS,
|
2008-05-15 20:52:28 +00:00
|
|
|
|
|
|
|
WC_INVALID = 0xFFFF
|
2007-12-19 19:44:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Window;
|
2008-10-14 19:27:08 +00:00
|
|
|
|
|
|
|
/** Number to differentiate different windows of the same class */
|
2007-12-19 19:44:29 +00:00
|
|
|
typedef int32 WindowNumber;
|
|
|
|
|
|
|
|
#endif /* WINDOW_TYPE_H */
|