4129f1950a
This reverts commit 0e8090dcd1
.
Emmanuele, Matthias, and Exalm all do not like it.
384 lines
17 KiB
XML
384 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.10 -->
|
|
<menu id="app-menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Open Game</attribute>
|
|
<attribute name="action">win.open</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Save Game</attribute>
|
|
<attribute name="action">win.save-as</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Resign Game</attribute>
|
|
<attribute name="action">win.resign</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Preferences</attribute>
|
|
<attribute name="action">app.preferences</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Help</attribute>
|
|
<attribute name="action">app.help</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_About Chess</attribute>
|
|
<attribute name="action">app.about</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
<object class="GtkListStore" id="history-model">
|
|
<columns>
|
|
<!-- column-name label -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name move-number -->
|
|
<column type="gint"/>
|
|
</columns>
|
|
</object>
|
|
<object class="GtkApplicationWindow" id="gnome_chess_app">
|
|
<property name="can-focus">False</property>
|
|
<property name="default-width">700</property>
|
|
<signal name="delete-event" handler="gnome_chess_app_delete_event_cb" swapped="no"/>
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar" id="headerbar">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="show-close-button">True</property>
|
|
<property name="title" translatable="yes">Chess</property>
|
|
<child>
|
|
<object class="GtkButton" id="new-game-button">
|
|
<property name="visible">True</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<property name="label" translatable="yes">_New Game</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="action-name">win.new</property>
|
|
<style>
|
|
<class name="text-button"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="undo-move-button">
|
|
<property name="visible">True</property>
|
|
<property name="valign">center</property>
|
|
<property name="action-name">win.undo</property>
|
|
<property name="tooltip-text" translatable="yes">Undo your most recent move</property>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-size">1</property>
|
|
<property name="icon-name">edit-undo-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="pause_button">
|
|
<property name="visible">True</property>
|
|
<property name="valign">center</property>
|
|
<property name="action-name">win.pause-resume</property>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="icon-size">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="menu-model">app-menu</property>
|
|
<accelerator key="F10" signal="activate"/>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
<property name="icon-size">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="pack-type">end</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">3</property>
|
|
<child>
|
|
<object class="GtkInfoBar" id="info_bar">
|
|
<property name="visible">False</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkAlignment" id="view_container">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="navigation_box">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="spacing">6</property>
|
|
<property name="margin-left">6</property>
|
|
<property name="margin-right">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="homogeneous">True</property>
|
|
<style>
|
|
<class name="raised"/>
|
|
<class name="linked"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkButton" id="first_move_button">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="tooltip-text" translatable="yes" comments="Tooltip on the show first move (i.e. game start) navigation button">Rewind to the game start</property>
|
|
<accelerator key="Left" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_MOD1_MASK"/>
|
|
<signal name="clicked" handler="history_start_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-size">1</property>
|
|
<property name="icon-name">go-first-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="prev_move_button">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="tooltip-text" translatable="yes" comments="Tooltip on the show previous move navigation button">Show the previous move</property>
|
|
<accelerator key="Left" signal="activate" modifiers="GDK_MOD1_MASK"/>
|
|
<signal name="clicked" handler="history_previous_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-size">1</property>
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="next_move_button">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="tooltip-text" translatable="yes" comments="Tooltip on the show next move navigation button">Show the next move</property>
|
|
<accelerator key="Right" signal="activate" modifiers="GDK_MOD1_MASK"/>
|
|
<signal name="clicked" handler="history_next_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-size">1</property>
|
|
<property name="icon-name">go-next-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="last_move_button">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="tooltip-text" translatable="yes" comments="Tooltip on the show current move navigation button">Show the current move</property>
|
|
<accelerator key="Right" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_MOD1_MASK"/>
|
|
<signal name="clicked" handler="history_latest_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-size">1</property>
|
|
<property name="icon-name">go-last-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBox" id="history_combo">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="model">history-model</property>
|
|
<signal name="changed" handler="history_combo_changed_cb" swapped="no"/>
|
|
<child>
|
|
<object class="GtkCellRendererText">
|
|
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
|
|
</object>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="clock_box">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="spacing">6</property>
|
|
<property name="homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkDrawingArea" id="white_time_label">
|
|
<!-- -1 means compute at runtime -->
|
|
<property name="width-request">-1</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<signal name="draw" handler="white_time_draw_cb" swapped="no"/>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkDrawingArea" id="black_time_label">
|
|
<!-- -1 means compute at runtime -->
|
|
<property name="width-request">-1</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<signal name="draw" handler="black_time_draw_cb" swapped="no"/>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkSizeGroup">
|
|
<property name="mode">vertical</property>
|
|
<widgets>
|
|
<widget name="new-game-button"/>
|
|
<widget name="undo-move-button"/>
|
|
<widget name="pause_button"/>
|
|
</widgets>
|
|
</object>
|
|
<object class="GtkSizeGroup">
|
|
<property name="mode">vertical</property>
|
|
<widgets>
|
|
<widget name="white_time_label"/>
|
|
<widget name="black_time_label"/>
|
|
<widget name="history_combo"/>
|
|
</widgets>
|
|
</object>
|
|
</interface>
|