| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="libadwaita" version="1.0"/> |
| 5 |
<template class="AdwDemoPageLists" parent="AdwBin"> |
| 6 |
<property name="child"> |
| 7 |
<object class="AdwToolbarView"> |
| 8 |
<child type="top"> |
| 9 |
<object class="AdwHeaderBar"> |
| 10 |
<property name="show-title">False</property> |
| 11 |
</object> |
| 12 |
</child> |
| 13 |
<property name="content"> |
| 14 |
<object class="AdwStatusPage"> |
| 15 |
<property name="icon-name">widget-list-symbolic</property> |
| 16 |
<property name="title" translatable="yes">Boxed Lists</property> |
| 17 |
<property name="description" translatable="yes">Rows for the boxed list pattern</property> |
| 18 |
<property name="child"> |
| 19 |
<object class="AdwClamp"> |
| 20 |
<property name="maximum-size">400</property> |
| 21 |
<property name="tightening-threshold">300</property> |
| 22 |
<property name="child"> |
| 23 |
<object class="GtkBox"> |
| 24 |
<property name="orientation">vertical</property> |
| 25 |
<property name="spacing">12</property> |
| 26 |
<child> |
| 27 |
<object class="AdwPreferencesGroup"> |
| 28 |
<child> |
| 29 |
<object class="AdwActionRow"> |
| 30 |
<property name="subtitle" translatable="yes">They also have a subtitle</property> |
| 31 |
<property name="title" translatable="yes">Rows Have a Title</property> |
| 32 |
</object> |
| 33 |
</child> |
| 34 |
<child> |
| 35 |
<object class="AdwActionRow"> |
| 36 |
<property name="title" translatable="yes">Rows Can Have Suffix Widgets</property> |
| 37 |
<child> |
| 38 |
<object class="GtkButton"> |
| 39 |
<property name="label" translatable="yes">Action</property> |
| 40 |
<property name="valign">center</property> |
| 41 |
</object> |
| 42 |
</child> |
| 43 |
</object> |
| 44 |
</child> |
| 45 |
</object> |
| 46 |
</child> |
| 47 |
<child> |
| 48 |
<object class="AdwPreferencesGroup"> |
| 49 |
<child> |
| 50 |
<object class="AdwActionRow"> |
| 51 |
<property name="activatable_widget">radio_button_1</property> |
| 52 |
<property name="title" translatable="yes">Rows Can Have Prefix Widgets</property> |
| 53 |
<child type="prefix"> |
| 54 |
<object class="GtkCheckButton" id="radio_button_1"> |
| 55 |
<property name="valign">center</property> |
| 56 |
<property name="active">True</property> |
| 57 |
</object> |
| 58 |
</child> |
| 59 |
</object> |
| 60 |
</child> |
| 61 |
<child> |
| 62 |
<object class="AdwActionRow"> |
| 63 |
<property name="activatable_widget">radio_button_2</property> |
| 64 |
<property name="title" translatable="yes">Rows Can Have Prefix Widgets</property> |
| 65 |
<child type="prefix"> |
| 66 |
<object class="GtkCheckButton" id="radio_button_2"> |
| 67 |
<property name="group">radio_button_1</property> |
| 68 |
<property name="valign">center</property> |
| 69 |
</object> |
| 70 |
</child> |
| 71 |
</object> |
| 72 |
</child> |
| 73 |
</object> |
| 74 |
</child> |
| 75 |
<child> |
| 76 |
<object class="AdwPreferencesGroup"> |
| 77 |
<property name="title" translatable="yes">Entry Rows</property> |
| 78 |
<property name="separate-rows">True</property> |
| 79 |
<child> |
| 80 |
<object class="AdwEntryRow"> |
| 81 |
<property name="title" translatable="yes">Entry Row</property> |
| 82 |
<property name="use_underline">True</property> |
| 83 |
</object> |
| 84 |
</child> |
| 85 |
<child> |
| 86 |
<object class="AdwEntryRow"> |
| 87 |
<property name="title" translatable="yes">Entry With Confirmation</property> |
| 88 |
<property name="show-apply-button">True</property> |
| 89 |
<signal name="apply" handler="entry_apply_cb" swapped="yes"/> |
| 90 |
</object> |
| 91 |
</child> |
| 92 |
<child> |
| 93 |
<object class="AdwEntryRow"> |
| 94 |
<property name="title" translatable="yes">Entry With Suffix</property> |
| 95 |
<child> |
| 96 |
<object class="GtkButton"> |
| 97 |
<property name="valign">center</property> |
| 98 |
<property name="icon_name">edit-copy-symbolic</property> |
| 99 |
<property name="tooltip-text" translatable="yes">Copy</property> |
| 100 |
<style> |
| 101 |
<class name="flat"/> |
| 102 |
</style> |
| 103 |
</object> |
| 104 |
</child> |
| 105 |
</object> |
| 106 |
</child> |
| 107 |
<child> |
| 108 |
<object class="AdwPasswordEntryRow"> |
| 109 |
<property name="title" translatable="yes">Password Entry</property> |
| 110 |
</object> |
| 111 |
</child> |
| 112 |
</object> |
| 113 |
</child> |
| 114 |
<child> |
| 115 |
<object class="AdwPreferencesGroup"> |
| 116 |
<property name="title" translatable="yes">Spin Rows</property> |
| 117 |
<child> |
| 118 |
<object class="AdwSpinRow"> |
| 119 |
<property name="title" translatable="yes">Spin Row</property> |
| 120 |
<property name="adjustment"> |
| 121 |
<object class="GtkAdjustment"> |
| 122 |
<property name="lower">0</property> |
| 123 |
<property name="upper">100</property> |
| 124 |
<property name="value">50</property> |
| 125 |
<property name="page-increment">10</property> |
| 126 |
<property name="step-increment">1</property> |
| 127 |
</object> |
| 128 |
</property> |
| 129 |
</object> |
| 130 |
</child> |
| 131 |
</object> |
| 132 |
</child> |
| 133 |
<child> |
| 134 |
<object class="AdwPreferencesGroup"> |
| 135 |
<property name="title" translatable="yes">Switch Rows</property> |
| 136 |
<child> |
| 137 |
<object class="AdwSwitchRow" id="switch_row"> |
| 138 |
<property name="title" translatable="yes">Switch Row</property> |
| 139 |
</object> |
| 140 |
</child> |
| 141 |
</object> |
| 142 |
</child> |
| 143 |
<child> |
| 144 |
<object class="AdwPreferencesGroup"> |
| 145 |
<property name="title" translatable="yes">Combo Rows</property> |
| 146 |
<child> |
| 147 |
<object class="AdwComboRow" id="combo_row"> |
| 148 |
<property name="title" translatable="yes">Combo Row</property> |
| 149 |
<property name="model"> |
| 150 |
<object class="GtkStringList"> |
| 151 |
<items> |
| 152 |
<item>Foo</item> |
| 153 |
<item>Bar</item> |
| 154 |
<item>Baz</item> |
| 155 |
</items> |
| 156 |
</object> |
| 157 |
</property> |
| 158 |
</object> |
| 159 |
</child> |
| 160 |
<child> |
| 161 |
<object class="AdwComboRow" id="enum_combo_row"> |
| 162 |
<property name="subtitle" translatable="yes">This combo row was created from an enumeration</property> |
| 163 |
<property name="title" translatable="yes">Enumeration Combo Row</property> |
| 164 |
<property name="enable-search">True</property> |
| 165 |
<property name="model"> |
| 166 |
<object class="AdwEnumListModel"> |
| 167 |
<property name="enum-type">GtkLicense</property> |
| 168 |
</object> |
| 169 |
</property> |
| 170 |
<property name="expression"> |
| 171 |
<lookup type="AdwEnumListItem" name="nick"/> |
| 172 |
</property> |
| 173 |
</object> |
| 174 |
</child> |
| 175 |
</object> |
| 176 |
</child> |
| 177 |
<child> |
| 178 |
<object class="AdwPreferencesGroup"> |
| 179 |
<property name="title" translatable="yes">Expander Rows</property> |
| 180 |
<child> |
| 181 |
<object class="AdwExpanderRow" id="expander_row"> |
| 182 |
<property name="title" translatable="yes">Expander Row</property> |
| 183 |
<child> |
| 184 |
<object class="AdwActionRow"> |
| 185 |
<property name="title" translatable="yes">A Nested Row</property> |
| 186 |
</object> |
| 187 |
</child> |
| 188 |
<child> |
| 189 |
<object class="AdwActionRow"> |
| 190 |
<property name="title" translatable="yes">Another Nested Row</property> |
| 191 |
</object> |
| 192 |
</child> |
| 193 |
</object> |
| 194 |
</child> |
| 195 |
<child> |
| 196 |
<object class="AdwExpanderRow" id="action_expander_row"> |
| 197 |
<property name="title" translatable="yes">Expander Row With an Action</property> |
| 198 |
<child type="suffix"> |
| 199 |
<object class="GtkButton"> |
| 200 |
<property name="valign">center</property> |
| 201 |
<property name="icon_name">edit-copy-symbolic</property> |
| 202 |
<property name="tooltip-text" translatable="yes">Copy</property> |
| 203 |
<style> |
| 204 |
<class name="flat"/> |
| 205 |
</style> |
| 206 |
</object> |
| 207 |
</child> |
| 208 |
<child> |
| 209 |
<object class="AdwActionRow"> |
| 210 |
<property name="title" translatable="yes">A Nested Row</property> |
| 211 |
</object> |
| 212 |
</child> |
| 213 |
<child> |
| 214 |
<object class="AdwActionRow"> |
| 215 |
<property name="title" translatable="yes">Another Nested Row</property> |
| 216 |
</object> |
| 217 |
</child> |
| 218 |
</object> |
| 219 |
</child> |
| 220 |
<child> |
| 221 |
<object class="AdwExpanderRow" id="enable_expander_row"> |
| 222 |
<property name="show_enable_switch">True</property> |
| 223 |
<property name="title" translatable="yes">Toggleable Expander Row</property> |
| 224 |
<child> |
| 225 |
<object class="AdwActionRow"> |
| 226 |
<property name="title" translatable="yes">A Nested Row</property> |
| 227 |
</object> |
| 228 |
</child> |
| 229 |
<child> |
| 230 |
<object class="AdwActionRow"> |
| 231 |
<property name="title" translatable="yes">Another Nested Row</property> |
| 232 |
</object> |
| 233 |
</child> |
| 234 |
</object> |
| 235 |
</child> |
| 236 |
</object> |
| 237 |
</child> |
| 238 |
<child> |
| 239 |
<object class="AdwPreferencesGroup"> |
| 240 |
<property name="title" translatable="yes">Property Rows</property> |
| 241 |
<child> |
| 242 |
<object class="AdwActionRow"> |
| 243 |
<property name="title" translatable="yes">Property Row</property> |
| 244 |
<property name="subtitle">Value</property> |
| 245 |
<property name="subtitle-selectable">True</property> |
| 246 |
<style> |
| 247 |
<class name="property"/> |
| 248 |
</style> |
| 249 |
</object> |
| 250 |
</child> |
| 251 |
</object> |
| 252 |
</child> |
| 253 |
<child> |
| 254 |
<object class="AdwPreferencesGroup"> |
| 255 |
<property name="title" translatable="yes">Groups With Suffix</property> |
| 256 |
<property name="header-suffix"> |
| 257 |
<object class="GtkButton"> |
| 258 |
<property name="child"> |
| 259 |
<object class="AdwButtonContent"> |
| 260 |
<property name="icon-name">list-add-symbolic</property> |
| 261 |
<property name="label" translatable="yes">Suffix</property> |
| 262 |
</object> |
| 263 |
</property> |
| 264 |
<style> |
| 265 |
<class name="flat"/> |
| 266 |
</style> |
| 267 |
</object> |
| 268 |
</property> |
| 269 |
<child> |
| 270 |
<object class="AdwActionRow"> |
| 271 |
<property name="title" translatable="yes">Groups Can Have a Header Suffix</property> |
| 272 |
</object> |
| 273 |
</child> |
| 274 |
</object> |
| 275 |
</child> |
| 276 |
<child> |
| 277 |
<object class="AdwPreferencesGroup"> |
| 278 |
<property name="title" translatable="yes">Button Rows</property> |
| 279 |
<property name="separate-rows">True</property> |
| 280 |
<child> |
| 281 |
<object class="AdwButtonRow"> |
| 282 |
<property name="title" translatable="yes">Add Input Source</property> |
| 283 |
<property name="start-icon-name">list-add-symbolic</property> |
| 284 |
</object> |
| 285 |
</child> |
| 286 |
<child> |
| 287 |
<object class="AdwButtonRow"> |
| 288 |
<property name="title" translatable="yes">Add Calendar</property> |
| 289 |
<property name="end-icon-name">go-next-symbolic</property> |
| 290 |
</object> |
| 291 |
</child> |
| 292 |
<child> |
| 293 |
<object class="AdwButtonRow"> |
| 294 |
<property name="title" translatable="yes">Delete Event</property> |
| 295 |
<style> |
| 296 |
<class name="destructive-action"/> |
| 297 |
</style> |
| 298 |
</object> |
| 299 |
</child> |
| 300 |
<child> |
| 301 |
<object class="AdwButtonRow"> |
| 302 |
<property name="title" translatable="yes">Search</property> |
| 303 |
<style> |
| 304 |
<class name="suggested-action"/> |
| 305 |
</style> |
| 306 |
</object> |
| 307 |
</child> |
| 308 |
</object> |
| 309 |
</child> |
| 310 |
</object> |
| 311 |
</property> |
| 312 |
</object> |
| 313 |
</property> |
| 314 |
</object> |
| 315 |
</property> |
| 316 |
</object> |
| 317 |
</property> |
| 318 |
</template> |
| 319 |
</interface> |