(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
parent
a9dafdff48
commit
8896bea306
@ -0,0 +1,40 @@
|
||||
/* $Id$ */
|
||||
|
||||
/** @file window.h Window functions not directly related to making/drawing windows. */
|
||||
|
||||
#ifndef WINDOW_FUNC_H
|
||||
#define WINDOW_FUNC_H
|
||||
|
||||
#include "window_type.h"
|
||||
|
||||
/**
|
||||
* Marks the window as dirty for repaint.
|
||||
*
|
||||
* @ingroup dirty
|
||||
*/
|
||||
void SetWindowDirty(const Window *w);
|
||||
void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
|
||||
void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
|
||||
|
||||
Window *FindWindowById(WindowClass cls, WindowNumber number);
|
||||
void DeleteWindow(Window *w);
|
||||
void DeletePlayerWindows(PlayerID pi);
|
||||
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
|
||||
|
||||
void ResizeWindow(Window *w, int x, int y);
|
||||
|
||||
void InitWindowSystem();
|
||||
void UnInitWindowSystem();
|
||||
void ResetWindowSystem();
|
||||
void InputLoop();
|
||||
void InvalidateThisWindowData(Window *w);
|
||||
void InvalidateWindowData(WindowClass cls, WindowNumber number);
|
||||
void RelocateAllWindows(int neww, int newh);
|
||||
|
||||
void DeleteNonVitalWindows();
|
||||
void DeleteAllNonVitalWindows();
|
||||
void HideVitalWindows();
|
||||
void ShowVitalWindows();
|
||||
Window **FindWindowZPosition(const Window *w);
|
||||
|
||||
#endif /* WINDOW_FUNC_H */
|
@ -0,0 +1,98 @@
|
||||
/* $Id$ */
|
||||
|
||||
/** @file window_type.h Types related to windows */
|
||||
|
||||
#ifndef WINDOW_TYPE_H
|
||||
#define WINDOW_TYPE_H
|
||||
|
||||
#include "core/enum_type.hpp"
|
||||
|
||||
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,
|
||||
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,
|
||||
WC_PLAYER_COLOR,
|
||||
WC_QUERY_STRING,
|
||||
WC_SAVELOAD,
|
||||
WC_SELECT_GAME,
|
||||
WC_TOOLBAR_MENU,
|
||||
WC_INCOME_GRAPH,
|
||||
WC_OPERATING_PROFIT,
|
||||
WC_TOOLTIPS,
|
||||
WC_INDUSTRY_VIEW,
|
||||
WC_PLAYER_FACE,
|
||||
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_TOWN_GEN,
|
||||
WC_SCEN_INDUSTRY,
|
||||
WC_SCEN_BUILD_ROAD,
|
||||
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,
|
||||
};
|
||||
|
||||
struct Window;
|
||||
typedef int32 WindowNumber;
|
||||
|
||||
#endif /* WINDOW_TYPE_H */
|
Loading…
Reference in New Issue