| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="FrgApplicationWindow" parent="AdwApplicationWindow"> |
| 4 |
<property name="width_request">360</property> |
| 5 |
<property name="height_request">290</property> |
| 6 |
<property name="title">Fragments</property> |
| 7 |
<property name="content"> |
| 8 |
<object class="AdwToastOverlay" id="toast_overlay"> |
| 9 |
<property name="child"> |
| 10 |
<object class="AdwToolbarView"> |
| 11 |
<child type="top"> |
| 12 |
<object class="AdwHeaderBar" id="headerbar"> |
| 13 |
<property name="title-widget"> |
| 14 |
<object class="AdwWindowTitle" id="window_title"> |
| 15 |
<property name="title">Fragments</property> |
| 16 |
</object> |
| 17 |
</property> |
| 18 |
<child> |
| 19 |
<object class="GtkButton"> |
| 20 |
<property name="tooltip_text" translatable="yes">Add New Torrent</property> |
| 21 |
<property name="icon_name">list-add-symbolic</property> |
| 22 |
<property name="action_name">app.add-torrent</property> |
| 23 |
</object> |
| 24 |
</child> |
| 25 |
<child type="end"> |
| 26 |
<object class="GtkMenuButton" id="app_menu_button"> |
| 27 |
<property name="tooltip_text" translatable="yes">Main Menu</property> |
| 28 |
<property name="icon_name">open-menu-symbolic</property> |
| 29 |
<property name="menu_model">app_menu</property> |
| 30 |
<property name="primary">True</property> |
| 31 |
</object> |
| 32 |
</child> |
| 33 |
<child type="end"> |
| 34 |
<object class="GtkMenuButton" id="connection_menu"> |
| 35 |
<property name="tooltip_text" translatable="yes">Remote Connection Menu</property> |
| 36 |
<property name="icon_name">network-server-symbolic</property> |
| 37 |
<property name="popover">connection_popover</property> |
| 38 |
<property name="visible">False</property> |
| 39 |
</object> |
| 40 |
</child> |
| 41 |
<child type="end"> |
| 42 |
<object class="GtkToggleButton" id="search_button"> |
| 43 |
<property name="tooltip_text" translatable="yes">Search</property> |
| 44 |
<property name="icon_name">system-search-symbolic</property> |
| 45 |
<property name="action_name">app.toggle-search</property> |
| 46 |
<property name="active" bind-source="search_bar" bind-property="search-mode-enabled"/> |
| 47 |
</object> |
| 48 |
</child> |
| 49 |
</object> |
| 50 |
</child> |
| 51 |
<child type="top"> |
| 52 |
<object class="GtkSearchBar" id="search_bar"> |
| 53 |
<property name="key_capture_widget">toast_overlay</property> |
| 54 |
<property name="sensitive" bind-source="search_button" bind-property="sensitive"/> |
| 55 |
<child> |
| 56 |
<object class="AdwClamp"> |
| 57 |
<property name="hexpand">True</property> |
| 58 |
<property name="maximum_size">400</property> |
| 59 |
<property name="tightening-threshold">300</property> |
| 60 |
<child> |
| 61 |
<object class="GtkSearchEntry" id="search_entry"> |
| 62 |
<property name="placeholder_text" translatable="yes">Search torrents…</property> |
| 63 |
<accessibility> |
| 64 |
<relation name="labelled-by">search_bar</relation> |
| 65 |
</accessibility> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
</object> |
| 69 |
</child> |
| 70 |
<accessibility> |
| 71 |
<property name="label" translatable="yes">Search torrents</property> |
| 72 |
</accessibility> |
| 73 |
</object> |
| 74 |
</child> |
| 75 |
<child> |
| 76 |
<object class="FrgConnectionBox" id="connection_box"/> |
| 77 |
</child> |
| 78 |
</object> |
| 79 |
</property> |
| 80 |
</object> |
| 81 |
</property> |
| 82 |
</template> |
| 83 |
<object class="FrgConnectionPopover" id="connection_popover"/> |
| 84 |
<menu id="app_menu"> |
| 85 |
<section> |
| 86 |
<item> |
| 87 |
<attribute name="label" translatable="yes">_Resume All</attribute> |
| 88 |
<attribute name="action">app.resume-torrents</attribute> |
| 89 |
</item> |
| 90 |
<item> |
| 91 |
<attribute name="label" translatable="yes">_Pause All</attribute> |
| 92 |
<attribute name="action">app.pause-torrents</attribute> |
| 93 |
</item> |
| 94 |
<item> |
| 95 |
<attribute name="label" translatable="yes">_Remove Completed Torrents</attribute> |
| 96 |
<attribute name="action">app.remove-torrents</attribute> |
| 97 |
</item> |
| 98 |
<item> |
| 99 |
<attribute name="label" translatable="yes">_Statistics…</attribute> |
| 100 |
<attribute name="action">app.show-stats</attribute> |
| 101 |
</item> |
| 102 |
</section> |
| 103 |
<section> |
| 104 |
<item> |
| 105 |
<attribute name="label" translatable="yes">_Add Remote Connection…</attribute> |
| 106 |
<attribute name="action">app.add-remote-connection</attribute> |
| 107 |
</item> |
| 108 |
</section> |
| 109 |
<section> |
| 110 |
<item> |
| 111 |
<attribute name="label" translatable="yes">_Preferences</attribute> |
| 112 |
<attribute name="action">app.show-preferences</attribute> |
| 113 |
</item> |
| 114 |
<item> |
| 115 |
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute> |
| 116 |
<attribute name="action">win.show-help-overlay</attribute> |
| 117 |
</item> |
| 118 |
<item> |
| 119 |
<attribute name="label" translatable="yes">_About Fragments</attribute> |
| 120 |
<attribute name="action">app.about</attribute> |
| 121 |
</item> |
| 122 |
</section> |
| 123 |
</menu> |
| 124 |
</interface> |