[gnome-builder/wip/mwleeds/replace] Add first draft of search and replace UI.



commit e33b4f0f5a51cf8c2bc60972b077525d2c555d49
Author: Matthew Leeds <mleeds redhat com>
Date:   Tue Jun 14 16:30:33 2016 -0400

    Add first draft of search and replace UI.

 data/ui/ide-editor-frame.ui |  326 +++++++++++++++++++++++++++++++++++++++----
 1 files changed, 300 insertions(+), 26 deletions(-)
---
diff --git a/data/ui/ide-editor-frame.ui b/data/ui/ide-editor-frame.ui
index dd30de3..06f4566 100644
--- a/data/ui/ide-editor-frame.ui
+++ b/data/ui/ide-editor-frame.ui
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.15 -->
+  <!-- interface-requires buildercatalog 1.0 -->
   <template class="IdeEditorFrame" parent="GtkBin">
     <child>
       <object class="GtkOverlay" id="frame_overlay">
@@ -59,48 +60,321 @@
                         </style>
                         <child>
                           <object class="GtkBox">
-                            <property name="orientation">horizontal</property>
                             <property name="visible">true</property>
-                            <style>
-                              <class name="linked"/>
-                            </style>
+                            <property name="orientation">vertical</property>
                             <child>
-                              <object class="GdTaggedEntry" id="search_entry">
-                                <property name="visible">true</property>
-                                <property name="tag-close-visible">false</property>
-                                <property name="can-focus">true</property>
-                                <property name="width-request">260</property>
-                                <property name="primary-icon-activatable">true</property>
-                                <property name="primary-icon-sensitive">true</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkButton">
-                                <property name="action-name">frame.previous-search-result</property>
-                                <property name="can-focus">false</property>
+                              <object class="GtkGrid">
                                 <property name="visible">true</property>
+                                <property name="can_focus">false</property>
+                                <property name="row_spacing">6</property>
+                                <property name="column_spacing">5</property>
+                                <child>
+                                  <object class="GdTaggedEntry" id="search_entry">
+                                    <property name="visible">true</property>
+                                    <property name="tag-close-visible">false</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="width-request">340</property>
+                                    <property name="primary_icon_name">edit-find-symbolic</property>
+                                    <property name="primary_icon_activatable">false</property>
+                                    <property name="primary_icon_sensitive">false</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">0</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkSearchEntry" id="replace_entry">
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="width-request">340</property>
+                                    <property name="primary_icon_name">edit-find-replace-symbolic</property>
+                                    <property name="primary_icon_activatable">false</property>
+                                    <property name="primary_icon_sensitive">false</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">0</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkBox">
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="valign">center</property>
+                                    <property name="width_request">124</property>
+                                    <child>
+                                      <object class="GtkButton">
+                                        <property name="action-name">frame.previous-search-result</property>
+                                        <property name="width_request">62</property>
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">false</property>
+                                        <property name="receives_default">true</property>
+                                        <property name="valign">center</property>
+                                        <child>
+                                          <object class="GtkImage">
+                                            <property name="visible">true</property>
+                                            <property name="can_focus">false</property>
+                                            <property name="icon_name">go-up-symbolic</property>
+                                            <property name="icon_size">1</property>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">false</property>
+                                        <property name="fill">true</property>
+                                        <property name="position">0</property>
+                                      </packing>
+                                    </child>
+                                    <child>
+                                      <object class="GtkButton">
+                                        <property name="width_request">62</property>
+                                        <property name="action-name">frame.next-search-result</property>
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">false</property>
+                                        <property name="receives_default">true</property>
+                                        <property name="valign">center</property>
+                                        <child>
+                                          <object class="GtkImage">
+                                            <property name="visible">true</property>
+                                            <property name="can_focus">false</property>
+                                            <property name="icon_name">go-down-symbolic</property>
+                                            <property name="icon_size">1</property>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">false</property>
+                                        <property name="fill">true</property>
+                                        <property name="position">1</property>
+                                      </packing>
+                                    </child>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">1</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="label" translatable="yes">Replace</property>
+                                    <property name="width_request">124</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="receives_default">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">1</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="label" translatable="yes">Replace All</property>
+                                    <property name="width_request">124</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="receives_default">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">2</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
+                                </child>
                                 <child>
-                                  <object class="GtkImage">
-                                    <property name="icon-name">go-up-symbolic</property>
-                                    <property name="icon-size">1</property>
+                                  <object class="GtkBox">
+                                    <property name="width_request">124</property>
                                     <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="valign">center</property>
+                                    <child>
+                                      <object class="GtkToggleButton">
+                                        <property name="width_request">60</property>
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">true</property>
+                                        <property name="receives_default">true</property>
+                                        <property name="halign">center</property>
+                                        <property name="valign">center</property>
+                                        <property name="margin_right">4</property>
+                                        <property name="image_position">right</property>
+                                        <child>
+                                          <object class="GtkImage">
+                                            <property name="visible">true</property>
+                                            <property name="can_focus">false</property>
+                                            <property name="icon_name">edit-find-replace-symbolic</property>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">false</property>
+                                        <property name="fill">true</property>
+                                        <property name="position">0</property>
+                                      </packing>
+                                    </child>
+                                    <child>
+                                      <object class="GtkToggleButton">
+                                        <property name="width_request">60</property>
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">true</property>
+                                        <property name="receives_default">true</property>
+                                        <property name="halign">center</property>
+                                        <property name="valign">center</property>
+                                        <child>
+                                          <object class="GtkImage">
+                                            <property name="visible">true</property>
+                                            <property name="can_focus">false</property>
+                                            <property name="icon_name">emblem-system-symbolic</property>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">false</property>
+                                        <property name="fill">true</property>
+                                        <property name="position">1</property>
+                                      </packing>
+                                    </child>
                                   </object>
+                                  <packing>
+                                    <property name="left_attach">2</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkButton" id="close_button">
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="receives_default">true</property>
+                                    <property name="halign">center</property>
+                                    <property name="valign">center</property>
+                                    <property name="relief">none</property>
+                                    <property name="focus_on_click">false</property>
+                                    <style>
+                                      <class name="close"/>
+                                    </style>
+                                    <child>
+                                      <object class="GtkImage">
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">false</property>
+                                        <property name="icon_name">window-close-symbolic</property>
+                                      </object>
+                                    </child>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">4</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">true</property>
+                                    <property name="halign">center</property>
+                                    <property name="valign">center</property>
+                                    <property name="receives_default">true</property>
+                                    <child>
+                                      <object class="GtkImage">
+                                        <property name="visible">true</property>
+                                        <property name="can_focus">false</property>
+                                        <property name="icon_name">view-more-horizontal-symbolic</property>
+                                      </object>
+                                    </child>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">4</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
                                 </child>
                               </object>
+                              <packing>
+                                <property name="expand">false</property>
+                                <property name="fill">true</property>
+                                <property name="position">0</property>
+                              </packing>
                             </child>
                             <child>
-                              <object class="GtkButton">
-                                <property name="action-name">frame.next-search-result</property>
-                                <property name="can-focus">false</property>
+                              <object class="GtkGrid">
                                 <property name="visible">true</property>
+                                <property name="can_focus">false</property>
+                                <property name="column_spacing">5</property>
+                                <child>
+                                  <object class="GtkCheckButton" id="use_regex">
+                                    <property name="label" translatable="yes">Regular expressions</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="receives_default">false</property>
+                                    <property name="xalign">0</property>
+                                    <property name="draw_indicator">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">0</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="case_sensitive">
+                                    <property name="label" translatable="yes">Case sensitive</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="receives_default">false</property>
+                                    <property name="xalign">0</property>
+                                    <property name="draw_indicator">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">1</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="whole_word">
+                                    <property name="label" translatable="yes">Match whole word 
only</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="receives_default">false</property>
+                                    <property name="xalign">0</property>
+                                    <property name="draw_indicator">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">2</property>
+                                    <property name="top_attach">0</property>
+                                  </packing>
+                                </child>
+                                <child>
+                                  <object class="GtkRadioButton" id="search_selection">
+                                    <property name="label" translatable="yes">Search selection</property>
+                                    <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="receives_default">false</property>
+                                    <property name="xalign">0</property>
+                                    <property name="active">true</property>
+                                    <property name="draw_indicator">true</property>
+                                  </object>
+                                  <packing>
+                                    <property name="left_attach">0</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
+                                </child>
                                 <child>
-                                  <object class="GtkImage">
-                                    <property name="icon-name">go-down-symbolic</property>
-                                    <property name="icon-size">1</property>
+                                  <object class="GtkRadioButton" id="search_document">
+                                    <property name="label" translatable="yes">Search entire 
document</property>
                                     <property name="visible">true</property>
+                                    <property name="can_focus">false</property>
+                                    <property name="receives_default">false</property>
+                                    <property name="xalign">0</property>
+                                    <property name="active">true</property>
+                                    <property name="draw_indicator">true</property>
+                                    <property name="group">search_selection</property>
                                   </object>
+                                  <packing>
+                                    <property name="left_attach">1</property>
+                                    <property name="top_attach">1</property>
+                                  </packing>
                                 </child>
                               </object>
+                              <packing>
+                                <property name="expand">false</property>
+                                <property name="fill">true</property>
+                                <property name="position">1</property>
+                              </packing>
                             </child>
                           </object>
                         </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]