diff options
Diffstat (limited to 'resources/ui/new_lobby.ui')
-rw-r--r-- | resources/ui/new_lobby.ui | 403 |
1 files changed, 403 insertions, 0 deletions
diff --git a/resources/ui/new_lobby.ui b/resources/ui/new_lobby.ui new file mode 100644 index 0000000..cf37d0c --- /dev/null +++ b/resources/ui/new_lobby.ui | |||
@@ -0,0 +1,403 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- Generated with glade 3.38.2 | ||
3 | |||
4 | Copyright (C) 2022 GNUnet e.V. | ||
5 | |||
6 | GNUnet is free software: you can redistribute it and/or modify it | ||
7 | under the terms of the GNU Affero General Public License as published | ||
8 | by the Free Software Foundation, either version 3 of the License, | ||
9 | or (at your option) any later version. | ||
10 | |||
11 | GNUnet is distributed in the hope that it will be useful, but | ||
12 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Affero General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Affero General Public License | ||
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | |||
19 | SPDX-License-Identifier: AGPL3.0-or-later | ||
20 | Author: Tobias Frisch | ||
21 | |||
22 | --> | ||
23 | <interface> | ||
24 | <requires lib="gtk+" version="3.24"/> | ||
25 | <requires lib="libhandy" version="1.2"/> | ||
26 | <object class="GtkListStore" id="delay_store"> | ||
27 | <columns> | ||
28 | <!-- column-name name --> | ||
29 | <column type="gchararray"/> | ||
30 | <!-- column-name value --> | ||
31 | <column type="gulong"/> | ||
32 | </columns> | ||
33 | <data> | ||
34 | <row> | ||
35 | <col id="0" translatable="yes">Off</col> | ||
36 | <col id="1">0</col> | ||
37 | </row> | ||
38 | <row> | ||
39 | <col id="0" translatable="yes">4 weeks</col> | ||
40 | <col id="1">2419200</col> | ||
41 | </row> | ||
42 | <row> | ||
43 | <col id="0" translatable="yes">1 week</col> | ||
44 | <col id="1">604800</col> | ||
45 | </row> | ||
46 | <row> | ||
47 | <col id="0" translatable="yes">1 day</col> | ||
48 | <col id="1">86400</col> | ||
49 | </row> | ||
50 | <row> | ||
51 | <col id="0" translatable="yes">8 hours</col> | ||
52 | <col id="1">28800</col> | ||
53 | </row> | ||
54 | <row> | ||
55 | <col id="0" translatable="yes">1 hour</col> | ||
56 | <col id="1">3600</col> | ||
57 | </row> | ||
58 | <row> | ||
59 | <col id="0" translatable="yes">5 minutes</col> | ||
60 | <col id="1">300</col> | ||
61 | </row> | ||
62 | <row> | ||
63 | <col id="0" translatable="yes">30 seconds</col> | ||
64 | <col id="1">30</col> | ||
65 | </row> | ||
66 | </data> | ||
67 | </object> | ||
68 | <object class="GtkDialog" id="new_lobby_dialog"> | ||
69 | <property name="can-focus">False</property> | ||
70 | <property name="title" translatable="yes">New Lobby</property> | ||
71 | <property name="modal">True</property> | ||
72 | <property name="window-position">center-on-parent</property> | ||
73 | <property name="default-height">450</property> | ||
74 | <property name="type-hint">dialog</property> | ||
75 | <child internal-child="vbox"> | ||
76 | <object class="GtkBox"> | ||
77 | <property name="can-focus">False</property> | ||
78 | <property name="orientation">vertical</property> | ||
79 | <property name="spacing">2</property> | ||
80 | <child internal-child="action_area"> | ||
81 | <object class="GtkButtonBox"> | ||
82 | <property name="can-focus">False</property> | ||
83 | <property name="layout-style">end</property> | ||
84 | <child> | ||
85 | <object class="GtkButton" id="cancel_button"> | ||
86 | <property name="label" translatable="yes">Cancel</property> | ||
87 | <property name="visible">True</property> | ||
88 | <property name="can-focus">True</property> | ||
89 | <property name="receives-default">True</property> | ||
90 | </object> | ||
91 | <packing> | ||
92 | <property name="expand">True</property> | ||
93 | <property name="fill">True</property> | ||
94 | <property name="position">0</property> | ||
95 | </packing> | ||
96 | </child> | ||
97 | <child> | ||
98 | <object class="GtkButton" id="generate_button"> | ||
99 | <property name="label" translatable="yes">Generate</property> | ||
100 | <property name="visible">True</property> | ||
101 | <property name="can-focus">True</property> | ||
102 | <property name="receives-default">True</property> | ||
103 | </object> | ||
104 | <packing> | ||
105 | <property name="expand">True</property> | ||
106 | <property name="fill">True</property> | ||
107 | <property name="position">1</property> | ||
108 | </packing> | ||
109 | </child> | ||
110 | <child> | ||
111 | <object class="GtkButton" id="copy_button"> | ||
112 | <property name="label" translatable="yes">Copy</property> | ||
113 | <property name="sensitive">False</property> | ||
114 | <property name="can-focus">True</property> | ||
115 | <property name="receives-default">True</property> | ||
116 | </object> | ||
117 | <packing> | ||
118 | <property name="expand">True</property> | ||
119 | <property name="fill">True</property> | ||
120 | <property name="position">2</property> | ||
121 | </packing> | ||
122 | </child> | ||
123 | </object> | ||
124 | <packing> | ||
125 | <property name="expand">False</property> | ||
126 | <property name="fill">False</property> | ||
127 | <property name="position">0</property> | ||
128 | </packing> | ||
129 | </child> | ||
130 | <child> | ||
131 | <object class="GtkBox"> | ||
132 | <property name="visible">True</property> | ||
133 | <property name="can-focus">False</property> | ||
134 | <property name="orientation">vertical</property> | ||
135 | <child> | ||
136 | <object class="GtkInfoBar" id="warning_info_bar"> | ||
137 | <property name="visible">True</property> | ||
138 | <property name="can-focus">False</property> | ||
139 | <property name="message-type">warning</property> | ||
140 | <property name="show-close-button">True</property> | ||
141 | <child internal-child="action_area"> | ||
142 | <object class="GtkButtonBox"> | ||
143 | <property name="can-focus">False</property> | ||
144 | <property name="halign">center</property> | ||
145 | <property name="valign">center</property> | ||
146 | <property name="layout-style">expand</property> | ||
147 | <child> | ||
148 | <placeholder/> | ||
149 | </child> | ||
150 | </object> | ||
151 | <packing> | ||
152 | <property name="expand">False</property> | ||
153 | <property name="fill">False</property> | ||
154 | <property name="position">0</property> | ||
155 | </packing> | ||
156 | </child> | ||
157 | <child internal-child="content_area"> | ||
158 | <object class="GtkBox"> | ||
159 | <property name="can-focus">False</property> | ||
160 | <property name="border-width">8</property> | ||
161 | <property name="spacing">16</property> | ||
162 | <child> | ||
163 | <object class="GtkLabel"> | ||
164 | <property name="visible">True</property> | ||
165 | <property name="can-focus">False</property> | ||
166 | <property name="label" translatable="yes">Beware that you don't reuse lobbies to establish private chats with only one of your contacts!</property> | ||
167 | <property name="wrap">True</property> | ||
168 | <property name="wrap-mode">word-char</property> | ||
169 | </object> | ||
170 | <packing> | ||
171 | <property name="expand">False</property> | ||
172 | <property name="fill">True</property> | ||
173 | <property name="position">0</property> | ||
174 | </packing> | ||
175 | </child> | ||
176 | </object> | ||
177 | <packing> | ||
178 | <property name="expand">False</property> | ||
179 | <property name="fill">True</property> | ||
180 | <property name="position">0</property> | ||
181 | </packing> | ||
182 | </child> | ||
183 | </object> | ||
184 | <packing> | ||
185 | <property name="expand">False</property> | ||
186 | <property name="fill">True</property> | ||
187 | <property name="position">0</property> | ||
188 | </packing> | ||
189 | </child> | ||
190 | <child> | ||
191 | <object class="GtkScrolledWindow"> | ||
192 | <property name="height-request">200</property> | ||
193 | <property name="visible">True</property> | ||
194 | <property name="can-focus">True</property> | ||
195 | <property name="hscrollbar-policy">never</property> | ||
196 | <property name="shadow-type">in</property> | ||
197 | <child> | ||
198 | <object class="GtkViewport"> | ||
199 | <property name="visible">True</property> | ||
200 | <property name="can-focus">False</property> | ||
201 | <child> | ||
202 | <object class="GtkStack" id="new_lobby_stack"> | ||
203 | <property name="visible">True</property> | ||
204 | <property name="can-focus">False</property> | ||
205 | <child> | ||
206 | <object class="GtkBox" id="generate_box"> | ||
207 | <property name="visible">True</property> | ||
208 | <property name="can-focus">False</property> | ||
209 | <property name="halign">center</property> | ||
210 | <property name="valign">center</property> | ||
211 | <property name="border-width">8</property> | ||
212 | <property name="orientation">vertical</property> | ||
213 | <property name="spacing">4</property> | ||
214 | <child> | ||
215 | <object class="HdyAvatar"> | ||
216 | <property name="visible">True</property> | ||
217 | <property name="can-focus">False</property> | ||
218 | <property name="halign">center</property> | ||
219 | <property name="margin-top">8</property> | ||
220 | <property name="margin-bottom">8</property> | ||
221 | <property name="icon-name">dialog-password-symbolic</property> | ||
222 | <property name="size">128</property> | ||
223 | </object> | ||
224 | <packing> | ||
225 | <property name="expand">False</property> | ||
226 | <property name="fill">True</property> | ||
227 | <property name="position">0</property> | ||
228 | </packing> | ||
229 | </child> | ||
230 | <child> | ||
231 | <object class="GtkLabel"> | ||
232 | <property name="visible">True</property> | ||
233 | <property name="can-focus">False</property> | ||
234 | <property name="label" translatable="yes">Delay until new lobby expires:</property> | ||
235 | <property name="xalign">0</property> | ||
236 | </object> | ||
237 | <packing> | ||
238 | <property name="expand">False</property> | ||
239 | <property name="fill">True</property> | ||
240 | <property name="position">1</property> | ||
241 | </packing> | ||
242 | </child> | ||
243 | <child> | ||
244 | <object class="GtkComboBox" id="expiration_combo_box"> | ||
245 | <property name="width-request">250</property> | ||
246 | <property name="visible">True</property> | ||
247 | <property name="can-focus">False</property> | ||
248 | <property name="model">delay_store</property> | ||
249 | <property name="active">0</property> | ||
250 | <child> | ||
251 | <object class="GtkCellRendererText"/> | ||
252 | <attributes> | ||
253 | <attribute name="text">0</attribute> | ||
254 | </attributes> | ||
255 | </child> | ||
256 | </object> | ||
257 | <packing> | ||
258 | <property name="expand">False</property> | ||
259 | <property name="fill">True</property> | ||
260 | <property name="position">2</property> | ||
261 | </packing> | ||
262 | </child> | ||
263 | </object> | ||
264 | <packing> | ||
265 | <property name="name">page_generate</property> | ||
266 | </packing> | ||
267 | </child> | ||
268 | <child> | ||
269 | <object class="GtkBox" id="copy_box"> | ||
270 | <property name="visible">True</property> | ||
271 | <property name="can-focus">False</property> | ||
272 | <property name="halign">center</property> | ||
273 | <property name="valign">center</property> | ||
274 | <property name="orientation">vertical</property> | ||
275 | <child> | ||
276 | <object class="GtkStack" id="preview_stack"> | ||
277 | <property name="visible">True</property> | ||
278 | <property name="can-focus">False</property> | ||
279 | <child> | ||
280 | <object class="GtkBox" id="fail_box"> | ||
281 | <property name="visible">True</property> | ||
282 | <property name="can-focus">False</property> | ||
283 | <property name="valign">center</property> | ||
284 | <property name="orientation">vertical</property> | ||
285 | <property name="spacing">8</property> | ||
286 | <child> | ||
287 | <object class="GtkImage"> | ||
288 | <property name="visible">True</property> | ||
289 | <property name="can-focus">False</property> | ||
290 | <property name="pixel-size">64</property> | ||
291 | <property name="icon-name">action-unavailable-symbolic</property> | ||
292 | <property name="icon_size">3</property> | ||
293 | </object> | ||
294 | <packing> | ||
295 | <property name="expand">False</property> | ||
296 | <property name="fill">True</property> | ||
297 | <property name="position">0</property> | ||
298 | </packing> | ||
299 | </child> | ||
300 | <child> | ||
301 | <object class="GtkLabel"> | ||
302 | <property name="visible">True</property> | ||
303 | <property name="can-focus">False</property> | ||
304 | <property name="label" translatable="yes">Generation of new lobby failed!</property> | ||
305 | </object> | ||
306 | <packing> | ||
307 | <property name="expand">False</property> | ||
308 | <property name="fill">True</property> | ||
309 | <property name="position">1</property> | ||
310 | </packing> | ||
311 | </child> | ||
312 | </object> | ||
313 | <packing> | ||
314 | <property name="name">page_fail</property> | ||
315 | </packing> | ||
316 | </child> | ||
317 | <child> | ||
318 | <object class="GtkSpinner" id="loading_spinner"> | ||
319 | <property name="visible">True</property> | ||
320 | <property name="can-focus">False</property> | ||
321 | <property name="active">True</property> | ||
322 | </object> | ||
323 | <packing> | ||
324 | <property name="name">page_loading</property> | ||
325 | <property name="position">1</property> | ||
326 | </packing> | ||
327 | </child> | ||
328 | <child> | ||
329 | <object class="GtkDrawingArea" id="id_drawing_area"> | ||
330 | <property name="height-request">250</property> | ||
331 | <property name="visible">True</property> | ||
332 | <property name="can-focus">False</property> | ||
333 | <property name="margin-start">8</property> | ||
334 | <property name="margin-end">8</property> | ||
335 | <property name="margin-top">8</property> | ||
336 | <property name="margin-bottom">8</property> | ||
337 | </object> | ||
338 | <packing> | ||
339 | <property name="name">page_drawing</property> | ||
340 | <property name="position">2</property> | ||
341 | </packing> | ||
342 | </child> | ||
343 | </object> | ||
344 | <packing> | ||
345 | <property name="expand">False</property> | ||
346 | <property name="fill">True</property> | ||
347 | <property name="position">0</property> | ||
348 | </packing> | ||
349 | </child> | ||
350 | <child> | ||
351 | <object class="GtkLabel"> | ||
352 | <property name="visible">True</property> | ||
353 | <property name="can-focus">False</property> | ||
354 | <property name="label" translatable="yes">ID:</property> | ||
355 | <property name="xalign">0</property> | ||
356 | </object> | ||
357 | <packing> | ||
358 | <property name="expand">False</property> | ||
359 | <property name="fill">True</property> | ||
360 | <property name="position">1</property> | ||
361 | </packing> | ||
362 | </child> | ||
363 | <child> | ||
364 | <object class="GtkEntry" id="id_entry"> | ||
365 | <property name="width-request">250</property> | ||
366 | <property name="visible">True</property> | ||
367 | <property name="can-focus">True</property> | ||
368 | <property name="editable">False</property> | ||
369 | </object> | ||
370 | <packing> | ||
371 | <property name="expand">False</property> | ||
372 | <property name="fill">True</property> | ||
373 | <property name="position">2</property> | ||
374 | </packing> | ||
375 | </child> | ||
376 | </object> | ||
377 | <packing> | ||
378 | <property name="name">page_copy</property> | ||
379 | <property name="position">1</property> | ||
380 | </packing> | ||
381 | </child> | ||
382 | </object> | ||
383 | </child> | ||
384 | </object> | ||
385 | </child> | ||
386 | </object> | ||
387 | <packing> | ||
388 | <property name="expand">True</property> | ||
389 | <property name="fill">True</property> | ||
390 | <property name="position">1</property> | ||
391 | </packing> | ||
392 | </child> | ||
393 | </object> | ||
394 | <packing> | ||
395 | <property name="expand">True</property> | ||
396 | <property name="fill">True</property> | ||
397 | <property name="position">1</property> | ||
398 | </packing> | ||
399 | </child> | ||
400 | </object> | ||
401 | </child> | ||
402 | </object> | ||
403 | </interface> | ||