anastasis_gtk_edit_providers.ui (12134B)
1 <?xml version='1.0' encoding='UTF-8'?> 2 <!-- Created with Cambalache 0.94.1 --> 3 <!-- 4 Copyright (C) 2019-2021 Anastasis SARL 5 6 This file is part of Anastasis-gtk. 7 8 Anastasis-gtk is free software: you can redistribute it and/or modify 9 it under the terms of the GNU Lesser General Public License as published by 10 the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 Anastasis-gtk is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU Lesser General Public License for more details. 17 18 You should have received a copy of the GNU Lesser General Public License 19 along with Anastasis-gtk. If not, see <http://www.gnu.org/licenses/>. 20 21 Author: Christian Grothoff--> 22 <interface> 23 <!-- interface-name anastasis_gtk_edit_providers.ui --> 24 <requires lib="gio" version="2.44"/> 25 <requires lib="gtk" version="4.0"/> 26 <object class="GListStore" id="provider_liststore"> 27 <property name="item-type">AGRow</property> 28 </object> 29 <object class="GtkSortListModel" id="provider_sorted"> 30 <property name="model">provider_liststore</property> 31 </object> 32 <object class="GtkSingleSelection" id="provider_selection"> 33 <property name="autoselect">0</property> 34 <property name="can-unselect">1</property> 35 <property name="model">provider_sorted</property> 36 </object> 37 <object class="GtkDialog" id="edit_provider_dialog"> 38 <property name="default-widget">add_button</property> 39 <property name="focus-widget">url_entry</property> 40 <property name="modal">1</property> 41 <signal name="response" handler="edit_provider_dialog_response_cb"/> 42 <child internal-child="content_area"> 43 <object class="GtkBox"> 44 <property name="orientation">vertical</property> 45 <property name="spacing">2</property> 46 <child> 47 <object class="GtkBox"> 48 <property name="focusable">1</property> 49 <property name="orientation">vertical</property> 50 <property name="vexpand">1</property> 51 <child> 52 <object class="GtkBox"> 53 <property name="focusable">1</property> 54 <property name="hexpand">0</property> 55 <property name="margin-bottom">5</property> 56 <property name="margin-top">5</property> 57 <property name="valign">center</property> 58 <child> 59 <object class="GtkLabel"> 60 <property name="label" translatable="yes">Provider URL:</property> 61 <property name="margin-end">5</property> 62 <property name="margin-start">5</property> 63 </object> 64 </child> 65 <child> 66 <object class="GtkEntry" id="url_entry"> 67 <property name="activates-default">1</property> 68 <property name="focusable">1</property> 69 <property name="hexpand">1</property> 70 <property name="margin-end">5</property> 71 <property name="margin-start">5</property> 72 <property name="placeholder-text" translatable="yes">https://</property> 73 <property name="primary-icon-name">gtk-edit</property> 74 <property name="secondary-icon-activatable">0</property> 75 <property name="secondary-icon-sensitive">0</property> 76 <property name="width-chars">54</property> 77 <signal name="changed" handler="url_entry_changed_cb"/> 78 </object> 79 </child> 80 <child> 81 <object class="GtkButton" id="add_button"> 82 <property name="halign">center</property> 83 <property name="label" translatable="yes">_Add</property> 84 <property name="receives-default">1</property> 85 <property name="sensitive">0</property> 86 <property name="use-underline">1</property> 87 <signal name="clicked" handler="url_add_button_clicked_cb"/> 88 </object> 89 </child> 90 </object> 91 </child> 92 <child> 93 <object class="GtkBox"> 94 <property name="hexpand">0</property> 95 <property name="vexpand">1</property> 96 <child> 97 <object class="GtkFrame"> 98 <property name="child"> 99 <object class="GtkScrolledWindow"> 100 <property name="child"> 101 <object class="GtkColumnView" id="provider_tree_view"> 102 <property name="model">provider_selection</property> 103 <child> 104 <object class="GtkColumnViewColumn" id="enabled_column"> 105 <property name="factory"> 106 <object class="GtkSignalListItemFactory"> 107 <signal name="setup" handler="AG_cell_setup_provider_use"/> 108 <signal name="bind" handler="AG_cell_bind_provider_use"/> 109 <signal name="unbind" handler="AG_cell_unbind"/> 110 </object> 111 </property> 112 <property name="title" translatable="yes">Use</property> 113 </object> 114 </child> 115 <child> 116 <object class="GtkColumnViewColumn" id="url_column"> 117 <property name="factory"> 118 <object class="GtkSignalListItemFactory"> 119 <signal name="setup" handler="AG_cell_setup_text"/> 120 <signal name="bind" handler="AG_cell_bind_provider_name"/> 121 <signal name="unbind" handler="AG_cell_unbind"/> 122 </object> 123 </property> 124 <property name="title" translatable="yes">Provider</property> 125 </object> 126 </child> 127 <child> 128 <object class="GtkColumnViewColumn" id="liability_column"> 129 <property name="factory"> 130 <object class="GtkSignalListItemFactory"> 131 <signal name="setup" handler="AG_cell_setup_text"/> 132 <signal name="bind" handler="AG_cell_bind_provider_liability"/> 133 <signal name="unbind" handler="AG_cell_unbind"/> 134 </object> 135 </property> 136 <property name="title" translatable="yes">Liability limit</property> 137 </object> 138 </child> 139 <child> 140 <object class="GtkColumnViewColumn" id="status_column"> 141 <property name="expand">1</property> 142 <property name="factory"> 143 <object class="GtkSignalListItemFactory"> 144 <signal name="setup" handler="AG_cell_setup_text"/> 145 <signal name="bind" handler="AG_cell_bind_provider_status"/> 146 <signal name="unbind" handler="AG_cell_unbind"/> 147 </object> 148 </property> 149 <property name="title" translatable="yes">Status</property> 150 </object> 151 </child> 152 <child> 153 <object class="GtkGestureClick"> 154 <property name="button">3</property> 155 <signal name="pressed" handler="provider_tree_view_pressed_cb"/> 156 </object> 157 </child> 158 </object> 159 </property> 160 <property name="height-request">300</property> 161 <property name="margin-start">12</property> 162 </object> 163 </property> 164 <property name="hexpand">1</property> 165 <property name="margin-end">5</property> 166 <property name="margin-start">5</property> 167 <property name="margin-top">10</property> 168 <child type="label"> 169 <object class="GtkLabel"> 170 <property name="label" translatable="yes">Known providers</property> 171 <attributes> 172 <attribute name="weight" value="bold"/> 173 </attributes> 174 </object> 175 </child> 176 <style> 177 <class name="flat"/> 178 </style> 179 </object> 180 </child> 181 </object> 182 </child> 183 </object> 184 </child> 185 </object> 186 </child> 187 <child type="titlebar"> 188 <object class="GtkLabel"> 189 <property name="label" translatable="yes">Add Anastasis provider</property> 190 </object> 191 </child> 192 <child internal-child="action_area"> 193 <object class="GtkBox"> 194 <property name="can-focus">0</property> 195 <property name="halign">end</property> 196 <property name="homogeneous">1</property> 197 <property name="spacing">6</property> 198 <child> 199 <object class="GtkButton" id="cancel_button"> 200 <property name="child"> 201 <object class="GtkBox"> 202 <property name="halign">center</property> 203 <property name="spacing">2</property> 204 <child> 205 <object class="GtkImage"> 206 <property name="icon-name">gtk-cancel</property> 207 </object> 208 </child> 209 <child> 210 <object class="GtkLabel"> 211 <property name="label" translatable="yes">_Cancel</property> 212 <property name="mnemonic-widget">cancel_button</property> 213 <property name="use-underline">1</property> 214 </object> 215 </child> 216 </object> 217 </property> 218 </object> 219 </child> 220 <child> 221 <object class="GtkButton" id="close_button"> 222 <property name="child"> 223 <object class="GtkBox"> 224 <property name="halign">center</property> 225 <property name="spacing">2</property> 226 <child> 227 <object class="GtkImage"> 228 <property name="icon-name">gtk-apply</property> 229 </object> 230 </child> 231 <child> 232 <object class="GtkLabel"> 233 <property name="label" translatable="yes">_Apply</property> 234 <property name="mnemonic-widget">close_button</property> 235 <property name="use-underline">1</property> 236 </object> 237 </child> 238 </object> 239 </property> 240 </object> 241 </child> 242 </object> 243 </child> 244 <action-widgets> 245 <action-widget response="-6">cancel_button</action-widget> 246 <action-widget response="-10">close_button</action-widget> 247 </action-widgets> 248 <action-widgets> 249 <action-widget response="-6">cancel_button</action-widget> 250 <action-widget response="-10">close_button</action-widget> 251 </action-widgets> 252 </object> 253 </interface>