<?xml version="1.0" encoding="UTF-8"?>
<interface domain="drawing">

  <object class="GtkAdjustment" id="adj_width">
    <property name="lower">1</property>
    <property name="upper">8127</property>
    <property name="step_increment">1</property>
    <property name="page_increment">20</property>
    <property name="value">10</property>
  </object>
  <object class="GtkAdjustment" id="adj_height">
    <property name="lower">1</property>
    <property name="upper">8127</property>
    <property name="step_increment">1</property>
    <property name="page_increment">20</property>
    <property name="value">10</property>
  </object>

  <object class="GtkAdjustment" id="adj_width_100">
    <property name="lower">1</property>
    <property name="upper">500</property>
    <property name="step_increment">1</property>
    <property name="page_increment">10</property>
    <property name="value">100</property>
  </object>
  <object class="GtkAdjustment" id="adj_height_100">
    <property name="lower">1</property>
    <property name="upper">500</property>
    <property name="step_increment">1</property>
    <property name="page_increment">10</property>
    <property name="value">100</property>
  </object>

  <!-- -->

  <object class="GtkBox" id="centered_box">
    <property name="spacing">10</property>
    <property name="orientation">horizontal</property>

    <child>
      <object class="GtkBox">
        <property name="spacing">10</property>
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkLabel" id="width_label">
            <property name="label" translatable="yes">Width</property>
          </object>
        </child>
        <child>
          <object class="GtkSpinButton" id="width_btn">
            <property name="adjustment">adj_width</property>
            <property name="tooltip_text" translatable="yes">Width</property>
          </object>
        </child>
        <child>
          <object class="GtkSpinButton" id="width_100_btn">
            <property name="adjustment">adj_width_100</property>
            <property name="tooltip_text" translatable="yes">Width</property>
          </object>
        </child>
      </object>
    </child>

    <child>
      <object class="GtkSeparator" id="separator"></object>
    </child>

    <child>
      <object class="GtkBox">
        <property name="spacing">10</property>
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkLabel" id="height_label">
            <property name="label" translatable="yes">Height</property>
          </object>
        </child>
        <child>
          <object class="GtkSpinButton" id="height_btn">
            <property name="adjustment">adj_height</property>
            <property name="tooltip_text" translatable="yes">Height</property>
          </object>
        </child>
        <child>
          <object class="GtkSpinButton" id="height_100_btn">
            <property name="adjustment">adj_height_100</property>
            <property name="tooltip_text" translatable="yes">Height</property>
          </object>
        </child>
      </object>
    </child>

  </object>

  <!-- -->

  <!-- Menu shown in the action bar (bottom-right) -->
  <menu id="actions-menu">
    <section>
      <!-- Context: the title of a menu to chose how the image will be scaled -->
      <attribute name="label" translatable="yes">Keep proportions</attribute>
      <item>
        <!-- Context: an item in a menu whose title is "Keep proportions" -->
        <attribute name="label" translatable="yes">Always</attribute>
        <attribute name="action">win.scale-proportions</attribute>
        <attribute name="target">always</attribute>
      </item>
      <item>
        <!-- Context: an item in a menu whose title is "Keep proportions" -->
        <attribute name="label" translatable="yes">When scaling from corners</attribute>
        <attribute name="action">win.scale-proportions</attribute>
        <attribute name="target">corners</attribute>
      </item>
      <item>
        <!-- Context for translations: "[Keep proportions only] when setting values manually" -->
        <attribute name="label" translatable="yes">When setting values manually</attribute>
        <attribute name="action">win.scale-ratio-spinbtns</attribute>
      </item>
      <item>
        <!-- Context: an item in a menu whose title is "Keep proportions" -->
        <attribute name="label" translatable="yes">Never</attribute>
        <attribute name="action">win.scale-proportions</attribute>
        <attribute name="target">never</attribute>
      </item>
    </section>
    <section>
      <attribute name="display-hint">horizontal-buttons</attribute>
      <item>
        <attribute name="label" translatable="yes">Zoom Out</attribute>
        <attribute name="action">win.zoom_out</attribute>
        <attribute name="verb-icon">zoom-out-symbolic</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Original Zoom</attribute>
        <attribute name="action">win.zoom_100</attribute>
        <attribute name="verb-icon">zoom-original-symbolic</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Zoom In</attribute>
        <attribute name="action">win.zoom_in</attribute>
        <attribute name="verb-icon">zoom-in-symbolic</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">Pixels</attribute>
        <attribute name="action">win.scale-unit</attribute>
        <attribute name="target">pixels</attribute>
        <attribute name="verb-icon">unit-pixels-symbolic</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Percentage</attribute>
        <attribute name="action">win.scale-unit</attribute>
        <attribute name="target">percents</attribute>
        <attribute name="verb-icon">unit-percents-symbolic</attribute>
      </item>
    </section>
  </menu>

</interface>
