blob: 83c83a970e8d53204fc3f038798582e89a96db5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.0"/>
<template class="HdyDemoPreferencesWindow" parent="HdyPreferencesWindow">
<property name="can-swipe-back">True</property>
<child>
<object class="HdyPreferencesPage">
<property name="icon_name">edit-select-all-symbolic</property>
<property name="title">Layout</property>
<property name="visible">True</property>
<child>
<object class="HdyPreferencesGroup">
<property name="visible">True</property>
<child>
<object class="HdyPreferencesRow">
<property name="title" bind-source="welcome_label" bind-property="label" bind-flags="sync-create"/>
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="welcome_label">
<property name="ellipsize">end</property>
<property name="label" translatable="yes">This is a preferences window</property>
<property name="margin">12</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="HdyPreferencesGroup">
<property name="description" translatable="yes">Preferences are organized in pages, this example has the following pages:</property>
<property name="title" translatable="yes">Pages</property>
<property name="visible">True</property>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Layout</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Search</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="HdyPreferencesGroup">
<property name="description" translatable="yes">Preferences are grouped together, a group can have a tile and a description. Descriptions will be wrapped if they are too long. This page has the following groups:</property>
<property name="title" translatable="yes">Groups</property>
<property name="visible">True</property>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">An untitled group</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Pages</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Groups</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Preferences</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="HdyPreferencesGroup">
<property name="title" translatable="yes">Preferences</property>
<property name="visible">True</property>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Preferences rows are appended to the list box</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<style>
<class name="inline-toolbar"/>
</style>
<child>
<object class="GtkLabel">
<property name="ellipsize">end</property>
<property name="label" translatable="yes">Other widgets are appended after the list box</property>
<property name="margin">12</property>
<property name="visible">True</property>
<property name="xalign">0</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="HdyPreferencesGroup">
<property name="description" translatable="yes">Preferences windows can have subpages.</property>
<property name="title" translatable="yes">Subpages</property>
<property name="visible">True</property>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Go to a subpage</property>
<property name="visible">True</property>
<property name="activatable">True</property>
<signal name="activated" handler="subpage1_activated_cb" swapped="yes"/>
<child>
<object class="GtkImage">
<property name="icon_name">go-next-symbolic</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Go to another subpage</property>
<property name="visible">True</property>
<property name="activatable">True</property>
<signal name="activated" handler="subpage2_activated_cb" swapped="yes"/>
<child>
<object class="GtkImage">
<property name="icon_name">go-next-symbolic</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="HdyPreferencesPage">
<property name="icon_name">edit-find-symbolic</property>
<property name="title">Search</property>
<property name="visible">True</property>
<child>
<object class="HdyPreferencesGroup">
<property name="description">Preferences can be searched, do so using one of the following ways:</property>
<property name="title">Searching</property>
<property name="visible">True</property>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Activate the search button</property>
<property name="visible">True</property>
</object>
</child>
<child>
<object class="HdyPreferencesRow">
<property name="title" translatable="yes">Ctrl + F</property>
<property name="visible">True</property>
<child>
<object class="GtkShortcutLabel">
<property name="accelerator"><ctrl>f</property>
<property name="margin">12</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="HdyActionRow">
<property name="title" translatable="yes">Directly type your search</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkBox" id="subpage1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="hexpand">True</property>
<property name="spacing">24</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">This is a subpage</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="opacity">0.5</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="2"/>
</attributes>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Return to the preferences</property>
<signal name="clicked" handler="return_to_preferences_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
<object class="GtkBox" id="subpage2">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="hexpand">True</property>
<property name="spacing">24</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">This is another subpage</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="opacity">0.5</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="2"/>
</attributes>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Return to the preferences</property>
<signal name="clicked" handler="return_to_preferences_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</interface>
|