machine.ui 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <ui version="4.0" >
  2. <class>Dialog</class>
  3. <widget class="QDialog" name="Dialog" >
  4. <property name="enabled" >
  5. <bool>true</bool>
  6. </property>
  7. <property name="geometry" >
  8. <rect>
  9. <x>0</x>
  10. <y>0</y>
  11. <width>703</width>
  12. <height>477</height>
  13. </rect>
  14. </property>
  15. <property name="windowTitle" >
  16. <string>Choose MSX Machine</string>
  17. </property>
  18. <layout class="QVBoxLayout" name="verticalLayout" >
  19. <item>
  20. <widget class="QSplitter" name="splitter" >
  21. <property name="sizePolicy" >
  22. <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
  23. <horstretch>0</horstretch>
  24. <verstretch>0</verstretch>
  25. </sizepolicy>
  26. </property>
  27. <property name="orientation" >
  28. <enum>Qt::Vertical</enum>
  29. </property>
  30. <widget class="QTableView" name="machineTable" >
  31. <property name="verticalScrollBarPolicy" >
  32. <enum>Qt::ScrollBarAsNeeded</enum>
  33. </property>
  34. <property name="alternatingRowColors" >
  35. <bool>true</bool>
  36. </property>
  37. <property name="selectionMode" >
  38. <enum>QAbstractItemView::SingleSelection</enum>
  39. </property>
  40. <property name="selectionBehavior" >
  41. <enum>QAbstractItemView::SelectRows</enum>
  42. </property>
  43. </widget>
  44. <widget class="QWidget" native="1" name="previewWidget" >
  45. <property name="sizePolicy" >
  46. <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
  47. <horstretch>0</horstretch>
  48. <verstretch>0</verstretch>
  49. </sizepolicy>
  50. </property>
  51. <layout class="QHBoxLayout" name="horizontalLayout" >
  52. <property name="spacing" >
  53. <number>0</number>
  54. </property>
  55. <property name="margin" >
  56. <number>0</number>
  57. </property>
  58. <item>
  59. <spacer name="horizontalSpacer" >
  60. <property name="orientation" >
  61. <enum>Qt::Horizontal</enum>
  62. </property>
  63. <property name="sizeHint" stdset="0" >
  64. <size>
  65. <width>215</width>
  66. <height>20</height>
  67. </size>
  68. </property>
  69. </spacer>
  70. </item>
  71. <item>
  72. <widget class="Slideshow" native="1" name="slideshowWidget" >
  73. <property name="enabled" >
  74. <bool>true</bool>
  75. </property>
  76. <property name="sizePolicy" >
  77. <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
  78. <horstretch>0</horstretch>
  79. <verstretch>0</verstretch>
  80. </sizepolicy>
  81. </property>
  82. <property name="minimumSize" >
  83. <size>
  84. <width>150</width>
  85. <height>100</height>
  86. </size>
  87. </property>
  88. </widget>
  89. </item>
  90. <item>
  91. <spacer name="horizontalSpacer_3" >
  92. <property name="orientation" >
  93. <enum>Qt::Horizontal</enum>
  94. </property>
  95. <property name="sizeHint" stdset="0" >
  96. <size>
  97. <width>215</width>
  98. <height>20</height>
  99. </size>
  100. </property>
  101. </spacer>
  102. </item>
  103. </layout>
  104. </widget>
  105. </widget>
  106. </item>
  107. <item>
  108. <layout class="QHBoxLayout" >
  109. <property name="spacing" >
  110. <number>6</number>
  111. </property>
  112. <property name="margin" >
  113. <number>0</number>
  114. </property>
  115. <item>
  116. <widget class="QPushButton" name="refreshButton" >
  117. <property name="toolTip" >
  118. <string>Refresh the list of machines</string>
  119. </property>
  120. <property name="text" >
  121. <string>Refresh</string>
  122. </property>
  123. </widget>
  124. </item>
  125. <item>
  126. <spacer>
  127. <property name="orientation" >
  128. <enum>Qt::Horizontal</enum>
  129. </property>
  130. <property name="sizeHint" stdset="0" >
  131. <size>
  132. <width>383</width>
  133. <height>32</height>
  134. </size>
  135. </property>
  136. </spacer>
  137. </item>
  138. <item>
  139. <widget class="QPushButton" name="okButton" >
  140. <property name="enabled" >
  141. <bool>false</bool>
  142. </property>
  143. <property name="toolTip" >
  144. <string>Confirm new selection</string>
  145. </property>
  146. <property name="text" >
  147. <string>OK</string>
  148. </property>
  149. </widget>
  150. </item>
  151. <item>
  152. <widget class="QPushButton" name="cancelButton" >
  153. <property name="toolTip" >
  154. <string>Keep previous selection</string>
  155. </property>
  156. <property name="text" >
  157. <string>Cancel</string>
  158. </property>
  159. </widget>
  160. </item>
  161. </layout>
  162. </item>
  163. </layout>
  164. </widget>
  165. <customwidgets>
  166. <customwidget>
  167. <class>Slideshow</class>
  168. <extends>QWidget</extends>
  169. <header>slideshow.h</header>
  170. <container>1</container>
  171. </customwidget>
  172. </customwidgets>
  173. <resources/>
  174. <connections>
  175. <connection>
  176. <sender>okButton</sender>
  177. <signal>clicked()</signal>
  178. <receiver>Dialog</receiver>
  179. <slot>accept()</slot>
  180. <hints>
  181. <hint type="sourcelabel" >
  182. <x>600</x>
  183. <y>399</y>
  184. </hint>
  185. <hint type="destinationlabel" >
  186. <x>96</x>
  187. <y>254</y>
  188. </hint>
  189. </hints>
  190. </connection>
  191. <connection>
  192. <sender>cancelButton</sender>
  193. <signal>clicked()</signal>
  194. <receiver>Dialog</receiver>
  195. <slot>reject()</slot>
  196. <hints>
  197. <hint type="sourcelabel" >
  198. <x>691</x>
  199. <y>399</y>
  200. </hint>
  201. <hint type="destinationlabel" >
  202. <x>179</x>
  203. <y>282</y>
  204. </hint>
  205. </hints>
  206. </connection>
  207. <connection>
  208. <sender>machineTable</sender>
  209. <signal>activated(QModelIndex)</signal>
  210. <receiver>Dialog</receiver>
  211. <slot>accept()</slot>
  212. <hints>
  213. <hint type="sourcelabel" >
  214. <x>350</x>
  215. <y>197</y>
  216. </hint>
  217. <hint type="destinationlabel" >
  218. <x>350</x>
  219. <y>217</y>
  220. </hint>
  221. </hints>
  222. </connection>
  223. </connections>
  224. </ui>