settingsdialog.ui 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>QStarDict::SettingsDialog</class>
  4. <widget class="QDialog" name="QStarDict::SettingsDialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>466</width>
  10. <height>498</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>QStarDict Settings</string>
  15. </property>
  16. <property name="toolTip">
  17. <string/>
  18. </property>
  19. <layout class="QGridLayout">
  20. <property name="margin">
  21. <number>9</number>
  22. </property>
  23. <property name="spacing">
  24. <number>6</number>
  25. </property>
  26. <item row="1" column="0">
  27. <widget class="QDialogButtonBox" name="buttonBox">
  28. <property name="orientation">
  29. <enum>Qt::Horizontal</enum>
  30. </property>
  31. <property name="standardButtons">
  32. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  33. </property>
  34. <property name="centerButtons">
  35. <bool>false</bool>
  36. </property>
  37. </widget>
  38. </item>
  39. <item row="0" column="0">
  40. <widget class="QTabWidget" name="tabWidget">
  41. <property name="currentIndex">
  42. <number>0</number>
  43. </property>
  44. <widget class="QWidget" name="tabGlobalSettings">
  45. <attribute name="title">
  46. <string>Global settings</string>
  47. </attribute>
  48. <layout class="QVBoxLayout">
  49. <item>
  50. <widget class="QCheckBox" name="systemTrayBox">
  51. <property name="text">
  52. <string>Use system tray</string>
  53. </property>
  54. </widget>
  55. </item>
  56. <item>
  57. <widget class="QCheckBox" name="autostartBox">
  58. <property name="text">
  59. <string>Start with system</string>
  60. </property>
  61. </widget>
  62. </item>
  63. <item>
  64. <widget class="QCheckBox" name="instantSearchBox">
  65. <property name="text">
  66. <string>Instant search</string>
  67. </property>
  68. </widget>
  69. </item>
  70. <item>
  71. <layout class="QHBoxLayout">
  72. <property name="spacing">
  73. <number>6</number>
  74. </property>
  75. <property name="margin">
  76. <number>0</number>
  77. </property>
  78. <item>
  79. <widget class="QLabel" name="label_7">
  80. <property name="text">
  81. <string>Pronounce words using this command:</string>
  82. </property>
  83. </widget>
  84. </item>
  85. <item>
  86. <widget class="QLineEdit" name="speechCmdEdit">
  87. <property name="toolTip">
  88. <string>Enter cmd for the speaching program.&lt;br&gt;If cmd contains &quot;%s&quot; it will be replaced to word, else word will be writen to stdin of speech process.</string>
  89. </property>
  90. </widget>
  91. </item>
  92. </layout>
  93. </item>
  94. <item>
  95. <spacer>
  96. <property name="orientation">
  97. <enum>Qt::Vertical</enum>
  98. </property>
  99. <property name="sizeHint" stdset="0">
  100. <size>
  101. <width>426</width>
  102. <height>318</height>
  103. </size>
  104. </property>
  105. </spacer>
  106. </item>
  107. </layout>
  108. </widget>
  109. <widget class="QWidget" name="tabDictionaries">
  110. <attribute name="title">
  111. <string>Dictionaries</string>
  112. </attribute>
  113. <layout class="QVBoxLayout">
  114. <item>
  115. <widget class="QGroupBox" name="groupBox_3">
  116. <property name="title">
  117. <string>Dictionaries</string>
  118. </property>
  119. <layout class="QVBoxLayout">
  120. <item>
  121. <widget class="QTableView" name="dictsTableView">
  122. <property name="editTriggers">
  123. <set>QAbstractItemView::NoEditTriggers</set>
  124. </property>
  125. <property name="selectionMode">
  126. <enum>QAbstractItemView::SingleSelection</enum>
  127. </property>
  128. <property name="selectionBehavior">
  129. <enum>QAbstractItemView::SelectRows</enum>
  130. </property>
  131. <property name="showGrid">
  132. <bool>false</bool>
  133. </property>
  134. </widget>
  135. </item>
  136. <item>
  137. <layout class="QHBoxLayout">
  138. <item>
  139. <widget class="QToolButton" name="dictsMoveUpButton">
  140. <property name="toolTip">
  141. <string>Move up</string>
  142. </property>
  143. <property name="text">
  144. <string>Up</string>
  145. </property>
  146. <property name="icon">
  147. <iconset resource="pixmaps/pixmaps.qrc">
  148. <normaloff>:/icons/arrow-up.png</normaloff>:/icons/arrow-up.png</iconset>
  149. </property>
  150. </widget>
  151. </item>
  152. <item>
  153. <widget class="QToolButton" name="dictsMoveDownButton">
  154. <property name="toolTip">
  155. <string>Move down</string>
  156. </property>
  157. <property name="text">
  158. <string>Down</string>
  159. </property>
  160. <property name="icon">
  161. <iconset resource="pixmaps/pixmaps.qrc">
  162. <normaloff>:/icons/arrow-down.png</normaloff>:/icons/arrow-down.png</iconset>
  163. </property>
  164. </widget>
  165. </item>
  166. <item>
  167. <widget class="QToolButton" name="dictsShowInfoButton">
  168. <property name="toolTip">
  169. <string>Show information about dictionary</string>
  170. </property>
  171. <property name="text">
  172. <string>Show info</string>
  173. </property>
  174. <property name="icon">
  175. <iconset resource="pixmaps/pixmaps.qrc">
  176. <normaloff>:/icons/dialog-information.png</normaloff>:/icons/dialog-information.png</iconset>
  177. </property>
  178. </widget>
  179. </item>
  180. <item>
  181. <spacer>
  182. <property name="orientation">
  183. <enum>Qt::Horizontal</enum>
  184. </property>
  185. <property name="sizeHint" stdset="0">
  186. <size>
  187. <width>40</width>
  188. <height>20</height>
  189. </size>
  190. </property>
  191. </spacer>
  192. </item>
  193. </layout>
  194. </item>
  195. </layout>
  196. </widget>
  197. </item>
  198. <item>
  199. <widget class="QGroupBox" name="groupBox_4">
  200. <property name="maximumSize">
  201. <size>
  202. <width>16777215</width>
  203. <height>196</height>
  204. </size>
  205. </property>
  206. <property name="title">
  207. <string>Plugins</string>
  208. </property>
  209. <property name="alignment">
  210. <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
  211. </property>
  212. <layout class="QVBoxLayout">
  213. <item>
  214. <widget class="QTableView" name="pluginsTableView">
  215. <property name="editTriggers">
  216. <set>QAbstractItemView::NoEditTriggers</set>
  217. </property>
  218. <property name="selectionMode">
  219. <enum>QAbstractItemView::SingleSelection</enum>
  220. </property>
  221. <property name="selectionBehavior">
  222. <enum>QAbstractItemView::SelectRows</enum>
  223. </property>
  224. <property name="showGrid">
  225. <bool>false</bool>
  226. </property>
  227. </widget>
  228. </item>
  229. <item>
  230. <layout class="QHBoxLayout">
  231. <item>
  232. <widget class="QToolButton" name="pluginsShowInfoButton">
  233. <property name="toolTip">
  234. <string>Show information about plugin</string>
  235. </property>
  236. <property name="text">
  237. <string>Info</string>
  238. </property>
  239. <property name="icon">
  240. <iconset resource="pixmaps/pixmaps.qrc">
  241. <normaloff>:/icons/dialog-information.png</normaloff>:/icons/dialog-information.png</iconset>
  242. </property>
  243. </widget>
  244. </item>
  245. <item>
  246. <widget class="QToolButton" name="pluginsConfigureButton">
  247. <property name="toolTip">
  248. <string>Configure plugin</string>
  249. </property>
  250. <property name="text">
  251. <string>Configure</string>
  252. </property>
  253. <property name="icon">
  254. <iconset resource="pixmaps/pixmaps.qrc">
  255. <normaloff>:/icons/configure.png</normaloff>:/icons/configure.png</iconset>
  256. </property>
  257. </widget>
  258. </item>
  259. <item>
  260. <spacer>
  261. <property name="orientation">
  262. <enum>Qt::Horizontal</enum>
  263. </property>
  264. <property name="sizeHint" stdset="0">
  265. <size>
  266. <width>40</width>
  267. <height>20</height>
  268. </size>
  269. </property>
  270. </spacer>
  271. </item>
  272. </layout>
  273. </item>
  274. </layout>
  275. </widget>
  276. </item>
  277. </layout>
  278. </widget>
  279. <widget class="QWidget" name="tabPopupWindow">
  280. <attribute name="title">
  281. <string>Popup window</string>
  282. </attribute>
  283. <layout class="QGridLayout">
  284. <property name="margin">
  285. <number>9</number>
  286. </property>
  287. <property name="spacing">
  288. <number>6</number>
  289. </property>
  290. <item row="0" column="0">
  291. <widget class="QGroupBox" name="groupBox">
  292. <property name="title">
  293. <string>Behavior</string>
  294. </property>
  295. <layout class="QGridLayout">
  296. <property name="margin">
  297. <number>9</number>
  298. </property>
  299. <property name="spacing">
  300. <number>6</number>
  301. </property>
  302. <item row="4" column="0">
  303. <layout class="QVBoxLayout">
  304. <property name="spacing">
  305. <number>6</number>
  306. </property>
  307. <property name="margin">
  308. <number>0</number>
  309. </property>
  310. <item>
  311. <widget class="QCheckBox" name="pronounceWordBox">
  312. <property name="text">
  313. <string>Pronounce the word</string>
  314. </property>
  315. </widget>
  316. </item>
  317. </layout>
  318. </item>
  319. <item row="3" column="0">
  320. <layout class="QHBoxLayout">
  321. <property name="spacing">
  322. <number>6</number>
  323. </property>
  324. <property name="margin">
  325. <number>0</number>
  326. </property>
  327. <item>
  328. <widget class="QLabel" name="label_4">
  329. <property name="text">
  330. <string>Timeout before hide after mouse over</string>
  331. </property>
  332. </widget>
  333. </item>
  334. <item>
  335. <widget class="QDoubleSpinBox" name="timeoutBeforeHideSpin">
  336. <property name="specialValueText">
  337. <string>Don't hide</string>
  338. </property>
  339. <property name="suffix">
  340. <string> sec</string>
  341. </property>
  342. <property name="decimals">
  343. <number>1</number>
  344. </property>
  345. <property name="minimum">
  346. <double>0.000000000000000</double>
  347. </property>
  348. <property name="maximum">
  349. <double>10.000000000000000</double>
  350. </property>
  351. <property name="singleStep">
  352. <double>0.100000000000000</double>
  353. </property>
  354. <property name="value">
  355. <double>0.500000000000000</double>
  356. </property>
  357. </widget>
  358. </item>
  359. </layout>
  360. </item>
  361. <item row="2" column="0">
  362. <layout class="QHBoxLayout">
  363. <property name="spacing">
  364. <number>6</number>
  365. </property>
  366. <property name="margin">
  367. <number>0</number>
  368. </property>
  369. <item>
  370. <widget class="QCheckBox" name="useScanModifierBox">
  371. <property name="enabled">
  372. <bool>true</bool>
  373. </property>
  374. <property name="text">
  375. <string>Show only if modifier pressed</string>
  376. </property>
  377. </widget>
  378. </item>
  379. <item>
  380. <widget class="QComboBox" name="modifierKeyBox">
  381. <property name="enabled">
  382. <bool>false</bool>
  383. </property>
  384. <item>
  385. <property name="text">
  386. <string>Alt</string>
  387. </property>
  388. </item>
  389. <item>
  390. <property name="text">
  391. <string>Control</string>
  392. </property>
  393. </item>
  394. <item>
  395. <property name="text">
  396. <string>Shift</string>
  397. </property>
  398. </item>
  399. <item>
  400. <property name="text">
  401. <string>Win</string>
  402. </property>
  403. </item>
  404. </widget>
  405. </item>
  406. </layout>
  407. </item>
  408. <item row="0" column="0">
  409. <widget class="QCheckBox" name="useScanBox">
  410. <property name="text">
  411. <string>Scan selection</string>
  412. </property>
  413. <property name="checked">
  414. <bool>true</bool>
  415. </property>
  416. </widget>
  417. </item>
  418. <item row="1" column="0">
  419. <widget class="QCheckBox" name="showIfNotFoundBox">
  420. <property name="text">
  421. <string>Show if word not found</string>
  422. </property>
  423. </widget>
  424. </item>
  425. </layout>
  426. </widget>
  427. </item>
  428. <item row="1" column="0">
  429. <widget class="QGroupBox" name="groupBox_2">
  430. <property name="title">
  431. <string>Appearance</string>
  432. </property>
  433. <layout class="QGridLayout">
  434. <property name="margin">
  435. <number>9</number>
  436. </property>
  437. <property name="spacing">
  438. <number>6</number>
  439. </property>
  440. <item row="2" column="0">
  441. <layout class="QHBoxLayout">
  442. <property name="spacing">
  443. <number>6</number>
  444. </property>
  445. <property name="margin">
  446. <number>0</number>
  447. </property>
  448. <item>
  449. <widget class="QLabel" name="label_3">
  450. <property name="text">
  451. <string>Opacity</string>
  452. </property>
  453. </widget>
  454. </item>
  455. <item>
  456. <widget class="QSpinBox" name="popupOpacitySpin">
  457. <property name="suffix">
  458. <string>%</string>
  459. </property>
  460. <property name="prefix">
  461. <string/>
  462. </property>
  463. <property name="minimum">
  464. <number>1</number>
  465. </property>
  466. <property name="maximum">
  467. <number>100</number>
  468. </property>
  469. <property name="value">
  470. <number>100</number>
  471. </property>
  472. </widget>
  473. </item>
  474. </layout>
  475. </item>
  476. <item row="0" column="0">
  477. <layout class="QHBoxLayout">
  478. <property name="spacing">
  479. <number>6</number>
  480. </property>
  481. <property name="margin">
  482. <number>0</number>
  483. </property>
  484. <item>
  485. <widget class="QLabel" name="label_5">
  486. <property name="text">
  487. <string>Default width</string>
  488. </property>
  489. </widget>
  490. </item>
  491. <item>
  492. <widget class="QSpinBox" name="popupDefaultWidthSpin">
  493. <property name="minimum">
  494. <number>96</number>
  495. </property>
  496. <property name="maximum">
  497. <number>9999</number>
  498. </property>
  499. <property name="value">
  500. <number>320</number>
  501. </property>
  502. </widget>
  503. </item>
  504. </layout>
  505. </item>
  506. <item row="1" column="0">
  507. <layout class="QHBoxLayout">
  508. <property name="spacing">
  509. <number>6</number>
  510. </property>
  511. <property name="margin">
  512. <number>0</number>
  513. </property>
  514. <item>
  515. <widget class="QLabel" name="label_6">
  516. <property name="text">
  517. <string>Default height</string>
  518. </property>
  519. </widget>
  520. </item>
  521. <item>
  522. <widget class="QSpinBox" name="popupDefaultHeightSpin">
  523. <property name="minimum">
  524. <number>96</number>
  525. </property>
  526. <property name="maximum">
  527. <number>9999</number>
  528. </property>
  529. <property name="value">
  530. <number>240</number>
  531. </property>
  532. </widget>
  533. </item>
  534. </layout>
  535. </item>
  536. </layout>
  537. </widget>
  538. </item>
  539. <item row="2" column="0">
  540. <spacer>
  541. <property name="orientation">
  542. <enum>Qt::Vertical</enum>
  543. </property>
  544. <property name="sizeHint" stdset="0">
  545. <size>
  546. <width>20</width>
  547. <height>101</height>
  548. </size>
  549. </property>
  550. </spacer>
  551. </item>
  552. </layout>
  553. </widget>
  554. <widget class="QWidget" name="tab">
  555. <attribute name="title">
  556. <string>Appearance</string>
  557. </attribute>
  558. <layout class="QGridLayout">
  559. <item row="0" column="0">
  560. <widget class="QStarDict::CSSEdit" name="appearanceCSSEdit" native="true"/>
  561. </item>
  562. </layout>
  563. </widget>
  564. </widget>
  565. </item>
  566. </layout>
  567. </widget>
  568. <customwidgets>
  569. <customwidget>
  570. <class>QStarDict::CSSEdit</class>
  571. <extends>QWidget</extends>
  572. <header>cssedit.h</header>
  573. <container>1</container>
  574. </customwidget>
  575. </customwidgets>
  576. <tabstops>
  577. <tabstop>instantSearchBox</tabstop>
  578. <tabstop>speechCmdEdit</tabstop>
  579. <tabstop>buttonBox</tabstop>
  580. <tabstop>tabWidget</tabstop>
  581. <tabstop>dictsTableView</tabstop>
  582. <tabstop>dictsMoveUpButton</tabstop>
  583. <tabstop>dictsMoveDownButton</tabstop>
  584. <tabstop>dictsShowInfoButton</tabstop>
  585. <tabstop>pluginsTableView</tabstop>
  586. <tabstop>pluginsShowInfoButton</tabstop>
  587. <tabstop>pluginsConfigureButton</tabstop>
  588. <tabstop>useScanBox</tabstop>
  589. <tabstop>showIfNotFoundBox</tabstop>
  590. <tabstop>useScanModifierBox</tabstop>
  591. <tabstop>modifierKeyBox</tabstop>
  592. <tabstop>timeoutBeforeHideSpin</tabstop>
  593. <tabstop>pronounceWordBox</tabstop>
  594. <tabstop>popupDefaultWidthSpin</tabstop>
  595. <tabstop>popupDefaultHeightSpin</tabstop>
  596. <tabstop>popupOpacitySpin</tabstop>
  597. </tabstops>
  598. <resources>
  599. <include location="pixmaps/pixmaps.qrc"/>
  600. </resources>
  601. <connections>
  602. <connection>
  603. <sender>buttonBox</sender>
  604. <signal>accepted()</signal>
  605. <receiver>QStarDict::SettingsDialog</receiver>
  606. <slot>accept()</slot>
  607. <hints>
  608. <hint type="sourcelabel">
  609. <x>330</x>
  610. <y>587</y>
  611. </hint>
  612. <hint type="destinationlabel">
  613. <x>410</x>
  614. <y>299</y>
  615. </hint>
  616. </hints>
  617. </connection>
  618. <connection>
  619. <sender>buttonBox</sender>
  620. <signal>rejected()</signal>
  621. <receiver>QStarDict::SettingsDialog</receiver>
  622. <slot>reject()</slot>
  623. <hints>
  624. <hint type="sourcelabel">
  625. <x>406</x>
  626. <y>587</y>
  627. </hint>
  628. <hint type="destinationlabel">
  629. <x>410</x>
  630. <y>299</y>
  631. </hint>
  632. </hints>
  633. </connection>
  634. <connection>
  635. <sender>useScanModifierBox</sender>
  636. <signal>toggled(bool)</signal>
  637. <receiver>modifierKeyBox</receiver>
  638. <slot>setEnabled(bool)</slot>
  639. <hints>
  640. <hint type="sourcelabel">
  641. <x>165</x>
  642. <y>140</y>
  643. </hint>
  644. <hint type="destinationlabel">
  645. <x>273</x>
  646. <y>137</y>
  647. </hint>
  648. </hints>
  649. </connection>
  650. </connections>
  651. </ui>