mainwindow.ui 6.8 KB

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