| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="FrgAddConnectionDialog" parent="AdwDialog"> |
| 4 |
<property name="width_request">325</property> |
| 5 |
<property name="height_request">240</property> |
| 6 |
<property name="content_width">500</property> |
| 7 |
<property name="content_height">340</property> |
| 8 |
<property name="default_widget">connect_button</property> |
| 9 |
<property name="title" translatable="yes">Add Remote Connection</property> |
| 10 |
<child> |
| 11 |
<object class="AdwToolbarView"> |
| 12 |
<child type="top"> |
| 13 |
<object class="AdwHeaderBar"> |
| 14 |
<property name="show-end-title-buttons">False</property> |
| 15 |
<property name="show-start-title-buttons">False</property> |
| 16 |
<child> |
| 17 |
<object class="GtkButton"> |
| 18 |
<property name="visible">True</property> |
| 19 |
<property name="label" translatable="yes">Cancel</property> |
| 20 |
<property name="action-name">window.close</property> |
| 21 |
</object> |
| 22 |
</child> |
| 23 |
<child type="end"> |
| 24 |
<object class="GtkButton" id="connect_button"> |
| 25 |
<property name="label" translatable="yes">_Connect</property> |
| 26 |
<property name="use-underline">True</property> |
| 27 |
<property name="sensitive">False</property> |
| 28 |
<signal name="clicked" handler="connect_button_clicked" swapped="true" /> |
| 29 |
<style> |
| 30 |
<class name="suggested-action" /> |
| 31 |
</style> |
| 32 |
</object> |
| 33 |
</child> |
| 34 |
</object> |
| 35 |
</child> |
| 36 |
<child> |
| 37 |
<object class="GtkStack" id="stack"> |
| 38 |
<property name="transition_type">crossfade</property> |
| 39 |
<child> |
| 40 |
<object class="GtkStackPage"> |
| 41 |
<property name="name">input</property> |
| 42 |
<property name="child"> |
| 43 |
<object class="GtkScrolledWindow"> |
| 44 |
<property name="hscrollbar-policy">never</property> |
| 45 |
<child> |
| 46 |
<object class="AdwClamp"> |
| 47 |
<property name="margin-start">12</property> |
| 48 |
<property name="margin-end">12</property> |
| 49 |
<property name="margin-top">24</property> |
| 50 |
<property name="margin-bottom">24</property> |
| 51 |
<child> |
| 52 |
<object class="GtkBox"> |
| 53 |
<property name="orientation">vertical</property> |
| 54 |
<property name="spacing">24</property> |
| 55 |
<child> |
| 56 |
<object class="AdwPreferencesGroup"> |
| 57 |
<property name="description" translatable="yes">Enter the address of a remote Fragments or Transmission session to connect to.</property> |
| 58 |
<child> |
| 59 |
<object class="AdwEntryRow" id="title_row"> |
| 60 |
<property name="title" translatable="yes">Name</property> |
| 61 |
<signal name="notify::text" handler="validate_title" swapped="true" /> |
| 62 |
<property name="activates_default">True</property> |
| 63 |
</object> |
| 64 |
</child> |
| 65 |
<child> |
| 66 |
<object class="AdwEntryRow" id="host_row"> |
| 67 |
<property name="title" translatable="yes">Host</property> |
| 68 |
<signal name="notify::text" handler="validate_address" swapped="true" /> |
| 69 |
<property name="activates_default">True</property> |
| 70 |
</object> |
| 71 |
</child> |
| 72 |
</object> |
| 73 |
</child> |
| 74 |
<child> |
| 75 |
<object class="GtkLabel" id="error_label"> |
| 76 |
<property name="wrap">True</property> |
| 77 |
<property name="xalign">0</property> |
| 78 |
<property name="visible">False</property> |
| 79 |
<style> |
| 80 |
<class name="error" /> |
| 81 |
<class name="dim-label" /> |
| 82 |
</style> |
| 83 |
</object> |
| 84 |
</child> |
| 85 |
<child> |
| 86 |
<object class="AdwPreferencesGroup"> |
| 87 |
<child> |
| 88 |
<object class="AdwExpanderRow"> |
| 89 |
<property name="title" translatable="yes">Advanced Settings</property> |
| 90 |
<child> |
| 91 |
<object class="AdwSpinRow" id="port_spinbutton"> |
| 92 |
<property name="title" translatable="yes">Port</property> |
| 93 |
<property name="adjustment"> |
| 94 |
<object class="GtkAdjustment"> |
| 95 |
<property name="upper">65535</property> |
| 96 |
<property name="lower">1</property> |
| 97 |
<property name="step_increment">1</property> |
| 98 |
<property name="page_increment">10</property> |
| 99 |
</object> |
| 100 |
</property> |
| 101 |
<property name="numeric">True</property> |
| 102 |
<property name="value">9091</property> |
| 103 |
<signal name="notify::value" handler="validate_address" swapped="true" /> |
| 104 |
</object> |
| 105 |
</child> |
| 106 |
<child> |
| 107 |
<object class="AdwEntryRow" id="path_row"> |
| 108 |
<property name="title" translatable="yes">URL Path</property> |
| 109 |
<property name="text">/transmission/rpc</property> |
| 110 |
<signal name="notify::text" handler="validate_address" swapped="true" /> |
| 111 |
<property name="activates_default">True</property> |
| 112 |
</object> |
| 113 |
</child> |
| 114 |
<child> |
| 115 |
<object class="AdwSwitchRow" id="ssl_switch"> |
| 116 |
<property name="title" translatable="yes">SSL</property> |
| 117 |
<signal name="notify::active" handler="validate_address" swapped="true" /> |
| 118 |
</object> |
| 119 |
</child> |
| 120 |
</object> |
| 121 |
</child> |
| 122 |
</object> |
| 123 |
</child> |
| 124 |
</object> |
| 125 |
</child> |
| 126 |
</object> |
| 127 |
</child> |
| 128 |
</object> |
| 129 |
</property> |
| 130 |
</object> |
| 131 |
</child> |
| 132 |
<child> |
| 133 |
<object class="GtkStackPage"> |
| 134 |
<property name="name">loading</property> |
| 135 |
<property name="child"> |
| •136 |
<object class="AdwSpinner" /> |
| 137 |
</property> |
| 138 |
</object> |
| 139 |
</child> |
| 140 |
</object> |
| 141 |
</child> |
| 142 |
</object> |
| 143 |
</child> |
| 144 |
</template> |
| 145 |
</interface> |