configure_touch_from_button.ui 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ConfigureTouchFromButton</class>
  4. <widget class="QDialog" name="ConfigureTouchFromButton">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>500</width>
  10. <height>500</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Configure Touchscreen Mappings</string>
  15. </property>
  16. <layout class="QVBoxLayout">
  17. <item>
  18. <layout class="QHBoxLayout" name="horizontalLayout">
  19. <item>
  20. <widget class="QLabel" name="label">
  21. <property name="text">
  22. <string>Mapping:</string>
  23. </property>
  24. <property name="textFormat">
  25. <enum>Qt::PlainText</enum>
  26. </property>
  27. </widget>
  28. </item>
  29. <item>
  30. <widget class="QComboBox" name="mapping">
  31. <property name="sizePolicy">
  32. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
  33. <horstretch>0</horstretch>
  34. <verstretch>0</verstretch>
  35. </sizepolicy>
  36. </property>
  37. </widget>
  38. </item>
  39. <item>
  40. <widget class="QPushButton" name="button_new">
  41. <property name="sizePolicy">
  42. <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
  43. <horstretch>0</horstretch>
  44. <verstretch>0</verstretch>
  45. </sizepolicy>
  46. </property>
  47. <property name="text">
  48. <string>New</string>
  49. </property>
  50. </widget>
  51. </item>
  52. <item>
  53. <widget class="QPushButton" name="button_delete">
  54. <property name="sizePolicy">
  55. <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
  56. <horstretch>0</horstretch>
  57. <verstretch>0</verstretch>
  58. </sizepolicy>
  59. </property>
  60. <property name="text">
  61. <string>Delete</string>
  62. </property>
  63. </widget>
  64. </item>
  65. <item>
  66. <widget class="QPushButton" name="button_rename">
  67. <property name="sizePolicy">
  68. <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
  69. <horstretch>0</horstretch>
  70. <verstretch>0</verstretch>
  71. </sizepolicy>
  72. </property>
  73. <property name="text">
  74. <string>Rename</string>
  75. </property>
  76. </widget>
  77. </item>
  78. </layout>
  79. </item>
  80. <item>
  81. <widget class="Line" name="line">
  82. <property name="orientation">
  83. <enum>Qt::Horizontal</enum>
  84. </property>
  85. </widget>
  86. </item>
  87. <item>
  88. <layout class="QHBoxLayout" name="horizontalLayout_2">
  89. <item>
  90. <widget class="QLabel" name="label_2">
  91. <property name="text">
  92. <string>Click the bottom area to add a point, then press a button to bind.
  93. Drag points to change position, or double-click table cells to edit values.</string>
  94. </property>
  95. <property name="textFormat">
  96. <enum>Qt::PlainText</enum>
  97. </property>
  98. </widget>
  99. </item>
  100. <item>
  101. <spacer name="horizontalSpacer">
  102. <property name="orientation">
  103. <enum>Qt::Horizontal</enum>
  104. </property>
  105. <property name="sizeHint" stdset="0">
  106. <size>
  107. <width>40</width>
  108. <height>20</height>
  109. </size>
  110. </property>
  111. </spacer>
  112. </item>
  113. <item>
  114. <widget class="QPushButton" name="button_delete_bind">
  115. <property name="text">
  116. <string>Delete Point</string>
  117. </property>
  118. </widget>
  119. </item>
  120. </layout>
  121. </item>
  122. <item>
  123. <widget class="QTreeView" name="binding_list">
  124. <property name="sizePolicy">
  125. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  126. <horstretch>0</horstretch>
  127. <verstretch>0</verstretch>
  128. </sizepolicy>
  129. </property>
  130. <property name="rootIsDecorated">
  131. <bool>false</bool>
  132. </property>
  133. <property name="uniformRowHeights">
  134. <bool>true</bool>
  135. </property>
  136. <property name="itemsExpandable">
  137. <bool>false</bool>
  138. </property>
  139. </widget>
  140. </item>
  141. <item>
  142. <widget class="TouchScreenPreview" name="bottom_screen">
  143. <property name="sizePolicy">
  144. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  145. <horstretch>0</horstretch>
  146. <verstretch>0</verstretch>
  147. </sizepolicy>
  148. </property>
  149. <property name="minimumSize">
  150. <size>
  151. <width>160</width>
  152. <height>120</height>
  153. </size>
  154. </property>
  155. <property name="baseSize">
  156. <size>
  157. <width>320</width>
  158. <height>240</height>
  159. </size>
  160. </property>
  161. <property name="cursor">
  162. <cursorShape>CrossCursor</cursorShape>
  163. </property>
  164. <property name="mouseTracking">
  165. <bool>true</bool>
  166. </property>
  167. <property name="autoFillBackground">
  168. <bool>true</bool>
  169. </property>
  170. <property name="frameShape">
  171. <enum>QFrame::StyledPanel</enum>
  172. </property>
  173. <property name="frameShadow">
  174. <enum>QFrame::Sunken</enum>
  175. </property>
  176. </widget>
  177. </item>
  178. <item>
  179. <layout class="QHBoxLayout" name="horizontalLayout_3">
  180. <item>
  181. <widget class="QLabel" name="coord_label">
  182. <property name="sizePolicy">
  183. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  184. <horstretch>0</horstretch>
  185. <verstretch>0</verstretch>
  186. </sizepolicy>
  187. </property>
  188. <property name="textFormat">
  189. <enum>Qt::PlainText</enum>
  190. </property>
  191. </widget>
  192. </item>
  193. <item>
  194. <widget class="QDialogButtonBox" name="buttonBox">
  195. <property name="standardButtons">
  196. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  197. </property>
  198. </widget>
  199. </item>
  200. </layout>
  201. </item>
  202. </layout>
  203. </widget>
  204. <customwidgets>
  205. <customwidget>
  206. <class>TouchScreenPreview</class>
  207. <extends>QFrame</extends>
  208. <header>yuzu/configuration/configure_touch_widget.h</header>
  209. <container>1</container>
  210. </customwidget>
  211. </customwidgets>
  212. <resources/>
  213. <connections>
  214. <connection>
  215. <sender>buttonBox</sender>
  216. <signal>rejected()</signal>
  217. <receiver>ConfigureTouchFromButton</receiver>
  218. <slot>reject()</slot>
  219. </connection>
  220. </connections>
  221. </ui>