selectstyle.ui 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <ui version="4.0" >
  2. <class>SelectStyle</class>
  3. <widget class="QDialog" name="SelectStyle" >
  4. <property name="geometry" >
  5. <rect>
  6. <x>0</x>
  7. <y>0</y>
  8. <width>196</width>
  9. <height>154</height>
  10. </rect>
  11. </property>
  12. <property name="windowTitle" >
  13. <string>Select Style</string>
  14. </property>
  15. <layout class="QVBoxLayout" >
  16. <item>
  17. <widget class="QCheckBox" name="customStyle" >
  18. <property name="text" >
  19. <string>Custom &amp;Style</string>
  20. </property>
  21. <property name="shortcut" >
  22. <string>Alt+S</string>
  23. </property>
  24. </widget>
  25. </item>
  26. <item>
  27. <layout class="QHBoxLayout" >
  28. <property name="leftMargin" >
  29. <number>0</number>
  30. </property>
  31. <property name="topMargin" >
  32. <number>0</number>
  33. </property>
  34. <property name="rightMargin" >
  35. <number>0</number>
  36. </property>
  37. <property name="bottomMargin" >
  38. <number>0</number>
  39. </property>
  40. <item>
  41. <spacer>
  42. <property name="orientation" >
  43. <enum>Qt::Horizontal</enum>
  44. </property>
  45. <property name="sizeType" >
  46. <enum>QSizePolicy::Expanding</enum>
  47. </property>
  48. <property name="sizeHint" >
  49. <size>
  50. <width>33</width>
  51. <height>20</height>
  52. </size>
  53. </property>
  54. </spacer>
  55. </item>
  56. <item>
  57. <layout class="QGridLayout" >
  58. <property name="leftMargin" >
  59. <number>0</number>
  60. </property>
  61. <property name="topMargin" >
  62. <number>0</number>
  63. </property>
  64. <property name="rightMargin" >
  65. <number>0</number>
  66. </property>
  67. <property name="bottomMargin" >
  68. <number>0</number>
  69. </property>
  70. <item row="0" column="1" >
  71. <widget class="QCheckBox" name="underlineChk" >
  72. <property name="enabled" >
  73. <bool>false</bool>
  74. </property>
  75. <property name="text" >
  76. <string>&amp;Underline</string>
  77. </property>
  78. <property name="shortcut" >
  79. <string>Alt+U</string>
  80. </property>
  81. </widget>
  82. </item>
  83. <item row="0" column="0" >
  84. <widget class="QCheckBox" name="boldChk" >
  85. <property name="enabled" >
  86. <bool>false</bool>
  87. </property>
  88. <property name="text" >
  89. <string>&amp;Bold</string>
  90. </property>
  91. <property name="shortcut" >
  92. <string>Alt+B</string>
  93. </property>
  94. </widget>
  95. </item>
  96. <item row="1" column="0" >
  97. <widget class="QCheckBox" name="italicChk" >
  98. <property name="enabled" >
  99. <bool>false</bool>
  100. </property>
  101. <property name="text" >
  102. <string>&amp;Italic</string>
  103. </property>
  104. <property name="shortcut" >
  105. <string>Alt+I</string>
  106. </property>
  107. </widget>
  108. </item>
  109. <item row="1" column="1" >
  110. <widget class="QCheckBox" name="strikeoutChk" >
  111. <property name="enabled" >
  112. <bool>false</bool>
  113. </property>
  114. <property name="text" >
  115. <string>S&amp;trike Out</string>
  116. </property>
  117. <property name="shortcut" >
  118. <string>Alt+T</string>
  119. </property>
  120. </widget>
  121. </item>
  122. </layout>
  123. </item>
  124. </layout>
  125. </item>
  126. <item>
  127. <spacer>
  128. <property name="orientation" >
  129. <enum>Qt::Vertical</enum>
  130. </property>
  131. <property name="sizeType" >
  132. <enum>QSizePolicy::Expanding</enum>
  133. </property>
  134. <property name="sizeHint" >
  135. <size>
  136. <width>20</width>
  137. <height>3</height>
  138. </size>
  139. </property>
  140. </spacer>
  141. </item>
  142. <item>
  143. <layout class="QHBoxLayout" >
  144. <property name="leftMargin" >
  145. <number>0</number>
  146. </property>
  147. <property name="topMargin" >
  148. <number>0</number>
  149. </property>
  150. <property name="rightMargin" >
  151. <number>0</number>
  152. </property>
  153. <property name="bottomMargin" >
  154. <number>0</number>
  155. </property>
  156. <item>
  157. <widget class="KPushButton" name="okButton" >
  158. <property name="text" >
  159. <string>&amp;OK</string>
  160. </property>
  161. <property name="shortcut" >
  162. <string>Alt+O</string>
  163. </property>
  164. </widget>
  165. </item>
  166. <item>
  167. <widget class="KPushButton" name="cancelButton" >
  168. <property name="text" >
  169. <string>&amp;Cancel</string>
  170. </property>
  171. <property name="shortcut" >
  172. <string>Alt+C</string>
  173. </property>
  174. </widget>
  175. </item>
  176. </layout>
  177. </item>
  178. </layout>
  179. </widget>
  180. <layoutdefault spacing="6" margin="11" />
  181. <customwidgets>
  182. <customwidget>
  183. <class>KPushButton</class>
  184. <extends>QPushButton</extends>
  185. <header>kpushbutton.h</header>
  186. </customwidget>
  187. </customwidgets>
  188. <tabstops>
  189. <tabstop>customStyle</tabstop>
  190. <tabstop>boldChk</tabstop>
  191. <tabstop>underlineChk</tabstop>
  192. <tabstop>italicChk</tabstop>
  193. <tabstop>strikeoutChk</tabstop>
  194. <tabstop>okButton</tabstop>
  195. <tabstop>cancelButton</tabstop>
  196. </tabstops>
  197. <includes>
  198. <include location="local" >kpushbutton.h</include>
  199. <include location="local" >kpushbutton.h</include>
  200. </includes>
  201. <resources/>
  202. <connections>
  203. <connection>
  204. <sender>okButton</sender>
  205. <signal>clicked()</signal>
  206. <receiver>SelectStyle</receiver>
  207. <slot>accept()</slot>
  208. <hints>
  209. <hint type="sourcelabel" >
  210. <x>20</x>
  211. <y>20</y>
  212. </hint>
  213. <hint type="destinationlabel" >
  214. <x>20</x>
  215. <y>20</y>
  216. </hint>
  217. </hints>
  218. </connection>
  219. <connection>
  220. <sender>cancelButton</sender>
  221. <signal>clicked()</signal>
  222. <receiver>SelectStyle</receiver>
  223. <slot>reject()</slot>
  224. <hints>
  225. <hint type="sourcelabel" >
  226. <x>20</x>
  227. <y>20</y>
  228. </hint>
  229. <hint type="destinationlabel" >
  230. <x>20</x>
  231. <y>20</y>
  232. </hint>
  233. </hints>
  234. </connection>
  235. <connection>
  236. <sender>customStyle</sender>
  237. <signal>toggled(bool)</signal>
  238. <receiver>SelectStyle</receiver>
  239. <slot>customStyle_toggled(bool)</slot>
  240. <hints>
  241. <hint type="sourcelabel" >
  242. <x>20</x>
  243. <y>20</y>
  244. </hint>
  245. <hint type="destinationlabel" >
  246. <x>20</x>
  247. <y>20</y>
  248. </hint>
  249. </hints>
  250. </connection>
  251. </connections>
  252. </ui>