(svn r28004) -Update from Eints:
[openttd.git] / src / widgets / network_widget.h
blobf5773b8ea8d24be9ac416db3ce4d5453792701f3
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
10 /** @file network_widget.h Types related to the network widgets. */
12 #ifndef WIDGETS_NETWORK_WIDGET_H
13 #define WIDGETS_NETWORK_WIDGET_H
15 /** Widgets of the #NetworkGameWindow class. */
16 enum NetworkGameWidgets {
17 WID_NG_MAIN, ///< Main panel.
19 WID_NG_CONNECTION, ///< Label in front of connection droplist.
20 WID_NG_CONN_BTN, ///< 'Connection' droplist button.
21 WID_NG_CLIENT_LABEL, ///< Label in front of client name edit box.
22 WID_NG_CLIENT, ///< Panel with editbox to set client name.
23 WID_NG_FILTER_LABEL, ///< Label in front of the filter/search edit box.
24 WID_NG_FILTER, ///< Panel with the edit box to enter the search text.
26 WID_NG_HEADER, ///< Header container of the matrix.
27 WID_NG_NAME, ///< 'Name' button.
28 WID_NG_CLIENTS, ///< 'Clients' button.
29 WID_NG_MAPSIZE, ///< 'Map size' button.
30 WID_NG_DATE, ///< 'Date' button.
31 WID_NG_YEARS, ///< 'Years' button.
32 WID_NG_INFO, ///< Third button in the game list panel.
34 WID_NG_MATRIX, ///< Panel with list of games.
35 WID_NG_SCROLLBAR, ///< Scrollbar of matrix.
37 WID_NG_LASTJOINED_LABEL, ///< Label "Last joined server:".
38 WID_NG_LASTJOINED, ///< Info about the last joined server.
39 WID_NG_LASTJOINED_SPACER, ///< Spacer after last joined server panel.
41 WID_NG_DETAILS, ///< Panel with game details.
42 WID_NG_DETAILS_SPACER, ///< Spacer for game actual details.
43 WID_NG_JOIN, ///< 'Join game' button.
44 WID_NG_REFRESH, ///< 'Refresh server' button.
45 WID_NG_NEWGRF, ///< 'NewGRF Settings' button.
46 WID_NG_NEWGRF_SEL, ///< Selection 'widget' to hide the NewGRF settings.
47 WID_NG_NEWGRF_MISSING, ///< 'Find missing NewGRF online' button.
48 WID_NG_NEWGRF_MISSING_SEL, ///< Selection widget for the above button.
50 WID_NG_FIND, ///< 'Find server' button.
51 WID_NG_ADD, ///< 'Add server' button.
52 WID_NG_START, ///< 'Start server' button.
53 WID_NG_CANCEL, ///< 'Cancel' button.
56 /** Widgets of the #NetworkStartServerWindow class. */
57 enum NetworkStartServerWidgets {
58 WID_NSS_BACKGROUND, ///< Background of the window.
59 WID_NSS_GAMENAME_LABEL, ///< Label for the game name.
60 WID_NSS_GAMENAME, ///< Background for editbox to set game name.
61 WID_NSS_SETPWD, ///< 'Set password' button.
62 WID_NSS_CONNTYPE_LABEL, ///< Label for 'connection type'.
63 WID_NSS_CONNTYPE_BTN, ///< 'Connection type' droplist button.
64 WID_NSS_CLIENTS_LABEL, ///< Label for 'max clients'.
65 WID_NSS_CLIENTS_BTND, ///< 'Max clients' downarrow.
66 WID_NSS_CLIENTS_TXT, ///< 'Max clients' text.
67 WID_NSS_CLIENTS_BTNU, ///< 'Max clients' uparrow.
68 WID_NSS_COMPANIES_LABEL, ///< Label for 'max companies'.
69 WID_NSS_COMPANIES_BTND, ///< 'Max companies' downarrow.
70 WID_NSS_COMPANIES_TXT, ///< 'Max companies' text.
71 WID_NSS_COMPANIES_BTNU, ///< 'Max companies' uparrow.
72 WID_NSS_SPECTATORS_LABEL, ///< Label for 'max spectators'.
73 WID_NSS_SPECTATORS_BTND, ///< 'Max spectators' downarrow.
74 WID_NSS_SPECTATORS_TXT, ///< 'Max spectators' text.
75 WID_NSS_SPECTATORS_BTNU, ///< 'Max spectators' uparrow.
77 WID_NSS_LANGUAGE_LABEL, ///< Label for 'language spoken'.
78 WID_NSS_LANGUAGE_BTN, ///< 'Language spoken' droplist button.
80 WID_NSS_GENERATE_GAME, ///< New game button.
81 WID_NSS_LOAD_GAME, ///< Load game button.
82 WID_NSS_PLAY_SCENARIO, ///< Play scenario button.
83 WID_NSS_PLAY_HEIGHTMAP, ///< Play heightmap button.
85 WID_NSS_CANCEL, ///< 'Cancel' button.
88 /** Widgets of the #NetworkLobbyWindow class. */
89 enum NetworkLobbyWidgets {
90 WID_NL_BACKGROUND, ///< Background of the window.
91 WID_NL_TEXT, ///< Heading text.
92 WID_NL_HEADER, ///< Header above list of companies.
93 WID_NL_MATRIX, ///< List of companies.
94 WID_NL_SCROLLBAR, ///< Scroll bar.
95 WID_NL_DETAILS, ///< Company details.
96 WID_NL_JOIN, ///< 'Join company' button.
97 WID_NL_NEW, ///< 'New company' button.
98 WID_NL_SPECTATE, ///< 'Spectate game' button.
99 WID_NL_REFRESH, ///< 'Refresh server' button.
100 WID_NL_CANCEL, ///< 'Cancel' button.
103 /** Widgets of the #NetworkClientListWindow class. */
104 enum ClientListWidgets {
105 WID_CL_PANEL, ///< Panel of the window.
108 /** Widgets of the #NetworkClientListPopupWindow class. */
109 enum ClientListPopupWidgets {
110 WID_CLP_PANEL, ///< Panel of the window.
113 /** Widgets of the #NetworkJoinStatusWindow class. */
114 enum NetworkJoinStatusWidgets {
115 WID_NJS_BACKGROUND, ///< Background of the window.
116 WID_NJS_CANCELOK, ///< Cancel / OK button.
119 /** Widgets of the #NetworkCompanyPasswordWindow class. */
120 enum NetworkCompanyPasswordWidgets {
121 WID_NCP_BACKGROUND, ///< Background of the window.
122 WID_NCP_LABEL, ///< Label in front of the password field.
123 WID_NCP_PASSWORD, ///< Input field for the password.
124 WID_NCP_SAVE_AS_DEFAULT_PASSWORD, ///< Toggle 'button' for saving the current password as default password.
125 WID_NCP_CANCEL, ///< Close the window without changing anything.
126 WID_NCP_OK, ///< Safe the password etc.
129 #endif /* WIDGETS_NETWORK_WIDGET_H */