Skip to content
Snippets Groups Projects
interface.ui 2.76 KiB
Newer Older
Bruce Cowan's avatar
Bruce Cowan committed
<?xml version="1.0" encoding="UTF-8"?>
Bruce Cowan's avatar
Bruce Cowan committed
<!--
  SPDX-FileCopyrightText: 2012-2021 Bruce Cowan <bruce@bcowan.me.uk>
  SPDX-License-Identifier: GPL-3.0-or-later
Bruce Cowan's avatar
Bruce Cowan committed
-->
Bruce Cowan's avatar
Bruce Cowan committed
<interface>
Bruce Cowan's avatar
Bruce Cowan committed
  <requires lib="gtk" version="4.0"/>
Bruce Cowan's avatar
Bruce Cowan committed
  <object class="GtkAdjustment" id="adjustment1">
    <property name="upper">200</property>
Bruce Cowan's avatar
Bruce Cowan committed
    <property name="step_increment">1</property>
Bruce Cowan's avatar
Bruce Cowan committed
    <property name="page_increment">10</property>
Bruce Cowan's avatar
Bruce Cowan committed
  </object>
Bruce Cowan's avatar
Bruce Cowan committed
  <menu id="menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">app.prefs</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_About Rugby</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>
Bruce Cowan's avatar
Bruce Cowan committed
  <template class="RugbyAppWindow" parent="GtkApplicationWindow">
Bruce Cowan's avatar
Bruce Cowan committed
    <property name="can_focus">0</property>
    <property name="title" translatable="yes">Rugby</property>
Bruce Cowan's avatar
Bruce Cowan committed
    <child>
      <object class="GtkScrolledWindow">
        <property name="height_request">600</property>
Bruce Cowan's avatar
Bruce Cowan committed
        <property name="child">
          <object class="GtkViewport">
Bruce Cowan's avatar
Bruce Cowan committed
            <property name="can_focus">0</property>
            <property name="child">
              <object class="GtkListBox" id="listbox">
Bruce Cowan's avatar
Bruce Cowan committed
                <property name="can_focus">0</property>
                <property name="selection_mode">none</property>
                <style>
                  <class name="rich-list"/>
                </style>
                <child type="placeholder">
                  <object class="GtkLabel">
                    <property name="label">No possibilities for this score</property>
                    <style>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>
              </object>
Bruce Cowan's avatar
Bruce Cowan committed
            </property>
          </object>
Bruce Cowan's avatar
Bruce Cowan committed
        </property>
Bruce Cowan's avatar
Bruce Cowan committed
      </object>
    </child>
Bruce Cowan's avatar
Bruce Cowan committed
    <child type="titlebar">
      <object class="GtkHeaderBar">
Bruce Cowan's avatar
Bruce Cowan committed
        <property name="can_focus">0</property>
        <child>
          <object class="GtkLabel">
Bruce Cowan's avatar
Bruce Cowan committed
            <property name="can_focus">0</property>
            <property name="label" translatable="yes">Score:</property>
          </object>
        </child>
        <child>
Bruce Cowan's avatar
Bruce Cowan committed
          <object class="GtkSpinButton" id="scorespin">
            <property name="text" translatable="yes">0</property>
            <property name="adjustment">adjustment1</property>
Bruce Cowan's avatar
Bruce Cowan committed
          </object>
Bruce Cowan's avatar
Bruce Cowan committed
        </child>
Bruce Cowan's avatar
Bruce Cowan committed
        <child type="end">
          <object class="GtkMenuButton" id="menu_button">
            <property name="direction">none</property>
            <property name="menu_model">menu</property>
Bruce Cowan's avatar
Bruce Cowan committed
          </object>
        </child>
      </object>
    </child>
Bruce Cowan's avatar
Bruce Cowan committed
  </template>
Bruce Cowan's avatar
Bruce Cowan committed
</interface>