<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.96.1 -->
<interface domain="panorama-panel">
  <!-- interface-name panel-manager.ui -->
  <!-- interface-description Provides a window that allows the user to edit settings for various panels. -->
  <!-- interface-copyright Copyright 2025, roundabout-host.com <vlad@roundabout-host.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licence as published by
the Free Software Foundation, either version 3 of the Licence, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public Licence for more details.

You should have received a copy of the GNU General Public Licence
along with this program. If not, see <https://www.gnu.org/licenses/>. -->
  <requires lib="gtk" version="4.6"/>
  <template class="PanelManager" parent="GtkWindow">
    <property name="default-height">320</property>
    <property name="default-width">576</property>
    <property name="title" translatable="yes">Panel management</property>
    <child>
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkCenterBox">
            <property name="margin-bottom">8</property>
            <property name="margin-end">8</property>
            <property name="margin-start">8</property>
            <property name="margin-top">8</property>
            <child type="end">
              <object class="GtkButton" id="next_panel_button">
                <property name="action-name">win.next-panel</property>
                <property name="icon-name">go-next-symbolic</property>
                <property name="tooltip-text" translatable="yes">Next panel</property>
              </object>
            </child>
            <child type="start">
              <object class="GtkButton" id="previous_panel_button">
                <property name="action-name">win.previous-panel</property>
                <property name="has-tooltip">True</property>
                <property name="icon-name">go-previous-symbolic</property>
                <property name="tooltip-text" translatable="yes">Previous panel</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkScrolledWindow">
            <property name="vexpand">True</property>
            <child>
              <object class="GtkViewport">
                <child>
                  <object class="GtkStack" id="panel_stack">
                    <property name="margin-end">16</property>
                    <property name="margin-start">16</property>
                    <property name="transition-type">slide-left-right</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="hexpand">True</property>
            <property name="margin-bottom">8</property>
            <property name="margin-end">8</property>
            <property name="margin-start">8</property>
            <property name="margin-top">8</property>
            <child>
              <object class="GtkButton" id="save_now_button">
                <property name="has-tooltip">True</property>
                <property name="label" translatable="yes">_Save settings now</property>
                <property name="tooltip-text" translatable="yes">The configuration is also saved when exiting the app.</property>
                <property name="use-underline">True</property>
                <signal name="clicked" handler="save_settings"/>
                <style>
                  <class name="suggested-action"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="halign">end</property>
                <child>
                  <object class="GtkLabel">
                    <property name="hexpand">True</property>
                    <property name="label" translatable="yes">Panel _editing mode</property>
                    <property name="mnemonic-widget">panel_editing_switch</property>
                    <property name="use-underline">True</property>
                    <property name="wrap">True</property>
                    <property name="xalign">0.0</property>
                  </object>
                </child>
                <child>
                  <object class="GtkSwitch" id="panel_editing_switch">
                    <property name="halign">end</property>
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
