mainwindow.ui 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>QStarDict::MainWindow</class>
  4. <widget class="QMainWindow" name="QStarDict::MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>742</width>
  10. <height>511</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>QStarDict</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset>
  18. <normaloff>:pics/qstardict.png</normaloff>:pics/qstardict.png</iconset>
  19. </property>
  20. <widget class="QWidget" name="centralwidget">
  21. <layout class="QGridLayout">
  22. <property name="leftMargin">
  23. <number>9</number>
  24. </property>
  25. <property name="topMargin">
  26. <number>9</number>
  27. </property>
  28. <property name="rightMargin">
  29. <number>9</number>
  30. </property>
  31. <property name="bottomMargin">
  32. <number>9</number>
  33. </property>
  34. <property name="spacing">
  35. <number>6</number>
  36. </property>
  37. <item row="0" column="0">
  38. <layout class="QHBoxLayout">
  39. <property name="spacing">
  40. <number>6</number>
  41. </property>
  42. <property name="leftMargin">
  43. <number>0</number>
  44. </property>
  45. <property name="topMargin">
  46. <number>0</number>
  47. </property>
  48. <property name="rightMargin">
  49. <number>0</number>
  50. </property>
  51. <property name="bottomMargin">
  52. <number>0</number>
  53. </property>
  54. <item>
  55. <widget class="QToolButton" name="searchClearButton">
  56. <property name="toolTip">
  57. <string>Clear the search box</string>
  58. </property>
  59. <property name="text">
  60. <string>Clear</string>
  61. </property>
  62. <property name="icon">
  63. <iconset>
  64. <normaloff>:pics/clear-right.png</normaloff>:pics/clear-right.png</iconset>
  65. </property>
  66. <property name="toolButtonStyle">
  67. <enum>Qt::ToolButtonIconOnly</enum>
  68. </property>
  69. </widget>
  70. </item>
  71. <item>
  72. <widget class="QLineEdit" name="searchBox"/>
  73. </item>
  74. <item>
  75. <widget class="QToolButton" name="queryButton">
  76. <property name="toolTip">
  77. <string>Fuzzy query</string>
  78. </property>
  79. <property name="text">
  80. <string>Search</string>
  81. </property>
  82. <property name="icon">
  83. <iconset>
  84. <normaloff>:pics/search-filter.png</normaloff>:pics/search-filter.png</iconset>
  85. </property>
  86. <property name="toolButtonStyle">
  87. <enum>Qt::ToolButtonTextBesideIcon</enum>
  88. </property>
  89. </widget>
  90. </item>
  91. </layout>
  92. </item>
  93. <item row="1" column="0">
  94. <widget class="DictWidget" name="translationView" native="true"/>
  95. </item>
  96. </layout>
  97. </widget>
  98. <widget class="QDockWidget" name="wordsListDock">
  99. <property name="features">
  100. <set>QDockWidget::AllDockWidgetFeatures</set>
  101. </property>
  102. <property name="allowedAreas">
  103. <set>Qt::NoDockWidgetArea</set>
  104. </property>
  105. <property name="windowTitle">
  106. <string>Words list</string>
  107. </property>
  108. <attribute name="dockWidgetArea">
  109. <number>1</number>
  110. </attribute>
  111. <widget class="QWidget" name="dockWidgetContents">
  112. <layout class="QGridLayout">
  113. <property name="leftMargin">
  114. <number>9</number>
  115. </property>
  116. <property name="topMargin">
  117. <number>9</number>
  118. </property>
  119. <property name="rightMargin">
  120. <number>9</number>
  121. </property>
  122. <property name="bottomMargin">
  123. <number>9</number>
  124. </property>
  125. <property name="spacing">
  126. <number>6</number>
  127. </property>
  128. <item row="0" column="0">
  129. <widget class="QListWidget" name="wordsList"/>
  130. </item>
  131. </layout>
  132. </widget>
  133. </widget>
  134. <widget class="QMenuBar" name="menubar">
  135. <property name="geometry">
  136. <rect>
  137. <x>0</x>
  138. <y>0</y>
  139. <width>742</width>
  140. <height>30</height>
  141. </rect>
  142. </property>
  143. <widget class="QMenu" name="menu_File">
  144. <property name="title">
  145. <string>&amp;File</string>
  146. </property>
  147. <addaction name="actionQuit"/>
  148. </widget>
  149. <widget class="QMenu" name="menuHelp">
  150. <property name="title">
  151. <string>&amp;Help</string>
  152. </property>
  153. <addaction name="actionHelp"/>
  154. <addaction name="actionAbout"/>
  155. <addaction name="actionAboutQt"/>
  156. </widget>
  157. <widget class="QMenu" name="menu_Options">
  158. <property name="title">
  159. <string>&amp;Settings</string>
  160. </property>
  161. <addaction name="actionScan"/>
  162. <addaction name="actionSettings"/>
  163. </widget>
  164. <addaction name="menu_File"/>
  165. <addaction name="menu_Options"/>
  166. <addaction name="menuHelp"/>
  167. </widget>
  168. <action name="actionQuit">
  169. <property name="icon">
  170. <iconset>
  171. <normaloff>:pics/application-exit.png</normaloff>:pics/application-exit.png</iconset>
  172. </property>
  173. <property name="text">
  174. <string>&amp;Quit</string>
  175. </property>
  176. <property name="shortcut">
  177. <string>Ctrl+Q</string>
  178. </property>
  179. </action>
  180. <action name="actionAbout">
  181. <property name="text">
  182. <string>&amp;About</string>
  183. </property>
  184. </action>
  185. <action name="actionAboutQt">
  186. <property name="text">
  187. <string>About &amp;Qt</string>
  188. </property>
  189. </action>
  190. <action name="actionSettings">
  191. <property name="icon">
  192. <iconset>
  193. <normaloff>:pics/configure.png</normaloff>:pics/configure.png</iconset>
  194. </property>
  195. <property name="text">
  196. <string>&amp;Configure QStarDict</string>
  197. </property>
  198. </action>
  199. <action name="actionScan">
  200. <property name="checkable">
  201. <bool>true</bool>
  202. </property>
  203. <property name="icon">
  204. <iconset resource="pixmaps/pixmaps.qrc">
  205. <normaloff>:/pics/edit-select.png</normaloff>:/pics/edit-select.png</iconset>
  206. </property>
  207. <property name="text">
  208. <string>&amp;Scan selection</string>
  209. </property>
  210. </action>
  211. <action name="actionHelp">
  212. <property name="icon">
  213. <iconset>
  214. <normaloff>:pics/help-contents.png</normaloff>:pics/help-contents.png</iconset>
  215. </property>
  216. <property name="text">
  217. <string>QStarDict &amp;documentation</string>
  218. </property>
  219. <property name="shortcut">
  220. <string>F1</string>
  221. </property>
  222. </action>
  223. </widget>
  224. <customwidgets>
  225. <customwidget>
  226. <class>DictWidget</class>
  227. <extends>QWidget</extends>
  228. <header>dictwidget.h</header>
  229. </customwidget>
  230. </customwidgets>
  231. <tabstops>
  232. <tabstop>searchBox</tabstop>
  233. <tabstop>queryButton</tabstop>
  234. <tabstop>wordsList</tabstop>
  235. <tabstop>searchClearButton</tabstop>
  236. </tabstops>
  237. <resources>
  238. <include location="pixmaps/pixmaps.qrc"/>
  239. </resources>
  240. <connections>
  241. <connection>
  242. <sender>searchClearButton</sender>
  243. <signal>clicked()</signal>
  244. <receiver>searchBox</receiver>
  245. <slot>clear()</slot>
  246. <hints>
  247. <hint type="sourcelabel">
  248. <x>315</x>
  249. <y>59</y>
  250. </hint>
  251. <hint type="destinationlabel">
  252. <x>647</x>
  253. <y>61</y>
  254. </hint>
  255. </hints>
  256. </connection>
  257. <connection>
  258. <sender>searchClearButton</sender>
  259. <signal>clicked()</signal>
  260. <receiver>searchBox</receiver>
  261. <slot>setFocus()</slot>
  262. <hints>
  263. <hint type="sourcelabel">
  264. <x>315</x>
  265. <y>59</y>
  266. </hint>
  267. <hint type="destinationlabel">
  268. <x>647</x>
  269. <y>61</y>
  270. </hint>
  271. </hints>
  272. </connection>
  273. <connection>
  274. <sender>searchBox</sender>
  275. <signal>returnPressed()</signal>
  276. <receiver>queryButton</receiver>
  277. <slot>click()</slot>
  278. <hints>
  279. <hint type="sourcelabel">
  280. <x>438</x>
  281. <y>50</y>
  282. </hint>
  283. <hint type="destinationlabel">
  284. <x>661</x>
  285. <y>51</y>
  286. </hint>
  287. </hints>
  288. </connection>
  289. </connections>
  290. </ui>