Get the style color and number just once
[LibreOffice.git] / sd / uiconfig / sdraw / ui / vectorize.ui
blob623eaae7e0fbd9cab0fede5973b63329ab53a01f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Generated with glade 3.36.0 -->
3 <interface domain="sd">
4 <requires lib="gtk+" version="3.20"/>
5 <object class="GtkAdjustment" id="adjustment1">
6 <property name="lower">8</property>
7 <property name="upper">32</property>
8 <property name="value">8</property>
9 <property name="step_increment">1</property>
10 <property name="page_increment">10</property>
11 </object>
12 <object class="GtkAdjustment" id="adjustment2">
13 <property name="upper">32</property>
14 <property name="step_increment">1</property>
15 <property name="page_increment">10</property>
16 </object>
17 <object class="GtkAdjustment" id="adjustment3">
18 <property name="lower">8</property>
19 <property name="upper">128</property>
20 <property name="value">8</property>
21 <property name="step_increment">1</property>
22 <property name="page_increment">10</property>
23 </object>
24 <object class="GtkDialog" id="VectorizeDialog">
25 <property name="can_focus">False</property>
26 <property name="border_width">6</property>
27 <property name="title" translatable="yes" context="vectorize|VectorizeDialog">Convert to Polygon</property>
28 <property name="resizable">False</property>
29 <property name="modal">True</property>
30 <property name="window_position">mouse</property>
31 <property name="default_width">0</property>
32 <property name="default_height">0</property>
33 <property name="type_hint">dialog</property>
34 <child internal-child="vbox">
35 <object class="GtkBox" id="dialog-vbox1">
36 <property name="can_focus">False</property>
37 <property name="orientation">vertical</property>
38 <property name="spacing">12</property>
39 <child internal-child="action_area">
40 <object class="GtkButtonBox" id="dialog-action_area1">
41 <property name="can_focus">False</property>
42 <property name="layout_style">end</property>
43 <child>
44 <object class="GtkButton" id="preview">
45 <property name="label" translatable="yes" context="vectorize|preview">Preview</property>
46 <property name="visible">True</property>
47 <property name="can_focus">True</property>
48 <property name="receives_default">True</property>
49 <property name="use_underline">True</property>
50 <child internal-child="accessible">
51 <object class="AtkObject" id="preview-atkobject">
52 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|preview">Previews the converted image without applying the changes.</property>
53 </object>
54 </child>
55 </object>
56 <packing>
57 <property name="expand">False</property>
58 <property name="fill">True</property>
59 <property name="position">0</property>
60 </packing>
61 </child>
62 <child>
63 <object class="GtkButton" id="ok">
64 <property name="label" translatable="yes" context="stock">_OK</property>
65 <property name="visible">True</property>
66 <property name="can_focus">True</property>
67 <property name="can_default">True</property>
68 <property name="has_default">True</property>
69 <property name="receives_default">True</property>
70 <property name="use-underline">True</property>
71 </object>
72 <packing>
73 <property name="expand">False</property>
74 <property name="fill">True</property>
75 <property name="position">1</property>
76 </packing>
77 </child>
78 <child>
79 <object class="GtkButton" id="cancel">
80 <property name="label" translatable="yes" context="stock">_Cancel</property>
81 <property name="visible">True</property>
82 <property name="can_focus">True</property>
83 <property name="receives_default">True</property>
84 <property name="use-underline">True</property>
85 </object>
86 <packing>
87 <property name="expand">False</property>
88 <property name="fill">True</property>
89 <property name="position">2</property>
90 </packing>
91 </child>
92 <child>
93 <object class="GtkButton" id="help">
94 <property name="label" translatable="yes" context="stock">_Help</property>
95 <property name="visible">True</property>
96 <property name="can_focus">True</property>
97 <property name="receives_default">True</property>
98 <property name="use-underline">True</property>
99 </object>
100 <packing>
101 <property name="expand">False</property>
102 <property name="fill">True</property>
103 <property name="position">3</property>
104 <property name="secondary">True</property>
105 </packing>
106 </child>
107 </object>
108 <packing>
109 <property name="expand">False</property>
110 <property name="fill">True</property>
111 <property name="pack_type">end</property>
112 <property name="position">0</property>
113 </packing>
114 </child>
115 <child>
116 <!-- n-columns=1 n-rows=1 -->
117 <object class="GtkGrid" id="grid2">
118 <property name="visible">True</property>
119 <property name="can_focus">False</property>
120 <property name="row_spacing">6</property>
121 <property name="column_spacing">12</property>
122 <child>
123 <object class="GtkLabel" id="label2">
124 <property name="visible">True</property>
125 <property name="can_focus">False</property>
126 <property name="label" translatable="yes" context="vectorize|label2">Number of colors:</property>
127 <property name="use_underline">True</property>
128 <property name="mnemonic_widget">colors</property>
129 <property name="xalign">0</property>
130 </object>
131 <packing>
132 <property name="left_attach">0</property>
133 <property name="top_attach">0</property>
134 </packing>
135 </child>
136 <child>
137 <object class="GtkSpinButton" id="colors">
138 <property name="visible">True</property>
139 <property name="can_focus">True</property>
140 <property name="activates_default">True</property>
141 <property name="adjustment">adjustment1</property>
142 <property name="truncate-multiline">True</property>
143 <child internal-child="accessible">
144 <object class="AtkObject" id="colors-atkobject">
145 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|colors">Enter the number of colors to be displayed in the converted image. A polygon is generated for each occurrence of a color in the image.</property>
146 </object>
147 </child>
148 </object>
149 <packing>
150 <property name="left_attach">1</property>
151 <property name="top_attach">0</property>
152 </packing>
153 </child>
154 <child>
155 <object class="GtkLabel" id="label3">
156 <property name="visible">True</property>
157 <property name="can_focus">False</property>
158 <property name="label" translatable="yes" context="vectorize|label3">Point reduction:</property>
159 <property name="use_underline">True</property>
160 <property name="mnemonic_widget">points</property>
161 <property name="xalign">0</property>
162 </object>
163 <packing>
164 <property name="left_attach">0</property>
165 <property name="top_attach">1</property>
166 </packing>
167 </child>
168 <child>
169 <object class="GtkSpinButton" id="points">
170 <property name="visible">True</property>
171 <property name="can_focus">True</property>
172 <property name="activates_default">True</property>
173 <property name="adjustment">adjustment2</property>
174 <property name="truncate-multiline">True</property>
175 <child internal-child="accessible">
176 <object class="AtkObject" id="points-atkobject">
177 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|points">Removes color polygons that are smaller than the pixel value you enter.</property>
178 </object>
179 </child>
180 </object>
181 <packing>
182 <property name="left_attach">1</property>
183 <property name="top_attach">1</property>
184 </packing>
185 </child>
186 <child>
187 <object class="GtkLabel" id="tilesft">
188 <property name="visible">True</property>
189 <property name="can_focus">False</property>
190 <property name="margin-start">12</property>
191 <property name="label" translatable="yes" context="vectorize|tilesft">Tile size:</property>
192 <property name="use_underline">True</property>
193 <property name="mnemonic_widget">tiles</property>
194 <property name="xalign">0</property>
195 </object>
196 <packing>
197 <property name="left_attach">0</property>
198 <property name="top_attach">3</property>
199 </packing>
200 </child>
201 <child>
202 <object class="GtkSpinButton" id="tiles">
203 <property name="visible">True</property>
204 <property name="can_focus">True</property>
205 <property name="activates_default">True</property>
206 <property name="adjustment">adjustment3</property>
207 <property name="truncate-multiline">True</property>
208 <child internal-child="accessible">
209 <object class="AtkObject" id="tiles-atkobject">
210 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|tiles">Enter the size of the rectangle for the background fill.</property>
211 </object>
212 </child>
213 </object>
214 <packing>
215 <property name="left_attach">1</property>
216 <property name="top_attach">3</property>
217 </packing>
218 </child>
219 <child>
220 <object class="GtkCheckButton" id="fillholes">
221 <property name="label" translatable="yes" context="vectorize|fillholes">_Fill holes</property>
222 <property name="visible">True</property>
223 <property name="can_focus">True</property>
224 <property name="receives_default">False</property>
225 <property name="use_underline">True</property>
226 <property name="draw_indicator">True</property>
227 <child internal-child="accessible">
228 <object class="AtkObject" id="fillholes-atkobject">
229 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|fillholes">Fills the color gaps caused by applying a point reduction.</property>
230 </object>
231 </child>
232 </object>
233 <packing>
234 <property name="left_attach">0</property>
235 <property name="top_attach">2</property>
236 <property name="width">2</property>
237 </packing>
238 </child>
239 </object>
240 <packing>
241 <property name="expand">False</property>
242 <property name="fill">True</property>
243 <property name="position">1</property>
244 </packing>
245 </child>
246 <child>
247 <!-- n-columns=1 n-rows=1 -->
248 <object class="GtkGrid" id="grid1">
249 <property name="visible">True</property>
250 <property name="can_focus">False</property>
251 <property name="hexpand">True</property>
252 <property name="vexpand">True</property>
253 <property name="row_spacing">6</property>
254 <property name="column_spacing">12</property>
255 <child>
256 <object class="GtkLabel" id="label5">
257 <property name="visible">True</property>
258 <property name="can_focus">False</property>
259 <property name="label" translatable="yes" context="vectorize|label5">Source image:</property>
260 <property name="use_underline">True</property>
261 <property name="mnemonic_widget">source</property>
262 <property name="xalign">0</property>
263 </object>
264 <packing>
265 <property name="left_attach">0</property>
266 <property name="top_attach">0</property>
267 </packing>
268 </child>
269 <child>
270 <object class="GtkLabel" id="label6">
271 <property name="visible">True</property>
272 <property name="can_focus">False</property>
273 <property name="label" translatable="yes" context="vectorize|label6">Vectorized image:</property>
274 <property name="use_underline">True</property>
275 <property name="mnemonic_widget">vectorized</property>
276 <property name="xalign">0</property>
277 </object>
278 <packing>
279 <property name="left_attach">1</property>
280 <property name="top_attach">0</property>
281 </packing>
282 </child>
283 <child>
284 <object class="GtkScrolledWindow">
285 <property name="visible">True</property>
286 <property name="can_focus">False</property>
287 <property name="hscrollbar_policy">never</property>
288 <property name="vscrollbar_policy">never</property>
289 <property name="shadow_type">in</property>
290 <child>
291 <object class="GtkViewport">
292 <property name="visible">True</property>
293 <property name="can_focus">False</property>
294 <property name="hexpand">True</property>
295 <property name="vexpand">True</property>
296 <child>
297 <object class="GtkDrawingArea" id="source">
298 <property name="visible">True</property>
299 <property name="can_focus">False</property>
300 <property name="hexpand">True</property>
301 <property name="vexpand">True</property>
302 </object>
303 </child>
304 </object>
305 </child>
306 </object>
307 <packing>
308 <property name="left_attach">0</property>
309 <property name="top_attach">1</property>
310 </packing>
311 </child>
312 <child>
313 <object class="GtkScrolledWindow">
314 <property name="visible">True</property>
315 <property name="can_focus">False</property>
316 <property name="hscrollbar_policy">never</property>
317 <property name="vscrollbar_policy">never</property>
318 <property name="shadow_type">in</property>
319 <child>
320 <object class="GtkViewport">
321 <property name="visible">True</property>
322 <property name="can_focus">False</property>
323 <property name="hexpand">True</property>
324 <property name="vexpand">True</property>
325 <child>
326 <object class="GtkDrawingArea" id="vectorized">
327 <property name="visible">True</property>
328 <property name="can_focus">False</property>
329 <property name="hexpand">True</property>
330 <property name="vexpand">True</property>
331 </object>
332 </child>
333 </object>
334 </child>
335 </object>
336 <packing>
337 <property name="left_attach">1</property>
338 <property name="top_attach">1</property>
339 </packing>
340 </child>
341 </object>
342 <packing>
343 <property name="expand">False</property>
344 <property name="fill">True</property>
345 <property name="position">2</property>
346 </packing>
347 </child>
348 <child>
349 <object class="GtkProgressBar" id="progressbar">
350 <property name="visible">True</property>
351 <property name="can_focus">False</property>
352 <property name="hexpand">True</property>
353 </object>
354 <packing>
355 <property name="expand">False</property>
356 <property name="fill">True</property>
357 <property name="position">3</property>
358 </packing>
359 </child>
360 </object>
361 </child>
362 <action-widgets>
363 <action-widget response="-5">ok</action-widget>
364 <action-widget response="-6">cancel</action-widget>
365 <action-widget response="-11">help</action-widget>
366 </action-widgets>
367 <child type="titlebar">
368 <placeholder/>
369 </child>
370 <child internal-child="accessible">
371 <object class="AtkObject" id="VectorizeDialog-atkobject">
372 <property name="AtkObject::accessible-description" translatable="yes" context="vectorize|extended_tip|VectorizeDialog">Converts the selected object to a polygon (a closed object bounded by straight lines).</property>
373 </object>
374 </child>
375 </object>
376 </interface>