<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 1.0 -->
<interface>
  <!-- interface-name unit_pop_menu.ui -->
  <requires lib="gtk" version="4.18"/>
  <requires lib="libadwaita" version="1.4"/>
  <template class="UnitPopMenu" parent="GtkPopover">
    <property name="child">
      <object class="GtkBox">
        <property name="margin-bottom">5</property>
        <property name="margin-end">5</property>
        <property name="margin-start">5</property>
        <property name="margin-top">5</property>
        <property name="orientation">vertical</property>
        <property name="spacing">5</property>
        <child>
          <object class="GtkLabel" id="unit_label">
            <property name="css-classes">heading</property>
            <property name="ellipsize">end</property>
            <property name="max-width-chars">18</property>
            <property name="xalign">0.0</property>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"/>
        </child>
        <child>
          <object class="GtkButton" id="start_button">
            <property name="action-name">win.start-unit</property>
            <property name="css-classes">flat</property>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">media-playback-start-symbolic</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Start</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="stop_button">
            <property name="action-name">win.stop-unit</property>
            <property name="css-classes">flat</property>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">process-stop-symbolic</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Stop</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="restart_button">
            <property name="action-name">win.restart-unit</property>
            <property name="css-classes">flat</property>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">view-refresh-symbolic</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Restart</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="reload_unit_button">
            <property name="action-name">win.reload-unit</property>
            <property name="css-classes">flat</property>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">arrow-circular-top-left-symbolic</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Reload Unit</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"/>
        </child>
        <child>
          <object class="GtkButton" id="enable_button">
            <property name="css-classes">flat</property>
            <signal name="clicked" handler="enable_button_clicked" swapped="True"/>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">empty-icon</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Enable</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="disable_button">
            <property name="css-classes">flat</property>
            <signal name="clicked" handler="disable_button_clicked" swapped="True"/>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">empty-icon</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Disable</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="reenable_button">
            <property name="css-classes">flat</property>
            <signal name="clicked" handler="reenable_button_clicked" swapped="True"/>
            <child>
              <object class="AdwButtonContent">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">empty-icon</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Reenable</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"/>
        </child>
        <child>
          <object class="GtkButton" id="toggle_favorite_button">
            <property name="action-name">win.favorite-toggle</property>
            <property name="css-classes">flat</property>
            <child>
              <object class="AdwButtonContent" id="toggle_favorite_button_content">
                <property name="css-classes">flat</property>
                <property name="halign">start</property>
                <property name="icon-name">bookmark-outline-symbolic</property>
                <property name="label" translatable="yes" context="controls" comments="unit popup menu">Add Favorite</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="totals_summary_button">
            <property name="accessible-role">menu-item</property>
            <property name="action-name">win.pref-unit-list-display-summary</property>
            <property name="child">
              <object class="AdwButtonContent">
                <property name="accessible-role">menu-item</property>
                <property name="css-classes">normal</property>
                <property name="icon-name">empty-icon</property>
                <property name="label" translatable="yes" context="controls" comments="unit list pop up menu item">Toggle Totals Summary</property>
              </object>
            </property>
            <property name="css-classes">flat</property>
            <property name="has-frame">False</property>
          </object>
        </child>
        <child>
          <object class="GtkMenuButton" id="unit_list_view_menubutton">
            <property name="css-classes">flat</property>
            <property name="direction">right</property>
            <!-- </property> -->
            <property name="halign">start</property>
            <property name="label" translatable="yes" context="controls" comments="in the pop menu">Curated Lists</property>
          </object>
        </child>
      </object>
    </property>
    <property name="position">right</property>
  </template>
</interface>
