ovccgtk-application.ui 25.3 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<interface>
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  <!-- interface-requires gtk+ 3.0 -->
  <object class="GtkAction" id="edit-preferences">
    <property name="label">_Preferences</property>
    <property name="tooltip">Edit preferences</property>
    <property name="stock_id">gtk-preferences</property>
  </object>
  <object class="GtkAction" id="game-connect">
    <property name="label">_Connect to server</property>
    <property name="tooltip">Connect to a game server</property>
    <property name="stock_id">gtk-connect</property>
    <signal name="activate" handler="game_connect_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="game-disconnect">
    <property name="label">_Disconnect from server</property>
    <property name="tooltip">Disconnect from the server</property>
    <property name="stock_id">gtk-disconnect</property>
    <signal name="activate" handler="game_disconnect_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="game-finish-turn">
    <property name="label">Finish turn</property>
    <property name="tooltip">Explicitely end your turn</property>
    <property name="stock_id">gtk-ok</property>
    <signal name="activate" handler="game_finish_turn_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="game-new">
    <property name="label">_New game</property>
    <property name="tooltip">Launch a new game server</property>
    <property name="stock_id">gtk-new</property>
  </object>
  <object class="GtkAction" id="game-quit">
    <property name="label">_Quit</property>
    <property name="tooltip">Quit OVCCGtk</property>
    <property name="stock_id">gtk-quit</property>
    <signal name="activate" handler="game_quit_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="game-start">
    <property name="label">_Start game</property>
    <property name="tooltip">Start the game</property>
    <signal name="activate" handler="game_start_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="help-about">
    <property name="label">_About</property>
    <property name="tooltip">About OVCCGtk</property>
    <property name="stock_id">gtk-about</property>
    <signal name="activate" handler="help_about_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="show-possible-actions">
    <property name="label">_Show possible actions</property>
    <property name="tooltip">Suggest something to play</property>
    <property name="stock_id">gtk-dialog-question</property>
  </object>
  <object class="GtkAction" id="tile-rotate-clockwise">
    <property name="label">Rotate clockwise</property>
    <property name="tooltip">Rotate the tile clockwise</property>
    <property name="icon_name">object-rotate-right</property>
    <signal name="activate" handler="rotate_tile_clockwise_activate_handler" swapped="no"/>
  </object>
  <object class="GtkAction" id="tile-rotate-counterclockwise">
    <property name="label">Rotate counter-clockwise</property>
    <property name="tooltip">Rotate the tile counter-clockwise</property>
    <property name="icon_name">object-rotate-left</property>
    <signal name="activate" handler="rotate_tile_counterclockwise_activate_handler" swapped="no"/>
  </object>
66
  <object class="GtkWindow" id="main-window">
67
    <property name="can_focus">False</property>
68
    <property name="icon_name">ovccgtk</property>
69
    <signal name="delete-event" handler="main_window_delete_event_handler" swapped="no"/>
70 71 72
    <child>
      <object class="GtkVBox" id="vbox1">
        <property name="visible">True</property>
73
        <property name="can_focus">False</property>
74 75 76
        <child>
          <object class="GtkMenuBar" id="menubar1">
            <property name="visible">True</property>
77
            <property name="can_focus">False</property>
78 79 80
            <child>
              <object class="GtkMenuItem" id="menuitem1">
                <property name="visible">True</property>
81
                <property name="can_focus">False</property>
82 83 84 85 86
                <property name="label" translatable="yes">_Game</property>
                <property name="use_underline">True</property>
                <child type="submenu">
                  <object class="GtkMenu" id="menu1">
                    <property name="visible">True</property>
87
                    <property name="can_focus">False</property>
88 89 90
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem1">
                        <property name="related_action">game-new</property>
91 92
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
93 94 95 96 97 98 99
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem2">
                        <property name="related_action">game-connect</property>
100 101
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
102 103 104 105
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
106 107 108
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem8">
                        <property name="related_action">game-disconnect</property>
109 110
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
111 112 113 114
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
115 116 117
                    <child>
                      <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
                        <property name="visible">True</property>
118
                        <property name="can_focus">False</property>
119 120
                      </object>
                    </child>
121 122 123
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem7">
                        <property name="related_action">game-start</property>
124 125
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
126
                        <property name="use_underline">True</property>
127 128 129 130 131 132
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkSeparatorMenuItem" id="separatormenuitem4">
                        <property name="visible">True</property>
133
                        <property name="can_focus">False</property>
134 135
                      </object>
                    </child>
136 137
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem5">
138
                        <property name="related_action">game-quit</property>
139 140
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
141
                        <property name="use_underline">True</property>
142 143 144 145 146 147 148 149 150 151
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkMenuItem" id="menuitem2">
                <property name="visible">True</property>
152
                <property name="can_focus">False</property>
153
                <property name="label" translatable="yes">_Edit</property>
154 155 156 157
                <property name="use_underline">True</property>
                <child type="submenu">
                  <object class="GtkMenu" id="menu2">
                    <property name="visible">True</property>
158
                    <property name="can_focus">False</property>
159 160 161
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem6">
                        <property name="related_action">show-possible-actions</property>
162 163
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
164 165 166 167 168 169 170
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkSeparatorMenuItem" id="separatormenuitem3">
                        <property name="visible">True</property>
171
                        <property name="can_focus">False</property>
172 173 174 175 176
                      </object>
                    </child>
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem3">
                        <property name="related_action">tile-rotate-clockwise</property>
177 178
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
179
                        <property name="use_underline">True</property>
180 181 182 183 184 185
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem4">
                        <property name="related_action">tile-rotate-counterclockwise</property>
186 187
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
188
                        <property name="use_underline">True</property>
189 190 191 192 193 194
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkSeparatorMenuItem" id="separatormenuitem2">
                        <property name="visible">True</property>
195
                        <property name="can_focus">False</property>
196 197
                      </object>
                    </child>
198 199 200
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem11">
                        <property name="related_action">game-finish-turn</property>
201 202 203
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="use_underline">True</property>
204 205 206 207 208 209
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkSeparatorMenuItem" id="separatormenuitem5">
                        <property name="visible">True</property>
210
                        <property name="can_focus">False</property>
211 212
                      </object>
                    </child>
213 214 215
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem9">
                        <property name="related_action">edit-preferences</property>
216 217
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
218 219 220 221 222 223 224 225 226 227 228
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkMenuItem" id="menuitem4">
                <property name="visible">True</property>
229
                <property name="can_focus">False</property>
230
                <property name="label" translatable="yes">_Help</property>
231 232 233 234
                <property name="use_underline">True</property>
                <child type="submenu">
                  <object class="GtkMenu" id="menu3">
                    <property name="visible">True</property>
235
                    <property name="can_focus">False</property>
236 237
                    <child>
                      <object class="GtkImageMenuItem" id="imagemenuitem10">
238
                        <property name="related_action">help-about</property>
239 240
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
241 242 243 244 245 246 247 248 249 250 251
                        <property name="use_underline">True</property>
                        <property name="use_stock">True</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
          <packing>
            <property name="expand">False</property>
252
            <property name="fill">True</property>
253 254 255 256 257 258
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkToolbar" id="toolbar2">
            <property name="visible">True</property>
259
            <property name="can_focus">False</property>
260 261 262
            <child>
              <object class="GtkToolButton" id="toolbutton3">
                <property name="related_action">show-possible-actions</property>
263 264
                <property name="visible">True</property>
                <property name="can_focus">False</property>
265 266 267 268 269 270 271 272 273 274 275
                <property name="label" translatable="yes">toolbutton3</property>
                <property name="use_underline">True</property>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="homogeneous">True</property>
              </packing>
            </child>
            <child>
              <object class="GtkToolButton" id="toolbutton4">
                <property name="related_action">tile-rotate-counterclockwise</property>
276 277
                <property name="visible">True</property>
                <property name="can_focus">False</property>
278 279 280 281 282 283 284 285 286 287 288
                <property name="label" translatable="yes">toolbutton4</property>
                <property name="use_underline">True</property>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="homogeneous">True</property>
              </packing>
            </child>
            <child>
              <object class="GtkToolButton" id="toolbutton5">
                <property name="related_action">tile-rotate-clockwise</property>
289 290
                <property name="visible">True</property>
                <property name="can_focus">False</property>
291 292 293 294 295 296 297 298 299 300 301
                <property name="label" translatable="yes">toolbutton5</property>
                <property name="use_underline">True</property>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="homogeneous">True</property>
              </packing>
            </child>
          </object>
          <packing>
            <property name="expand">False</property>
302
            <property name="fill">True</property>
303 304 305 306
            <property name="position">1</property>
          </packing>
        </child>
        <child>
307
          <object class="GtkHPaned" id="hpaned1">
308
            <property name="visible">True</property>
309
            <property name="can_focus">True</property>
310 311 312 313 314 315 316 317 318
            <child>
              <object class="GtkScrolledWindow" id="board-container">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <child>
                  <placeholder/>
                </child>
              </object>
              <packing>
319 320
                <property name="resize">True</property>
                <property name="shrink">False</property>
321 322 323 324 325
              </packing>
            </child>
            <child>
              <object class="GtkVBox" id="vbox3">
                <property name="visible">True</property>
326
                <property name="can_focus">False</property>
327 328 329
                <child>
                  <object class="GtkHBox" id="hbox3">
                    <property name="visible">True</property>
330
                    <property name="can_focus">False</property>
331
                    <child>
332
                      <object class="GtkScrolledWindow" id="players-container">
333 334
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
335
                        <property name="shadow_type">in</property>
336
                        <child>
337
                          <placeholder/>
338 339 340
                        </child>
                      </object>
                      <packing>
341 342
                        <property name="expand">True</property>
                        <property name="fill">True</property>
343 344 345 346 347
                        <property name="position">0</property>
                      </packing>
                    </child>
                  </object>
                  <packing>
348 349
                    <property name="expand">True</property>
                    <property name="fill">True</property>
350 351 352 353 354 355
                    <property name="position">0</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkVBox" id="vbox4">
                    <property name="visible">True</property>
356
                    <property name="can_focus">False</property>
357
                    <property name="border_width">6</property>
358 359 360
                    <child>
                      <object class="GtkLabel" id="tiles-left-counter-label">
                        <property name="visible">True</property>
361
                        <property name="can_focus">False</property>
362 363 364
                        <property name="label" translatable="yes">No tile</property>
                      </object>
                      <packing>
365
                        <property name="expand">False</property>
366
                        <property name="fill">True</property>
367 368 369
                        <property name="position">0</property>
                      </packing>
                    </child>
370 371 372
                    <child>
                      <object class="GtkImage" id="current-tile-image">
                        <property name="visible">True</property>
373
                        <property name="sensitive">False</property>
374
                        <property name="can_focus">False</property>
375 376 377
                        <property name="stock">gtk-missing-image</property>
                      </object>
                      <packing>
378
                        <property name="expand">False</property>
379
                        <property name="fill">True</property>
380
                        <property name="position">1</property>
381 382 383
                      </packing>
                    </child>
                    <child>
384
                      <object class="GtkAlignment" id="alignment1">
385
                        <property name="visible">True</property>
386
                        <property name="can_focus">False</property>
387
                        <property name="xscale">0</property>
388
                        <child>
389
                          <object class="GtkHBox" id="hbox1">
390
                            <property name="visible">True</property>
391
                            <property name="can_focus">False</property>
392
                            <property name="homogeneous">True</property>
393
                            <child>
394
                              <object class="GtkButton" id="button3">
395 396
                                <property name="use_action_appearance">False</property>
                                <property name="related_action">tile-rotate-counterclockwise</property>
397
                                <property name="visible">True</property>
398 399 400 401 402 403 404
                                <property name="can_focus">True</property>
                                <property name="receives_default">True</property>
                                <property name="relief">none</property>
                                <property name="focus_on_click">False</property>
                                <child>
                                  <object class="GtkImage" id="image3">
                                    <property name="visible">True</property>
405
                                    <property name="can_focus">False</property>
406 407 408
                                    <property name="icon_name">object-rotate-left</property>
                                  </object>
                                </child>
409
                              </object>
410 411 412 413 414
                              <packing>
                                <property name="expand">False</property>
                                <property name="fill">False</property>
                                <property name="position">0</property>
                              </packing>
415 416
                            </child>
                            <child>
417
                              <object class="GtkButton" id="button4">
418 419
                                <property name="use_action_appearance">False</property>
                                <property name="related_action">tile-rotate-clockwise</property>
420
                                <property name="visible">True</property>
421 422 423 424 425 426 427
                                <property name="can_focus">True</property>
                                <property name="receives_default">True</property>
                                <property name="relief">none</property>
                                <property name="focus_on_click">False</property>
                                <child>
                                  <object class="GtkImage" id="image4">
                                    <property name="visible">True</property>
428
                                    <property name="can_focus">False</property>
429 430 431
                                    <property name="icon_name">object-rotate-right</property>
                                  </object>
                                </child>
432
                              </object>
433 434 435 436 437 438
                              <packing>
                                <property name="expand">False</property>
                                <property name="fill">False</property>
                                <property name="pack_type">end</property>
                                <property name="position">1</property>
                              </packing>
439 440 441 442 443
                            </child>
                          </object>
                        </child>
                      </object>
                      <packing>
444
                        <property name="expand">False</property>
445
                        <property name="fill">True</property>
446
                        <property name="position">2</property>
447 448
                      </packing>
                    </child>
449 450 451
                    <child>
                      <object class="GtkHSeparator" id="hseparator1">
                        <property name="visible">True</property>
452
                        <property name="can_focus">False</property>
453 454 455
                      </object>
                      <packing>
                        <property name="expand">False</property>
456
                        <property name="fill">True</property>
457 458 459 460 461 462
                        <property name="padding">6</property>
                        <property name="position">3</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="finish-turn-button">
463
                        <property name="related_action">game-finish-turn</property>
464 465 466 467 468 469
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="use_underline">True</property>
                      </object>
                      <packing>
470
                        <property name="expand">False</property>
471
                        <property name="fill">True</property>
472 473 474
                        <property name="position">4</property>
                      </packing>
                    </child>
475 476 477
                  </object>
                  <packing>
                    <property name="expand">False</property>
478
                    <property name="fill">True</property>
479 480 481 482 483
                    <property name="position">1</property>
                  </packing>
                </child>
              </object>
              <packing>
484 485
                <property name="resize">False</property>
                <property name="shrink">False</property>
486 487 488 489
              </packing>
            </child>
          </object>
          <packing>
490 491
            <property name="expand">True</property>
            <property name="fill">True</property>
492 493 494 495
            <property name="position">2</property>
          </packing>
        </child>
        <child>
496
          <object class="GtkStatusbar" id="main-statusbar">
497
            <property name="visible">True</property>
498
            <property name="can_focus">False</property>
499 500 501 502
            <property name="spacing">2</property>
          </object>
          <packing>
            <property name="expand">False</property>
503
            <property name="fill">True</property>
504 505 506 507 508 509 510
            <property name="position">3</property>
          </packing>
        </child>
      </object>
    </child>
  </object>
</interface>