<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0" />
  <requires lib="libadwaita" version="1.0" />
  <template class="PpsPreviewerWindow" parent="AdwApplicationWindow">
    <property name="default-width">1280</property>
    <property name="default-height">1280</property>
    <property name="title"></property>

    <property name="content">
      <object class="AdwToolbarView">
        <property name="top-bar-style">raised-border</property>
        <child type="top">
          <object class="AdwHeaderBar">
            <child>
              <object class="GtkButton" id="go-previous-page">
                <property name="tooltip-text" translatable="yes">Previous Page</property>
                <property name="action-name">win.go-previous-page</property>
                <property name="icon-name">go-up-symbolic</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="go-next-page">
                <property name="tooltip-text" translatable="yes">Next Page</property>
                <property name="action-name">win.go-next-page</property>
                <property name="icon-name">go-down-symbolic</property>
              </object>
            </child>
            <child>
              <object class="PpsPageSelector" id="page_selector">
                <property name="tooltip-text" translatable="yes">Page Count</property>
              </object>
            </child>

            <child type="end">
              <object class="GtkButton" id="print">
                <property name="label" translatable="yes">_Print</property>
                <property name="tooltip-text" translatable="yes">Print This Document</property>
                <property name="action-name">win.print</property>
                <property name="use-underline">True</property>
                <style>
                  <class name="suggested-action" />
                </style>
              </object>
            </child>
            <child type="end">
              <object class="GtkButton" id="zoom-out">
                <property name="tooltip-text" translatable="yes">Zoom Out</property>
                <property name="action-name">win.zoom-out</property>
                <property name="icon-name">zoom-out-symbolic</property>
              </object>
            </child>
            <child type="end">
              <object class="GtkButton" id="zoom-default">
                <property name="tooltip-text" translatable="yes">Normal Size</property>
                <property name="action-name">win.zoom-default</property>
                <property name="icon-name">zoom-fit-best-symbolic</property>
              </object>
            </child>
            <child type="end">
              <object class="GtkButton" id="zoom-in">
                <property name="tooltip-text" translatable="yes">Zoom In</property>
                <property name="action-name">win.zoom-in</property>
                <property name="icon-name">zoom-in-symbolic</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkScrolledWindow">
            <property name="hexpand">True</property>
            <property name="vexpand">True</property>
            <child>
              <object class="PpsView" id="view" />
            </child>
          </object>
        </child>
      </object>
    </property>
  </template>
</interface>
