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