OpenTTD

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