qrcodegen.ui 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated with glade 3.36.0 -->
  3. <interface domain="cui">
  4. <requires lib="gtk+" version="3.20"/>
  5. <object class="GtkAdjustment" id="border_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 Code Generator</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">gtk-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_stock">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">gtk-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_stock">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">gtk-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_stock">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_left">6</property>
  86. <property name="margin_right">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="label_xalign">0</property>
  99. <property name="shadow_type">none</property>
  100. <child>
  101. <object class="GtkAlignment">
  102. <property name="visible">True</property>
  103. <property name="can_focus">False</property>
  104. <property name="top_padding">6</property>
  105. <child>
  106. <!-- n-columns=1 n-rows=1 -->
  107. <object class="GtkGrid">
  108. <property name="visible">True</property>
  109. <property name="can_focus">False</property>
  110. <property name="row_spacing">6</property>
  111. <property name="column_spacing">12</property>
  112. <child>
  113. <object class="GtkEntry" id="edit_text">
  114. <property name="visible">True</property>
  115. <property name="can_focus">True</property>
  116. <property name="hexpand">True</property>
  117. <property name="activates_default">True</property>
  118. <property name="placeholder_text" translatable="yes" context="qrcodegen|edit_name">www.libreoffice.org</property>
  119. <property name="truncate-multiline">True</property>
  120. <child internal-child="accessible">
  121. <object class="AtkObject" id="edit_text-atkobject">
  122. <property name="AtkObject::accessible-description" translatable="yes" context="qr text">The text from which to generate the QR code.</property>
  123. </object>
  124. </child>
  125. </object>
  126. <packing>
  127. <property name="left_attach">1</property>
  128. <property name="top_attach">0</property>
  129. </packing>
  130. </child>
  131. <child>
  132. <object class="GtkLabel" id="label_text">
  133. <property name="visible">True</property>
  134. <property name="can_focus">False</property>
  135. <property name="halign">start</property>
  136. <property name="label" translatable="yes" context="qrcodegen|label_text" comments="Text to be stored in the QR">URL/Text :</property>
  137. <property name="use_underline">True</property>
  138. <property name="mnemonic_widget">edit_text</property>
  139. <property name="xalign">0</property>
  140. </object>
  141. <packing>
  142. <property name="left_attach">0</property>
  143. <property name="top_attach">0</property>
  144. </packing>
  145. </child>
  146. <child>
  147. <object class="GtkLabel" id="label_border">
  148. <property name="visible">True</property>
  149. <property name="can_focus">False</property>
  150. <property name="halign">start</property>
  151. <property name="label" translatable="yes" context="qrcodegen|label_border" comments="Set Border around QR">Border :</property>
  152. <property name="use_underline">True</property>
  153. <property name="mnemonic_widget">edit_border</property>
  154. <property name="xalign">0</property>
  155. </object>
  156. <packing>
  157. <property name="left_attach">0</property>
  158. <property name="top_attach">2</property>
  159. </packing>
  160. </child>
  161. <child>
  162. <!-- n-columns=1 n-rows=1 -->
  163. <object class="GtkGrid">
  164. <property name="visible">True</property>
  165. <property name="can_focus">False</property>
  166. <property name="row_spacing">2</property>
  167. <child>
  168. <object class="GtkLabel" id="label_ecc">
  169. <property name="visible">True</property>
  170. <property name="can_focus">False</property>
  171. <property name="halign">start</property>
  172. <property name="label" translatable="yes" context="qrcodegen|label_ecc" comments="Error Correction Level of QR code">Error Correction:</property>
  173. <property name="use_underline">True</property>
  174. <property name="xalign">0</property>
  175. <accessibility>
  176. <relation type="label-for" target="button_low"/>
  177. <relation type="label-for" target="button_medium"/>
  178. <relation type="label-for" target="button_quartile"/>
  179. <relation type="label-for" target="button_high"/>
  180. </accessibility>
  181. </object>
  182. <packing>
  183. <property name="left_attach">0</property>
  184. <property name="top_attach">0</property>
  185. </packing>
  186. </child>
  187. </object>
  188. <packing>
  189. <property name="left_attach">0</property>
  190. <property name="top_attach">1</property>
  191. </packing>
  192. </child>
  193. <child>
  194. <object class="GtkSpinButton" id="edit_border">
  195. <property name="visible">True</property>
  196. <property name="can_focus">True</property>
  197. <property name="activates_default">True</property>
  198. <property name="adjustment">border_value</property>
  199. <property name="snap_to_ticks">True</property>
  200. <property name="numeric">True</property>
  201. <property name="truncate-multiline">True</property>
  202. <child internal-child="accessible">
  203. <object class="AtkObject" id="edit_border-atkobject">
  204. <property name="AtkObject::accessible-description" translatable="yes" context="edit border">The width in dots of the border surrounding the QR code.</property>
  205. </object>
  206. </child>
  207. </object>
  208. <packing>
  209. <property name="left_attach">1</property>
  210. <property name="top_attach">2</property>
  211. </packing>
  212. </child>
  213. <child>
  214. <!-- n-columns=1 n-rows=1 -->
  215. <object class="GtkGrid">
  216. <property name="visible">True</property>
  217. <property name="can_focus">False</property>
  218. <property name="row_spacing">2</property>
  219. <child>
  220. <object class="GtkRadioButton" id="button_low">
  221. <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Low</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="xalign">0</property>
  227. <property name="active">True</property>
  228. <property name="draw_indicator">True</property>
  229. <accessibility>
  230. <relation type="labelled-by" target="label_ecc"/>
  231. </accessibility>
  232. <child internal-child="accessible">
  233. <object class="AtkObject" id="button_low-atkobject">
  234. <property name="AtkObject::accessible-description" translatable="yes" context="button_low">7% of codewords can be restored.</property>
  235. </object>
  236. </child>
  237. </object>
  238. <packing>
  239. <property name="left_attach">0</property>
  240. <property name="top_attach">0</property>
  241. </packing>
  242. </child>
  243. <child>
  244. <object class="GtkRadioButton" id="button_medium">
  245. <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Medium</property>
  246. <property name="visible">True</property>
  247. <property name="can_focus">True</property>
  248. <property name="receives_default">False</property>
  249. <property name="use_underline">True</property>
  250. <property name="xalign">0</property>
  251. <property name="active">True</property>
  252. <property name="draw_indicator">True</property>
  253. <property name="group">button_low</property>
  254. <accessibility>
  255. <relation type="labelled-by" target="label_ecc"/>
  256. </accessibility>
  257. <child internal-child="accessible">
  258. <object class="AtkObject" id="button_medium-atkobject">
  259. <property name="AtkObject::accessible-description" translatable="yes" context="button_medium">15% of codewords can be restored.</property>
  260. </object>
  261. </child>
  262. </object>
  263. <packing>
  264. <property name="left_attach">0</property>
  265. <property name="top_attach">1</property>
  266. </packing>
  267. </child>
  268. <child>
  269. <object class="GtkRadioButton" id="button_quartile">
  270. <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Quartile</property>
  271. <property name="visible">True</property>
  272. <property name="can_focus">True</property>
  273. <property name="receives_default">False</property>
  274. <property name="use_underline">True</property>
  275. <property name="xalign">0</property>
  276. <property name="active">True</property>
  277. <property name="draw_indicator">True</property>
  278. <property name="group">button_low</property>
  279. <accessibility>
  280. <relation type="labelled-by" target="label_ecc"/>
  281. </accessibility>
  282. <child internal-child="accessible">
  283. <object class="AtkObject" id="button_quartile-atkobject">
  284. <property name="AtkObject::accessible-description" translatable="yes" context="button_quartile">25% of codewords can be restored.</property>
  285. </object>
  286. </child>
  287. </object>
  288. <packing>
  289. <property name="left_attach">0</property>
  290. <property name="top_attach">2</property>
  291. </packing>
  292. </child>
  293. <child>
  294. <object class="GtkRadioButton" id="button_high">
  295. <property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">High</property>
  296. <property name="visible">True</property>
  297. <property name="can_focus">True</property>
  298. <property name="receives_default">False</property>
  299. <property name="use_underline">True</property>
  300. <property name="xalign">0</property>
  301. <property name="active">True</property>
  302. <property name="draw_indicator">True</property>
  303. <property name="group">button_low</property>
  304. <accessibility>
  305. <relation type="labelled-by" target="label_ecc"/>
  306. </accessibility>
  307. <child internal-child="accessible">
  308. <object class="AtkObject" id="button_high-atkobject">
  309. <property name="AtkObject::accessible-description" translatable="yes" context="button_high">30% of codewords can be restored.</property>
  310. </object>
  311. </child>
  312. </object>
  313. <packing>
  314. <property name="left_attach">0</property>
  315. <property name="top_attach">3</property>
  316. </packing>
  317. </child>
  318. </object>
  319. <packing>
  320. <property name="left_attach">1</property>
  321. <property name="top_attach">1</property>
  322. </packing>
  323. </child>
  324. </object>
  325. </child>
  326. </object>
  327. </child>
  328. <child type="label">
  329. <object class="GtkLabel">
  330. <property name="visible">True</property>
  331. <property name="can_focus">False</property>
  332. <property name="label" translatable="yes" context="qrcodegen|QR Code Properties">Options</property>
  333. <attributes>
  334. <attribute name="weight" value="bold"/>
  335. </attributes>
  336. </object>
  337. </child>
  338. </object>
  339. <packing>
  340. <property name="left_attach">0</property>
  341. <property name="top_attach">0</property>
  342. </packing>
  343. </child>
  344. </object>
  345. <packing>
  346. <property name="expand">False</property>
  347. <property name="fill">True</property>
  348. <property name="position">0</property>
  349. </packing>
  350. </child>
  351. </object>
  352. </child>
  353. <action-widgets>
  354. <action-widget response="-6">cancel</action-widget>
  355. <action-widget response="-5">ok</action-widget>
  356. <action-widget response="-11">help</action-widget>
  357. </action-widgets>
  358. <child type="titlebar">
  359. <placeholder/>
  360. </child>
  361. <child internal-child="accessible">
  362. <object class="AtkObject" id="QrCodeGenDialog-atkobject">
  363. <property name="AtkObject::accessible-description" translatable="yes" context="qr code dialog title">Generate QR Code for any text or URL.</property>
  364. </object>
  365. </child>
  366. </object>
  367. </interface>