<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.16"/>
  <template class="GtdTaskRow" parent="GtkListBoxRow">
    <property name="width_request">100</property>
    <property name="visible">True</property>
    <property name="can_focus">True</property>
    <property name="activatable">True</property>
    <property name="selectable">False</property>
    <child>
      <object class="GtkRevealer" id="revealer">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="transition_type">slide-down</property>
        <property name="transition_duration">200</property>
        <child>
          <object class="GtkBox" id="task_box">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="border_width">6</property>
            <property name="margin_start">18</property>
            <property name="margin_end">18</property>
            <property name="spacing">12</property>
            <child>
              <object class="GtkBox" id="dnd_box">
                <property name="visible">True</property>
                <child>
                  <object class="GtkEventBox" id="dnd_event_box">
                    <property name="visible">True</property>
                    <signal name="button-press-event" handler="button_press_event" object="GtdTaskRow" swapped="no" />
                    <signal name="drag-begin" handler="drag_begin_cb" object="GtdTaskRow" swapped="no" />
                    <signal name="drag-failed" handler="drag_failed_cb" object="GtdTaskRow" swapped="no" />
                    <signal name="enter-notify-event" handler="mouse_over_event" object="GtdTaskRow" swapped="no" />
                    <signal name="leave-notify-event" handler="mouse_out_event" object="GtdTaskRow" swapped="no" />
                    <child>
                      <object class="GtkImage" id="dnd_icon">
                        <property name="visible">True</property>
                        <property name="icon-name">open-menu-symbolic</property>
                        <property name="pixel-size">12</property>
                        <style>
                          <class name="dim-label" />
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkCheckButton" id="done_check">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="receives_default">False</property>
                <property name="halign">center</property>
                <property name="valign">center</property>
                <property name="vexpand">True</property>
                <property name="draw_indicator">True</property>
                <signal name="toggled" handler="complete_check_toggled_cb" object="GtdTaskRow" swapped="no" />
              </object>
            </child>
            <child>
              <object class="GtkStack" id="task_stack">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="transition_type">crossfade</property>
                <property name="hexpand">True</property>
                <child>
                  <object class="GtkBox" id="title_label_box">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkLabel" id="title_label">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="xalign">0</property>
                        <property name="label" bind-source="title_entry" bind-property="text" />
                      </object>
                    </child>
                    <child>
                      <object class="GtkSpinner" id="task_loading_spinner">
                        <property name="visible">False</property>
                        <property name="can_focus">False</property>
                        <property name="active">True</property>
                        <property name="halign">start</property>
                      </object>
                    </child>
                  </object>
                  <packing>
                    <property name="name">label</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkEntry" id="title_entry">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="hexpand">True</property>
                  </object>
                  <packing>
                    <property name="name">title</property>
                    <property name="position">1</property>
                  </packing>
                </child>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="fill">True</property>
              </packing>
            </child>
            <child>
              <object class="GtkBox" id="task_extras_box">
                <property name="visible">False</property>
                <property name="can_focus">False</property>
                <property name="halign">end</property>
                <property name="valign">center</property>
                <property name="hexpand">True</property>
                <property name="spacing">6</property>
                <child>
                  <object class="GtkButton" id="task_attachment_button">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="receives_default">True</property>
                    <property name="relief">none</property>
                    <child>
                      <object class="GtkImage" id="task_attachment_button_image">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="icon_name">text-x-generic-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="task_alarm_button">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="receives_default">True</property>
                    <property name="relief">none</property>
                    <child>
                      <object class="GtkImage" id="task_alarm_button_image">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="icon_name">alarm-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="task_date_label">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="xalign">0</property>
                <property name="margin-end">6</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="task_list_label">
                <property name="visible">False</property>
                <property name="can_focus">False</property>
                <property name="xalign">0</property>
                <property name="max_width_chars">18</property>
                <property name="ellipsize">middle</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
