<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 1.0 -->
<interface>
  <!-- interface-name text_search.ui -->
  <requires lib="gtk" version="4.18"/>
  <template class="TextFind" parent="GtkBox">
    <property name="spacing">5</property>
    <child>
      <object class="GtkSearchEntry" id="search_entry">
        <property name="placeholder-text" translatable="yes" context="find_text" comments="place holder text">Find in Text</property>
        <property name="search-delay">250</property>
        <property name="width-request">190</property>
        <signal name="search-changed" handler="search_entry_changed" swapped="True"/>
      </object>
    </child>
    <child>
      <object class="GtkBox">
        <property name="css-classes">linked</property>
        <property name="margin-end">5</property>
        <property name="margin-start">5</property>
        <child>
          <object class="GtkToggleButton" id="case_sensitive_toggle_button">
            <property name="icon-name">uppercase-symbolic</property>
            <property name="tooltip-text" translatable="yes" context="find_text" comments="tooltip">Match Case</property>
            <signal name="toggled" handler="on_case_sensitive_toggled" swapped="True"/>
          </object>
        </child>
        <child>
          <object class="GtkToggleButton" id="match_whole_word">
            <property name="icon-name">match-whole-word-symbolic</property>
            <property name="tooltip-text" translatable="yes" context="find_text" comments="tooltip">Match Whole Word</property>
            <signal name="toggled" handler="on_regex_toggled" swapped="True"/>
          </object>
        </child>
        <child>
          <object class="GtkToggleButton" id="regex_toggle_button">
            <property name="icon-name">regex-symbolic</property>
            <property name="tooltip-text" translatable="yes" context="find_text" comments="tooltip">Use Regular Expression</property>
            <signal name="toggled" handler="on_regex_toggled" swapped="True"/>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkLabel" id="search_result_label">
        <property name="css-classes">dimmed</property>
        <property name="margin-end">5</property>
        <property name="margin-start">5</property>
        <property name="width-request">25</property>
      </object>
    </child>
    <child>
      <object class="GtkBox">
        <child>
          <object class="GtkButton" id="previous_match_button">
            <property name="icon-name">go-up-symbolic</property>
            <property name="sensitive">False</property>
            <property name="tooltip-markup" translatable="yes" context="find_text" comments="tooltip">Previous Match</property>
            <signal name="clicked" handler="on_previous_match_clicked" swapped="True"/>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="next_match_button">
            <property name="icon-name">go-down-symbolic</property>
            <property name="sensitive">False</property>
            <property name="tooltip-text" translatable="yes" context="find_text">Match Next</property>
            <signal name="clicked" handler="on_next_match_clicked" swapped="True"/>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
