| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="FrgFolderPageContents" parent="AdwBin"> |
| 4 |
<child> |
| 5 |
<object class="AdwToolbarView"> |
| 6 |
<child type="top"> |
| 7 |
<object class="AdwHeaderBar"> |
| 8 |
<child type="end"> |
| 9 |
<object class="GtkMenuButton"> |
| 10 |
<property name="menu_model">files_menu</property> |
| 11 |
<property name="icon_name">view-more-symbolic</property> |
| 12 |
<property name="tooltip_text" translatable="yes">Sorting</property> |
| 13 |
</object> |
| 14 |
</child> |
| 15 |
<child type="end"> |
| 16 |
<object class="GtkToggleButton" id="files_search_togglebutton"> |
| 17 |
<property name="icon_name">system-search-symbolic</property> |
| 18 |
<property name="tooltip_text" translatable="yes">Search</property> |
| 19 |
</object> |
| 20 |
</child> |
| 21 |
</object> |
| 22 |
</child> |
| 23 |
<child type="top"> |
| 24 |
<object class="GtkSearchBar" id="searchbar"> |
| 25 |
<property name="key_capture_widget">FrgFolderPageContents</property> |
| 26 |
<property name="search_mode_enabled" bind-source="files_search_togglebutton" bind-property="active" bind-flags="bidirectional"/> |
| 27 |
<child> |
| 28 |
<object class="GtkSearchEntry" id="searchentry"> |
| 29 |
<property name="placeholder_text" translatable="yes">Search for files…</property> |
| 30 |
<accessibility> |
| 31 |
<relation name="labelled-by">searchbar</relation> |
| 32 |
</accessibility> |
| 33 |
</object> |
| 34 |
</child> |
| 35 |
<accessibility> |
| 36 |
<property name="label" translatable="yes">Search files</property> |
| 37 |
</accessibility> |
| 38 |
</object> |
| 39 |
</child> |
| 40 |
<child> |
| 41 |
<object class="GtkScrolledWindow" id="scrolled_window"> |
| 42 |
<property name="vexpand">True</property> |
| 43 |
<child> |
| 44 |
<object class="AdwClampScrollable"> |
| 45 |
<property name="maximum-size">700</property> |
| 46 |
<property name="tightening-threshold">600</property> |
| 47 |
<child> |
| 48 |
<object class="GtkListView" id="listview"> |
| 49 |
<property name="valign">start</property> |
| 50 |
<property name="single-click-activate">True</property> |
| 51 |
<property name="show-separators">True</property> |
| 52 |
<signal name="activate" handler="row_activated" swapped="true"/> |
| 53 |
<property name="model"> |
| 54 |
<object class="GtkNoSelection" id="selection"> |
| 55 |
<property name="model"> |
| 56 |
<object class="GtkFilterListModel" id="filter_model"> |
| 57 |
<property name="filter"> |
| 58 |
<object class="FrgFileFilter" id="filter"/> |
| 59 |
</property> |
| 60 |
<property name="model"> |
| 61 |
<object class="GtkSortListModel" id="sort_model"> |
| 62 |
<property name="incremental">False</property> |
| 63 |
</object> |
| 64 |
</property> |
| 65 |
</object> |
| 66 |
</property> |
| 67 |
</object> |
| 68 |
</property> |
| 69 |
<property name="factory"> |
| 70 |
<object class="GtkBuilderListItemFactory"> |
| 71 |
<property name="bytes"><![CDATA[ |
| 72 |
<?xml version="1.0" encoding="UTF-8"?> |
| 73 |
<interface> |
| 74 |
<template class="GtkListItem"> |
| 75 |
<property name="child"> |
| 76 |
<object class="FrgFileRow"> |
| 77 |
<binding name="file"> |
| 78 |
<lookup name="item">GtkListItem</lookup> |
| 79 |
</binding> |
| 80 |
</object> |
| 81 |
</property> |
| 82 |
</template> |
| 83 |
</interface> |
| 84 |
]]></property> |
| 85 |
</object> |
| 86 |
</property> |
| 87 |
<style> |
| 88 |
<class name="card"/> |
| 89 |
</style> |
| 90 |
</object> |
| 91 |
</child> |
| 92 |
</object> |
| 93 |
</child> |
| 94 |
</object> |
| 95 |
</child> |
| 96 |
</object> |
| 97 |
</child> |
| 98 |
</template> |
| 99 |
<menu id="files_menu"> |
| 100 |
<section> |
| 101 |
<item> |
| 102 |
<attribute name="label" translatable="yes">Select A_ll</attribute> |
| 103 |
<attribute name="action">view.select-all</attribute> |
| 104 |
</item> |
| 105 |
<item> |
| 106 |
<attribute name="label" translatable="yes">D_eselect All</attribute> |
| 107 |
<attribute name="action">view.deselect-all</attribute> |
| 108 |
</item> |
| 109 |
</section> |
| 110 |
<section> |
| 111 |
<item> |
| 112 |
<attribute name="label" translatable="yes">_Default</attribute> |
| 113 |
<attribute name="action">view.sorting</attribute> |
| 114 |
<attribute name="target">default</attribute> |
| 115 |
</item> |
| 116 |
<item> |
| 117 |
<attribute name="label" translatable="yes">_Name</attribute> |
| 118 |
<attribute name="action">view.sorting</attribute> |
| 119 |
<attribute name="target">name</attribute> |
| 120 |
</item> |
| 121 |
<item> |
| 122 |
<attribute name="label" translatable="yes">_Size</attribute> |
| 123 |
<attribute name="action">view.sorting</attribute> |
| 124 |
<attribute name="target">size</attribute> |
| 125 |
</item> |
| 126 |
</section> |
| 127 |
<section> |
| 128 |
<item> |
| 129 |
<attribute name="label" translatable="yes">_Ascending</attribute> |
| 130 |
<attribute name="action">view.order</attribute> |
| 131 |
<attribute name="target">ascending</attribute> |
| 132 |
</item> |
| 133 |
<item> |
| 134 |
<attribute name="label" translatable="yes">_Descending</attribute> |
| 135 |
<attribute name="action">view.order</attribute> |
| 136 |
<attribute name="target">descending</attribute> |
| 137 |
</item> |
| 138 |
</section> |
| 139 |
<section> |
| 140 |
<item> |
| 141 |
<attribute name="label" translatable="yes">_Folders Before Files</attribute> |
| 142 |
<attribute name="action">view.folder-before-files</attribute> |
| 143 |
</item> |
| 144 |
</section> |
| 145 |
</menu> |
| 146 |
</interface> |