settingsdialog.ui 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <ui version="4.0" >
  2. <class>SettingsDialog</class>
  3. <widget class="QDialog" name="SettingsDialog" >
  4. <property name="geometry" >
  5. <rect>
  6. <x>0</x>
  7. <y>0</y>
  8. <width>466</width>
  9. <height>332</height>
  10. </rect>
  11. </property>
  12. <property name="windowTitle" >
  13. <string>StarDict plugin settings</string>
  14. </property>
  15. <layout class="QGridLayout" >
  16. <item row="0" column="0" >
  17. <widget class="QGroupBox" name="groupBox" >
  18. <property name="title" >
  19. <string>Translations</string>
  20. </property>
  21. <layout class="QGridLayout" >
  22. <item row="0" column="0" >
  23. <widget class="QCheckBox" name="reformatListsBox" >
  24. <property name="toolTip" >
  25. <string>If enabled all lists in translation wil be formated using HTML &lt;li> tag (may be slow)</string>
  26. </property>
  27. <property name="text" >
  28. <string>Reformat lists</string>
  29. </property>
  30. </widget>
  31. </item>
  32. <item row="1" column="0" >
  33. <widget class="QCheckBox" name="expandAbbreviationsBox" >
  34. <property name="toolTip" >
  35. <string>Expand abbreviations if dictionary contains it (may be slow)</string>
  36. </property>
  37. <property name="text" >
  38. <string>Expand abbreviations</string>
  39. </property>
  40. </widget>
  41. </item>
  42. <item row="2" column="0" >
  43. <widget class="QLabel" name="reformatTranslationsWarningLabel" >
  44. <property name="visible" >
  45. <bool>false</bool>
  46. </property>
  47. <property name="text" >
  48. <string>&lt;b>&lt;font color="red">Warning!&lt;/font>&lt;/b> Reformatted translations may display incorrectly.</string>
  49. </property>
  50. </widget>
  51. </item>
  52. </layout>
  53. </widget>
  54. </item>
  55. <item row="1" column="0" >
  56. <widget class="QGroupBox" name="dictDirsBox" >
  57. <property name="title" >
  58. <string>Data directories</string>
  59. </property>
  60. <layout class="QGridLayout" >
  61. <property name="leftMargin" >
  62. <number>9</number>
  63. </property>
  64. <property name="topMargin" >
  65. <number>9</number>
  66. </property>
  67. <property name="rightMargin" >
  68. <number>9</number>
  69. </property>
  70. <property name="bottomMargin" >
  71. <number>9</number>
  72. </property>
  73. <property name="horizontalSpacing" >
  74. <number>6</number>
  75. </property>
  76. <property name="verticalSpacing" >
  77. <number>6</number>
  78. </property>
  79. <item row="0" column="0" >
  80. <widget class="QListWidget" name="dictDirsList" />
  81. </item>
  82. <item row="1" column="0" >
  83. <layout class="QHBoxLayout" >
  84. <property name="spacing" >
  85. <number>6</number>
  86. </property>
  87. <property name="leftMargin" >
  88. <number>0</number>
  89. </property>
  90. <property name="topMargin" >
  91. <number>0</number>
  92. </property>
  93. <property name="rightMargin" >
  94. <number>0</number>
  95. </property>
  96. <property name="bottomMargin" >
  97. <number>0</number>
  98. </property>
  99. <item>
  100. <widget class="QToolButton" name="addDictDirButton" >
  101. <property name="toolTip" >
  102. <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
  103. p, li { white-space: pre-wrap; }
  104. &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
  105. &lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Add directory&lt;/p>&lt;/body>&lt;/html></string>
  106. </property>
  107. <property name="text" >
  108. <string>Add</string>
  109. </property>
  110. <property name="icon" >
  111. <iconset resource="pixmaps/pixmaps.qrc" >:/icons/list-add.png</iconset>
  112. </property>
  113. </widget>
  114. </item>
  115. <item>
  116. <widget class="QToolButton" name="removeDictDirButton" >
  117. <property name="toolTip" >
  118. <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
  119. p, li { white-space: pre-wrap; }
  120. &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
  121. &lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Remove directory&lt;/p>&lt;/body>&lt;/html></string>
  122. </property>
  123. <property name="text" >
  124. <string>Remove</string>
  125. </property>
  126. <property name="icon" >
  127. <iconset resource="pixmaps/pixmaps.qrc" >:/icons/list-remove.png</iconset>
  128. </property>
  129. </widget>
  130. </item>
  131. <item>
  132. <widget class="QToolButton" name="moveUpDictDirButton" >
  133. <property name="toolTip" >
  134. <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
  135. p, li { white-space: pre-wrap; }
  136. &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
  137. &lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Move up&lt;/p>&lt;/body>&lt;/html></string>
  138. </property>
  139. <property name="text" >
  140. <string>Up</string>
  141. </property>
  142. <property name="icon" >
  143. <iconset resource="pixmaps/pixmaps.qrc" >:/icons/arrow-up.png</iconset>
  144. </property>
  145. </widget>
  146. </item>
  147. <item>
  148. <widget class="QToolButton" name="moveDownDictDirButton" >
  149. <property name="toolTip" >
  150. <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
  151. p, li { white-space: pre-wrap; }
  152. &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
  153. &lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Move down&lt;/p>&lt;/body>&lt;/html></string>
  154. </property>
  155. <property name="text" >
  156. <string>Down</string>
  157. </property>
  158. <property name="icon" >
  159. <iconset resource="pixmaps/pixmaps.qrc" >:/icons/arrow-down.png</iconset>
  160. </property>
  161. </widget>
  162. </item>
  163. <item>
  164. <spacer>
  165. <property name="orientation" >
  166. <enum>Qt::Horizontal</enum>
  167. </property>
  168. <property name="sizeHint" >
  169. <size>
  170. <width>342</width>
  171. <height>26</height>
  172. </size>
  173. </property>
  174. </spacer>
  175. </item>
  176. </layout>
  177. </item>
  178. </layout>
  179. </widget>
  180. </item>
  181. <item row="2" column="0" >
  182. <widget class="QDialogButtonBox" name="buttonBox" >
  183. <property name="orientation" >
  184. <enum>Qt::Horizontal</enum>
  185. </property>
  186. <property name="standardButtons" >
  187. <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
  188. </property>
  189. </widget>
  190. </item>
  191. </layout>
  192. </widget>
  193. <resources>
  194. <include location="pixmaps/pixmaps.qrc" />
  195. </resources>
  196. <connections>
  197. <connection>
  198. <sender>buttonBox</sender>
  199. <signal>accepted()</signal>
  200. <receiver>SettingsDialog</receiver>
  201. <slot>accept()</slot>
  202. <hints>
  203. <hint type="sourcelabel" >
  204. <x>227</x>
  205. <y>311</y>
  206. </hint>
  207. <hint type="destinationlabel" >
  208. <x>157</x>
  209. <y>274</y>
  210. </hint>
  211. </hints>
  212. </connection>
  213. <connection>
  214. <sender>buttonBox</sender>
  215. <signal>rejected()</signal>
  216. <receiver>SettingsDialog</receiver>
  217. <slot>reject()</slot>
  218. <hints>
  219. <hint type="sourcelabel" >
  220. <x>295</x>
  221. <y>317</y>
  222. </hint>
  223. <hint type="destinationlabel" >
  224. <x>286</x>
  225. <y>274</y>
  226. </hint>
  227. </hints>
  228. </connection>
  229. <connection>
  230. <sender>reformatListsBox</sender>
  231. <signal>toggled(bool)</signal>
  232. <receiver>reformatTranslationsWarningLabel</receiver>
  233. <slot>setVisible(bool)</slot>
  234. <hints>
  235. <hint type="sourcelabel" >
  236. <x>55</x>
  237. <y>43</y>
  238. </hint>
  239. <hint type="destinationlabel" >
  240. <x>48</x>
  241. <y>86</y>
  242. </hint>
  243. </hints>
  244. </connection>
  245. </connections>
  246. </ui>