<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2026, Jiri Eischmann <jiri@eischmann.cz> and the meshy contributors -->
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <object class="AdwPreferencesGroup" id="actions_group">

    <!-- Send Advert -->
    <child>
      <object class="AdwExpanderRow" id="advert_expander">
        <property name="title" translatable="yes">Send Advert</property>
        <child type="prefix">
          <object class="GtkImage">
            <property name="icon-name">podcast-symbolic</property>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="zero_hop_row">
            <property name="title" translatable="yes">Zero Hop</property>
            <property name="subtitle" translatable="yes">Broadcast locally</property>
            <property name="activatable-widget">zero_hop_btn</property>
            <child type="suffix">
              <object class="GtkButton" id="zero_hop_btn">
                <property name="icon-name">broadcast-symbolic</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="flood_row">
            <property name="title" translatable="yes">Flood Routed</property>
            <property name="subtitle" translatable="yes">Broadcast through the mesh</property>
            <property name="activatable-widget">flood_btn</property>
            <child type="suffix">
              <object class="GtkButton" id="flood_btn">
                <property name="icon-name">broadcast-flood-symbolic</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="clipboard_row">
            <property name="title" translatable="yes">To Clipboard</property>
            <property name="subtitle" translatable="yes">Copy self contact data</property>
            <property name="activatable-widget">clipboard_btn</property>
            <child type="suffix">
              <object class="GtkButton" id="clipboard_btn">
                <property name="icon-name">edit-copy-symbolic</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="qr_row">
            <property name="title" translatable="yes">Show QR Code</property>
            <property name="subtitle" translatable="yes">For others to scan and add you</property>
            <property name="activatable-widget">qr_btn</property>
            <child type="suffix">
              <object class="GtkButton" id="qr_btn">
                <property name="icon-name">qr-code-scanner-symbolic</property>
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>

    <!-- Trace Path -->
    <child>
      <object class="AdwActionRow" id="trace_row">
        <property name="title" translatable="yes">Trace Path</property>
        <property name="subtitle" translatable="yes">Trace a route and show signal quality per hop</property>
        <property name="activatable-widget">trace_btn</property>
        <child type="suffix">
          <object class="GtkButton" id="trace_btn">
            <property name="icon-name">share-alt-symbolic</property>
            <property name="valign">center</property>
          </object>
        </child>
      </object>
    </child>

    <!-- Discover Nearby Nodes -->
    <child>
      <object class="AdwActionRow" id="discover_row">
        <property name="title" translatable="yes">Discover Nearby Nodes</property>
        <property name="subtitle" translatable="yes">Scan the network for nearby nodes</property>
        <property name="activatable-widget">discover_btn</property>
        <child type="suffix">
          <object class="GtkButton" id="discover_btn">
            <property name="icon-name">edit-find-symbolic</property>
            <property name="valign">center</property>
          </object>
        </child>
      </object>
    </child>

    <!-- Rx Log -->
    <child>
      <object class="AdwActionRow" id="rx_log_row">
        <property name="title" translatable="yes">Rx Log</property>
        <property name="subtitle" translatable="yes">View received radio packets</property>
        <property name="activatable-widget">rx_log_btn</property>
        <child type="suffix">
          <object class="GtkButton" id="rx_log_btn">
            <property name="icon-name">logs-symbolic</property>
            <property name="valign">center</property>
          </object>
        </child>
      </object>
    </child>

    <!-- Reboot Device -->
    <child>
      <object class="AdwActionRow" id="reboot_row">
        <property name="title" translatable="yes">Reboot Device</property>
        <property name="activatable-widget">reboot_btn</property>
        <child type="suffix">
          <object class="GtkButton" id="reboot_btn">
            <property name="icon-name">system-reboot-symbolic</property>
            <property name="valign">center</property>
            <style>
              <class name="destructive-action"/>
            </style>
          </object>
        </child>
      </object>
    </child>

  </object>
</interface>
