main.ui 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>window</class>
  4. <widget class="QMainWindow" name="window">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>791</width>
  10. <height>669</height>
  11. </rect>
  12. </property>
  13. <property name="font">
  14. <font>
  15. <family>Verdana</family>
  16. <pointsize>8</pointsize>
  17. </font>
  18. </property>
  19. <property name="windowTitle">
  20. <string>MainWindow</string>
  21. </property>
  22. <widget class="QWidget" name="centralwidget">
  23. <layout class="QVBoxLayout" name="verticalLayout_2">
  24. <item>
  25. <layout class="QVBoxLayout" name="verticalLayout">
  26. <property name="spacing">
  27. <number>3</number>
  28. </property>
  29. <item>
  30. <widget class="QGraphicsView" name="view"/>
  31. </item>
  32. <item>
  33. <layout class="QHBoxLayout" name="horizontalLayout_2">
  34. <property name="spacing">
  35. <number>10</number>
  36. </property>
  37. <property name="leftMargin">
  38. <number>10</number>
  39. </property>
  40. <property name="topMargin">
  41. <number>0</number>
  42. </property>
  43. <property name="rightMargin">
  44. <number>10</number>
  45. </property>
  46. <item>
  47. <widget class="QLabel" name="label">
  48. <property name="text">
  49. <string>Grid Viewer</string>
  50. </property>
  51. </widget>
  52. </item>
  53. <item>
  54. <widget class="QRadioButton" name="opt_hex">
  55. <property name="minimumSize">
  56. <size>
  57. <width>0</width>
  58. <height>28</height>
  59. </size>
  60. </property>
  61. <property name="maximumSize">
  62. <size>
  63. <width>140</width>
  64. <height>28</height>
  65. </size>
  66. </property>
  67. <property name="text">
  68. <string>Hexagonal grid</string>
  69. </property>
  70. <property name="checked">
  71. <bool>true</bool>
  72. </property>
  73. </widget>
  74. </item>
  75. <item>
  76. <widget class="QRadioButton" name="opt_square">
  77. <property name="minimumSize">
  78. <size>
  79. <width>0</width>
  80. <height>28</height>
  81. </size>
  82. </property>
  83. <property name="maximumSize">
  84. <size>
  85. <width>140</width>
  86. <height>28</height>
  87. </size>
  88. </property>
  89. <property name="text">
  90. <string>Square grid</string>
  91. </property>
  92. </widget>
  93. </item>
  94. <item>
  95. <widget class="QSpinBox" name="spb_width">
  96. <property name="minimumSize">
  97. <size>
  98. <width>20</width>
  99. <height>28</height>
  100. </size>
  101. </property>
  102. <property name="maximumSize">
  103. <size>
  104. <width>80</width>
  105. <height>28</height>
  106. </size>
  107. </property>
  108. <property name="minimum">
  109. <number>1</number>
  110. </property>
  111. <property name="maximum">
  112. <number>999</number>
  113. </property>
  114. </widget>
  115. </item>
  116. <item>
  117. <widget class="QLabel" name="label_2">
  118. <property name="minimumSize">
  119. <size>
  120. <width>10</width>
  121. <height>0</height>
  122. </size>
  123. </property>
  124. <property name="maximumSize">
  125. <size>
  126. <width>10</width>
  127. <height>16777215</height>
  128. </size>
  129. </property>
  130. <property name="text">
  131. <string>X</string>
  132. </property>
  133. </widget>
  134. </item>
  135. <item>
  136. <widget class="QSpinBox" name="spb_height">
  137. <property name="minimumSize">
  138. <size>
  139. <width>20</width>
  140. <height>28</height>
  141. </size>
  142. </property>
  143. <property name="maximumSize">
  144. <size>
  145. <width>80</width>
  146. <height>28</height>
  147. </size>
  148. </property>
  149. <property name="minimum">
  150. <number>1</number>
  151. </property>
  152. <property name="maximum">
  153. <number>999</number>
  154. </property>
  155. </widget>
  156. </item>
  157. <item>
  158. <widget class="QToolButton" name="btn_make">
  159. <property name="minimumSize">
  160. <size>
  161. <width>35</width>
  162. <height>35</height>
  163. </size>
  164. </property>
  165. <property name="text">
  166. <string>&gt;&gt;</string>
  167. </property>
  168. </widget>
  169. </item>
  170. </layout>
  171. </item>
  172. </layout>
  173. </item>
  174. </layout>
  175. </widget>
  176. <widget class="QMenuBar" name="menubar">
  177. <property name="geometry">
  178. <rect>
  179. <x>0</x>
  180. <y>0</y>
  181. <width>791</width>
  182. <height>19</height>
  183. </rect>
  184. </property>
  185. <widget class="QMenu" name="menuFichier">
  186. <property name="title">
  187. <string>Fichier</string>
  188. </property>
  189. <addaction name="actionQuitter"/>
  190. </widget>
  191. <addaction name="menuFichier"/>
  192. </widget>
  193. <widget class="QStatusBar" name="statusbar"/>
  194. <action name="actionQuitter">
  195. <property name="text">
  196. <string>Quitter</string>
  197. </property>
  198. </action>
  199. </widget>
  200. <resources/>
  201. <connections/>
  202. </ui>