<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 1.0 -->
<interface>
  <!-- interface-name unit_info.ui -->
  <requires lib="gtk" version="4.6"/>
  <requires lib="libadwaita" version="1.7"/>
  <template class="UNIT_PROPERTIES_DIALOG" parent="AdwWindow">
    <property name="content">
      <object class="AdwToolbarView">
        <property name="content">
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkSearchBar" id="search_bar">
                <property name="hexpand">True</property>
                <property name="show-close-button">True</property>
                <child>
                  <object class="GtkBox">
                    <property name="halign">start</property>
                    <property name="hexpand">True</property>
                    <property name="spacing">5</property>
                    <child>
                      <object class="GtkSearchEntry" id="search_entry">
                        <signal name="search-changed" handler="search_entry_changed" swapped="True"/>
                      </object>
                    </child>
                    <child>
                      <object class="GtkCheckButton" id="show_all_check">
                        <property name="label" translatable="yes" context="unit properties" comments="Show all properties">Show all</property>
                        <property name="tooltip-markup" translatable="yes" context="unit properties" comments="Show all properties tooltip">Show empty properties</property>
                        <signal name="toggled" handler="show_all_toggle" swapped="True"/>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkScrolledWindow">
                <property name="vexpand">True</property>
                <child>
                  <object class="GtkListBox" id="unit_properties">
                    <property name="selection-mode">none</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
        <property name="top-bar-style">raised</property>
        <child type="top">
          <object class="AdwHeaderBar">
            <property name="title-widget">
              <object class="AdwWindowTitle" id="window_title">
                <property name="title" translatable="yes" context="unit properties" comments="window title">Unit Properties</property>
              </object>
            </property>
            <child>
              <object class="GtkButton">
                <property name="icon-name">edit-copy-symbolic</property>
                <property name="tooltip-text" translatable="yes" context="unit properties" comments="Button tooltip-text">Copy all properties to clipboard</property>
                <signal name="clicked" handler="handle_copy_click" swapped="True"/>
              </object>
            </child>
            <child>
              <object class="GtkToggleButton" id="filter_toggle">
                <property name="icon-name">funnel-outline-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
    <property name="default-height">600</property>
    <property name="default-width">650</property>
  </template>
</interface>
