simplify writeBitmapObject
[LibreOffice.git] / cui / uiconfig / ui / qrcodegen.ui
blobd1c5d9c97aeefadeb8216c26c8fd53bd0930a312
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Generated with glade 3.40.0 -->
3 <interface domain="cui">
4 <requires lib="gtk+" version="3.20"/>
5 <object class="GtkAdjustment" id="margin_value">
6 <property name="upper">75</property>
7 <property name="value">1</property>
8 <property name="step-increment">1</property>
9 <property name="page-increment">10</property>
10 </object>
11 <object class="GtkDialog" id="QrCodeGenDialog">
12 <property name="can-focus">False</property>
13 <property name="border-width">6</property>
14 <property name="title" translatable="yes" context="qrcodegen|QrCodeGenDialog">QR and Barcode</property>
15 <property name="modal">True</property>
16 <property name="default-width">0</property>
17 <property name="default-height">0</property>
18 <property name="type-hint">dialog</property>
19 <child internal-child="vbox">
20 <object class="GtkBox">
21 <property name="can-focus">False</property>
22 <property name="orientation">vertical</property>
23 <property name="spacing">2</property>
24 <child internal-child="action_area">
25 <object class="GtkButtonBox">
26 <property name="can-focus">False</property>
27 <property name="layout-style">end</property>
28 <child>
29 <object class="GtkButton" id="cancel">
30 <property name="label" translatable="yes" context="stock">_Cancel</property>
31 <property name="visible">True</property>
32 <property name="can-focus">True</property>
33 <property name="receives-default">True</property>
34 <property name="use-underline">True</property>
35 </object>
36 <packing>
37 <property name="expand">True</property>
38 <property name="fill">True</property>
39 <property name="position">0</property>
40 </packing>
41 </child>
42 <child>
43 <object class="GtkButton" id="ok">
44 <property name="label" translatable="yes" context="stock">_OK</property>
45 <property name="visible">True</property>
46 <property name="can-focus">True</property>
47 <property name="can-default">True</property>
48 <property name="has-default">True</property>
49 <property name="receives-default">True</property>
50 <property name="use-underline">True</property>
51 </object>
52 <packing>
53 <property name="expand">True</property>
54 <property name="fill">True</property>
55 <property name="position">1</property>
56 </packing>
57 </child>
58 <child>
59 <object class="GtkButton" id="help">
60 <property name="label" translatable="yes" context="stock">_Help</property>
61 <property name="visible">True</property>
62 <property name="can-focus">True</property>
63 <property name="receives-default">True</property>
64 <property name="use-underline">True</property>
65 </object>
66 <packing>
67 <property name="expand">True</property>
68 <property name="fill">True</property>
69 <property name="position">2</property>
70 <property name="secondary">True</property>
71 </packing>
72 </child>
73 </object>
74 <packing>
75 <property name="expand">False</property>
76 <property name="fill">False</property>
77 <property name="position">1</property>
78 </packing>
79 </child>
80 <child>
81 <!-- n-columns=1 n-rows=1 -->
82 <object class="GtkGrid">
83 <property name="visible">True</property>
84 <property name="can-focus">False</property>
85 <property name="margin-start">6</property>
86 <property name="margin-end">6</property>
87 <property name="margin-top">6</property>
88 <property name="margin-bottom">6</property>
89 <property name="hexpand">True</property>
90 <property name="vexpand">True</property>
91 <property name="row-spacing">6</property>
92 <property name="column-spacing">6</property>
93 <child>
94 <object class="GtkFrame">
95 <property name="visible">True</property>
96 <property name="can-focus">False</property>
97 <property name="hexpand">True</property>
98 <property name="vexpand">True</property>
99 <property name="label-xalign">0</property>
100 <property name="shadow-type">none</property>
101 <child>
102 <!-- n-columns=2 n-rows=4 -->
103 <object class="GtkGrid">
104 <property name="visible">True</property>
105 <property name="can-focus">False</property>
106 <property name="margin-top">6</property>
107 <property name="hexpand">True</property>
108 <property name="vexpand">True</property>
109 <property name="row-spacing">6</property>
110 <property name="column-spacing">12</property>
111 <child>
112 <object class="GtkLabel" id="label_text">
113 <property name="visible">True</property>
114 <property name="can-focus">False</property>
115 <property name="halign">start</property>
116 <property name="valign">start</property>
117 <property name="label" translatable="yes" context="qrcodegen|label_text" comments="Text to be stored in the QR">URL/Text:</property>
118 <property name="use-underline">True</property>
119 <property name="mnemonic-widget">edit_text</property>
120 <property name="xalign">0</property>
121 </object>
122 <packing>
123 <property name="left-attach">0</property>
124 <property name="top-attach">0</property>
125 </packing>
126 </child>
127 <child>
128 <object class="GtkScrolledWindow">
129 <property name="visible">True</property>
130 <property name="can-focus">True</property>
131 <property name="hexpand">True</property>
132 <property name="vexpand">True</property>
133 <property name="hscrollbar-policy">always</property>
134 <property name="shadow-type">in</property>
135 <child>
136 <object class="GtkTextView" id="edit_text">
137 <property name="visible">True</property>
138 <property name="can-focus">True</property>
139 <property name="hexpand">True</property>
140 <property name="vexpand">True</property>
141 <property name="accepts-tab">False</property>
142 <child internal-child="accessible">
143 <object class="AtkObject" id="edit_text-atkobject">
144 <property name="AtkObject::accessible-description" translatable="yes" context="qr text">The text from which to generate the code.</property>
145 </object>
146 </child>
147 </object>
148 </child>
149 </object>
150 <packing>
151 <property name="left-attach">1</property>
152 <property name="top-attach">0</property>
153 </packing>
154 </child>
155 <child>
156 <!-- n-columns=1 n-rows=1 -->
157 <object class="GtkGrid">
158 <property name="visible">True</property>
159 <property name="can-focus">False</property>
160 <property name="row-spacing">2</property>
161 <child>
162 <object class="GtkLabel" id="label_ecc">
163 <property name="visible">True</property>
164 <property name="can-focus">False</property>
165 <property name="halign">start</property>
166 <property name="label" translatable="yes" context="qrcodegen|label_ecc" comments="Error Correction Level of QR code">Error correction:</property>
167 <property name="use-underline">True</property>
168 <property name="xalign">0</property>
169 <accessibility>
170 <relation type="label-for" target="button_low"/>
171 <relation type="label-for" target="button_medium"/>
172 <relation type="label-for" target="button_quartile"/>
173 <relation type="label-for" target="button_high"/>
174 </accessibility>
175 </object>
176 <packing>
177 <property name="left-attach">0</property>
178 <property name="top-attach">0</property>
179 </packing>
180 </child>
181 </object>
182 <packing>
183 <property name="left-attach">0</property>
184 <property name="top-attach">1</property>
185 </packing>
186 </child>
187 <child>
188 <!-- n-columns=1 n-rows=4 -->
189 <object class="GtkGrid">
190 <property name="visible">True</property>
191 <property name="can-focus">False</property>
192 <property name="row-spacing">2</property>
193 <child>
194 <object class="GtkRadioButton" id="button_low">
195 <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Low</property>
196 <property name="visible">True</property>
197 <property name="can-focus">True</property>
198 <property name="receives-default">False</property>
199 <property name="use-underline">True</property>
200 <property name="active">True</property>
201 <property name="draw-indicator">True</property>
202 <accessibility>
203 <relation type="labelled-by" target="label_ecc"/>
204 </accessibility>
205 <child internal-child="accessible">
206 <object class="AtkObject" id="button_low-atkobject">
207 <property name="AtkObject::accessible-description" translatable="yes" context="button_low">7% of codewords can be restored.</property>
208 </object>
209 </child>
210 </object>
211 <packing>
212 <property name="left-attach">0</property>
213 <property name="top-attach">0</property>
214 </packing>
215 </child>
216 <child>
217 <object class="GtkRadioButton" id="button_medium">
218 <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Medium</property>
219 <property name="visible">True</property>
220 <property name="can-focus">True</property>
221 <property name="receives-default">False</property>
222 <property name="use-underline">True</property>
223 <property name="draw-indicator">True</property>
224 <property name="group">button_low</property>
225 <accessibility>
226 <relation type="labelled-by" target="label_ecc"/>
227 </accessibility>
228 <child internal-child="accessible">
229 <object class="AtkObject" id="button_medium-atkobject">
230 <property name="AtkObject::accessible-description" translatable="yes" context="button_medium">15% of codewords can be restored.</property>
231 </object>
232 </child>
233 </object>
234 <packing>
235 <property name="left-attach">0</property>
236 <property name="top-attach">1</property>
237 </packing>
238 </child>
239 <child>
240 <object class="GtkRadioButton" id="button_quartile">
241 <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Quartile</property>
242 <property name="visible">True</property>
243 <property name="can-focus">True</property>
244 <property name="receives-default">False</property>
245 <property name="use-underline">True</property>
246 <property name="draw-indicator">True</property>
247 <property name="group">button_low</property>
248 <accessibility>
249 <relation type="labelled-by" target="label_ecc"/>
250 </accessibility>
251 <child internal-child="accessible">
252 <object class="AtkObject" id="button_quartile-atkobject">
253 <property name="AtkObject::accessible-description" translatable="yes" context="button_quartile">25% of codewords can be restored.</property>
254 </object>
255 </child>
256 </object>
257 <packing>
258 <property name="left-attach">0</property>
259 <property name="top-attach">2</property>
260 </packing>
261 </child>
262 <child>
263 <object class="GtkRadioButton" id="button_high">
264 <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">High</property>
265 <property name="visible">True</property>
266 <property name="can-focus">True</property>
267 <property name="receives-default">False</property>
268 <property name="use-underline">True</property>
269 <property name="draw-indicator">True</property>
270 <property name="group">button_low</property>
271 <accessibility>
272 <relation type="labelled-by" target="label_ecc"/>
273 </accessibility>
274 <child internal-child="accessible">
275 <object class="AtkObject" id="button_high-atkobject">
276 <property name="AtkObject::accessible-description" translatable="yes" context="button_high">30% of codewords can be restored.</property>
277 </object>
278 </child>
279 </object>
280 <packing>
281 <property name="left-attach">0</property>
282 <property name="top-attach">3</property>
283 </packing>
284 </child>
285 </object>
286 <packing>
287 <property name="left-attach">1</property>
288 <property name="top-attach">1</property>
289 </packing>
290 </child>
291 <child>
292 <object class="GtkLabel" id="label_margin">
293 <property name="visible">True</property>
294 <property name="can-focus">False</property>
295 <property name="halign">start</property>
296 <property name="label" translatable="yes" context="qrcodegen|label_margin" comments="Set Margin around QR">Margin:</property>
297 <property name="use-underline">True</property>
298 <property name="mnemonic-widget">edit_margin</property>
299 <property name="xalign">0</property>
300 </object>
301 <packing>
302 <property name="left-attach">0</property>
303 <property name="top-attach">2</property>
304 </packing>
305 </child>
306 <child>
307 <object class="GtkSpinButton" id="edit_margin">
308 <property name="visible">True</property>
309 <property name="can-focus">True</property>
310 <property name="activates-default">True</property>
311 <property name="truncate-multiline">True</property>
312 <property name="adjustment">margin_value</property>
313 <property name="snap-to-ticks">True</property>
314 <property name="numeric">True</property>
315 <child internal-child="accessible">
316 <object class="AtkObject" id="edit_margin-atkobject">
317 <property name="AtkObject::accessible-description" translatable="yes" context="edit margin">The margin surrounding the code.</property>
318 </object>
319 </child>
320 </object>
321 <packing>
322 <property name="left-attach">1</property>
323 <property name="top-attach">2</property>
324 </packing>
325 </child>
326 <child>
327 <object class="GtkLabel" id="label_type">
328 <property name="visible">True</property>
329 <property name="can-focus">False</property>
330 <property name="halign">start</property>
331 <property name="label" translatable="yes" context="qrcodegen|label_type" comments="Select type">Type:</property>
332 <property name="use-underline">True</property>
333 <property name="mnemonic-widget">choose_type</property>
334 <property name="xalign">0</property>
335 </object>
336 <packing>
337 <property name="left-attach">0</property>
338 <property name="top-attach">3</property>
339 </packing>
340 </child>
341 <child>
342 <object class="GtkComboBoxText" id="choose_type">
343 <property name="visible">True</property>
344 <property name="can-focus">False</property>
345 <property name="hexpand">True</property>
346 <property name="active">0</property>
347 <items>
348 <item translatable="yes" context="qrcodegen|QrCode">QR Code</item>
349 <item translatable="yes" context="qrcodegen|BarCode">Barcode</item>
350 </items>
351 <child internal-child="accessible">
352 <object class="AtkObject" id="choose_type-atkobject">
353 <property name="AtkObject::accessible-description" translatable="yes" context="type">The type of code to generate.</property>
354 </object>
355 </child>
356 </object>
357 <packing>
358 <property name="left-attach">1</property>
359 <property name="top-attach">3</property>
360 </packing>
361 </child>
362 </object>
363 </child>
364 <child type="label">
365 <object class="GtkLabel">
366 <property name="visible">True</property>
367 <property name="can-focus">False</property>
368 <property name="label" translatable="yes" context="qrcodegen|QR Code Properties">Options</property>
369 <attributes>
370 <attribute name="weight" value="bold"/>
371 </attributes>
372 </object>
373 </child>
374 </object>
375 <packing>
376 <property name="left-attach">0</property>
377 <property name="top-attach">0</property>
378 </packing>
379 </child>
380 </object>
381 <packing>
382 <property name="expand">False</property>
383 <property name="fill">True</property>
384 <property name="position">0</property>
385 </packing>
386 </child>
387 </object>
388 </child>
389 <action-widgets>
390 <action-widget response="-6">cancel</action-widget>
391 <action-widget response="-5">ok</action-widget>
392 <action-widget response="-11">help</action-widget>
393 </action-widgets>
394 <child internal-child="accessible">
395 <object class="AtkObject" id="QrCodeGenDialog-atkobject">
396 <property name="AtkObject::accessible-description" translatable="yes" context="qr code dialog title">Generate linear and matrix codes for any text or URL.</property>
397 </object>
398 </child>
399 </object>
400 </interface>