<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 1.0 -->
<interface>
  <!-- interface-name clean_dialog.ui -->
  <requires lib="gtk" version="4.18"/>
  <requires lib="libadwaita" version="1.7"/>
  <template class="ControlAction_DIALOG" parent="AdwWindow">
    <property name="content">
      <object class="AdwToolbarView">
        <property name="content">
          <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="AdwPreferencesGroup" id="first_group">
                <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="title">Enable</property>
                <child>
                  <object class="AdwEntryRow" id="unit_file_entry">
                    <property name="input-hints">lowercase|no-spellcheck|private|uppercase-sentences|vertical-writing|word-completion</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="entry title">Unit file</property>
                    <signal name="changed" handler="unit_file_changed" swapped="True"/>
                    <signal name="apply" handler="unit_file_apply" swapped="True"/>
                    <signal name="entry-activated" handler="unit_file_entry_activated" swapped="True"/>
                    <signal name="delete-text" handler="unit_file_delete_text" swapped="True"/>
                    <signal name="insert-text" handler="unit_file_insert_text" swapped="True"/>
                    <child>
                      <object class="GtkButton" id="use_selected_unit_button">
                        <property name="css-classes">flat</property>
                        <property name="icon-name">hand-point-horizontal-symbolic</property>
                        <property name="tooltip-text" translatable="yes" context="enable unit file" comments="tooltip">Use Selected Unit</property>
                        <signal name="clicked" handler="use_selected_unit_clicked" swapped="True"/>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton">
                        <property name="css-classes">flat</property>
                        <property name="icon-name">file-cabinet-symbolic</property>
                        <property name="tooltip-text" translatable="yes" context="enable unit file" comments="tooltip">Browse for Unit file</property>
                        <signal name="clicked" handler="file_browser_clicked" swapped="True"/>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwComboRow" id="dbus_level_combo">
                    <property name="title" translatable="yes" context="enable unit file" comments="title">DBus Level</property>
                  </object>
                </child>
                <child>
                  <object class="AdwSwitchRow" id="runtime_switch">
                    <property name="subtitle" translatable="yes" context="enable unit file" comments="subtitle">Whether the unit shall be enabled for runtime only</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="title">Runtime</property>
                  </object>
                </child>
                <child>
                  <object class="AdwSwitchRow" id="force_switch">
                    <property name="subtitle" translatable="yes" context="enable unit file" comments="subtitle">Control whether symlinks pointing to other units shall be replaced if necessary</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="title">Force</property>
                  </object>
                </child>
                <child>
                  <object class="AdwSwitchRow" id="portable_switch">
                    <property name="subtitle" translatable="yes" context="enable unit file" comments="subtitle">Add or remove the symlinks in /etc/systemd/system.attached and /run/systemd/system.attached</property>
                    <property name="subtitle-lines">2</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="title">Portable</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="AdwPreferencesGroup" id="after_action_group">
                <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="title">Start</property>
                <child>
                  <object class="AdwSwitchRow" id="run_stop_now_switch">
                    <property name="subtitle" translatable="yes" context="enable unit file" comments="subtitle">Start Unit just after being enabled</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="title">Run now</property>
                  </object>
                </child>
                <child>
                  <object class="AdwComboRow" id="run_stop_mode_combo">
                    <property name="subtitle" translatable="yes" context="enable unit file" comments="title">Starting mode options</property>
                    <property name="title" translatable="yes" context="enable unit file" comments="title">Run mode</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="halign">end</property>
                <property name="spacing">5</property>
                <child>
                  <object class="GtkButton">
                    <property name="css-classes">flat</property>
                    <property name="label" translatable="yes" context="enable unit file" comments="button">Reset</property>
                    <signal name="clicked" handler="reset_button_clicked" swapped="True"/>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="send_action_button">
                    <property name="css-classes">suggested-action</property>
                    <property name="halign">end</property>
                    <property name="label" translatable="yes" context="enable unit file" comments="button">Enable</property>
                    <property name="sensitive">False</property>
                    <signal name="clicked" handler="send_action_button_clicked" swapped="True"/>
                  </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>
          </object>
        </child>
      </object>
    </property>
    <property name="modal">True</property>
  </template>
</interface>
