new_lobby.ui (15553B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Generated with glade 3.40.0 3 4 Copyright (C) 2022‑‑2025 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="title" translatable="yes">New Lobby</property> 70 <property name="modal">1</property> 71 <property name="default-height">450</property> 72 <property name="type-hint">dialog</property> 73 <child internal-child="vbox"> 74 <object class="GtkBox"> 75 <property name="orientation">vertical</property> 76 <property name="spacing">2</property> 77 <child internal-child="action_area"> 78 <object class="GtkButtonBox"> 79 <property name="layout-style">end</property> 80 <child> 81 <object class="GtkButton" id="cancel_button"> 82 <property name="label" translatable="yes">Cancel</property> 83 <property name="visible">1</property> 84 <property name="can-focus">1</property> 85 <property name="receives-default">1</property> 86 </object> 87 <packing> 88 <property name="expand">1</property> 89 </packing> 90 </child> 91 <child> 92 <object class="GtkButton" id="generate_button"> 93 <property name="label" translatable="yes">Generate</property> 94 <property name="visible">1</property> 95 <property name="can-focus">1</property> 96 <property name="receives-default">1</property> 97 </object> 98 <packing> 99 <property name="expand">1</property> 100 <property name="position">1</property> 101 </packing> 102 </child> 103 <child> 104 <object class="GtkButton" id="copy_button"> 105 <property name="label" translatable="yes">Copy</property> 106 <property name="sensitive">0</property> 107 <property name="can-focus">1</property> 108 <property name="receives-default">1</property> 109 </object> 110 <packing> 111 <property name="expand">1</property> 112 <property name="position">2</property> 113 </packing> 114 </child> 115 </object> 116 <packing> 117 <property name="fill">0</property> 118 </packing> 119 </child> 120 <child> 121 <object class="GtkBox"> 122 <property name="visible">1</property> 123 <property name="orientation">vertical</property> 124 <child> 125 <object class="GtkInfoBar" id="warning_info_bar"> 126 <property name="visible">1</property> 127 <property name="message-type">warning</property> 128 <property name="show-close-button">1</property> 129 <child internal-child="action_area"> 130 <object class="GtkButtonBox"> 131 <property name="halign">center</property> 132 <property name="valign">center</property> 133 <property name="layout-style">expand</property> 134 </object> 135 <packing> 136 <property name="fill">0</property> 137 </packing> 138 </child> 139 <child internal-child="content_area"> 140 <object class="GtkBox"> 141 <property name="border-width">8</property> 142 <property name="spacing">16</property> 143 <child> 144 <object class="GtkLabel"> 145 <property name="visible">1</property> 146 <property name="label" translatable="yes">Please notice that everyone with access to the lobby's code can enter its chat!</property> 147 <property name="wrap">1</property> 148 <property name="wrap-mode">word-char</property> 149 </object> 150 </child> 151 </object> 152 </child> 153 </object> 154 </child> 155 <child> 156 <object class="GtkScrolledWindow"> 157 <property name="height-request">200</property> 158 <property name="visible">1</property> 159 <property name="can-focus">1</property> 160 <property name="hscrollbar-policy">never</property> 161 <property name="shadow-type">in</property> 162 <child> 163 <object class="GtkViewport"> 164 <property name="visible">1</property> 165 <child> 166 <object class="GtkStack" id="new_lobby_stack"> 167 <property name="visible">1</property> 168 <child> 169 <object class="GtkBox" id="generate_box"> 170 <property name="visible">1</property> 171 <property name="halign">center</property> 172 <property name="valign">center</property> 173 <property name="border-width">8</property> 174 <property name="orientation">vertical</property> 175 <property name="spacing">4</property> 176 <child> 177 <object class="HdyAvatar"> 178 <property name="visible">True</property> 179 <property name="can-focus">False</property> 180 <property name="halign">center</property> 181 <property name="margin-top">8</property> 182 <property name="margin-bottom">8</property> 183 <property name="icon-name">dialog-password-symbolic</property> 184 <property name="size">128</property> 185 </object> 186 </child> 187 <child> 188 <object class="GtkLabel"> 189 <property name="visible">1</property> 190 <property name="label" translatable="yes">Delay until new lobby expires:</property> 191 <property name="xalign">0</property> 192 </object> 193 <packing> 194 <property name="position">1</property> 195 </packing> 196 </child> 197 <child> 198 <object class="GtkComboBox" id="expiration_combo_box"> 199 <property name="width-request">250</property> 200 <property name="visible">1</property> 201 <property name="model">delay_store</property> 202 <property name="active">0</property> 203 <child> 204 <object class="GtkCellRendererText"/> 205 <attributes> 206 <attribute name="text">0</attribute> 207 </attributes> 208 </child> 209 </object> 210 <packing> 211 <property name="position">2</property> 212 </packing> 213 </child> 214 </object> 215 <packing> 216 <property name="name">page_generate</property> 217 </packing> 218 </child> 219 <child> 220 <object class="GtkBox" id="copy_box"> 221 <property name="visible">1</property> 222 <property name="halign">center</property> 223 <property name="valign">center</property> 224 <property name="orientation">vertical</property> 225 <child> 226 <object class="GtkStack" id="preview_stack"> 227 <property name="visible">1</property> 228 <child> 229 <object class="GtkBox" id="fail_box"> 230 <property name="visible">1</property> 231 <property name="valign">center</property> 232 <property name="orientation">vertical</property> 233 <property name="spacing">8</property> 234 <child> 235 <object class="GtkImage"> 236 <property name="visible">1</property> 237 <property name="pixel-size">64</property> 238 <property name="icon-name">action-unavailable-symbolic</property> 239 <property name="icon-size">3</property> 240 </object> 241 </child> 242 <child> 243 <object class="GtkLabel"> 244 <property name="visible">1</property> 245 <property name="label" translatable="yes">Generation of new lobby failed!</property> 246 </object> 247 <packing> 248 <property name="position">1</property> 249 </packing> 250 </child> 251 </object> 252 <packing> 253 <property name="name">page_fail</property> 254 </packing> 255 </child> 256 <child> 257 <object class="GtkSpinner" id="loading_spinner"> 258 <property name="visible">1</property> 259 <property name="active">1</property> 260 </object> 261 <packing> 262 <property name="name">page_loading</property> 263 <property name="position">1</property> 264 </packing> 265 </child> 266 <child> 267 <object class="GtkDrawingArea" id="id_drawing_area"> 268 <property name="height-request">250</property> 269 <property name="visible">1</property> 270 <property name="margin-start">8</property> 271 <property name="margin-end">8</property> 272 <property name="margin-top">8</property> 273 <property name="margin-bottom">8</property> 274 </object> 275 <packing> 276 <property name="name">page_drawing</property> 277 <property name="position">2</property> 278 </packing> 279 </child> 280 </object> 281 </child> 282 <child> 283 <object class="GtkLabel"> 284 <property name="visible">1</property> 285 <property name="label" translatable="yes">ID:</property> 286 <property name="xalign">0</property> 287 </object> 288 <packing> 289 <property name="position">1</property> 290 </packing> 291 </child> 292 <child> 293 <object class="GtkEntry" id="id_entry"> 294 <property name="width-request">250</property> 295 <property name="visible">1</property> 296 <property name="can-focus">1</property> 297 <property name="editable">0</property> 298 </object> 299 <packing> 300 <property name="position">2</property> 301 </packing> 302 </child> 303 </object> 304 <packing> 305 <property name="name">page_copy</property> 306 <property name="position">1</property> 307 </packing> 308 </child> 309 </object> 310 </child> 311 </object> 312 </child> 313 </object> 314 <packing> 315 <property name="expand">1</property> 316 <property name="position">1</property> 317 </packing> 318 </child> 319 </object> 320 <packing> 321 <property name="expand">1</property> 322 <property name="position">1</property> 323 </packing> 324 </child> 325 </object> 326 </child> 327 </object> 328 </interface>