main.ui 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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>910</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="QHBoxLayout" name="horizontalLayout" stretch="2,0">
  24. <property name="spacing">
  25. <number>3</number>
  26. </property>
  27. <property name="leftMargin">
  28. <number>3</number>
  29. </property>
  30. <property name="topMargin">
  31. <number>3</number>
  32. </property>
  33. <property name="rightMargin">
  34. <number>3</number>
  35. </property>
  36. <property name="bottomMargin">
  37. <number>3</number>
  38. </property>
  39. <item>
  40. <layout class="QVBoxLayout" name="verticalLayout">
  41. <property name="spacing">
  42. <number>3</number>
  43. </property>
  44. <item>
  45. <widget class="QLabel" name="lbl_title">
  46. <property name="font">
  47. <font>
  48. <weight>75</weight>
  49. <bold>true</bold>
  50. </font>
  51. </property>
  52. <property name="focusPolicy">
  53. <enum>Qt::StrongFocus</enum>
  54. </property>
  55. <property name="text">
  56. <string>Grid Viewer</string>
  57. </property>
  58. <property name="alignment">
  59. <set>Qt::AlignCenter</set>
  60. </property>
  61. </widget>
  62. </item>
  63. <item>
  64. <widget class="QGraphicsView" name="view"/>
  65. </item>
  66. <item>
  67. <layout class="QHBoxLayout" name="horizontalLayout_2">
  68. <property name="spacing">
  69. <number>10</number>
  70. </property>
  71. <property name="leftMargin">
  72. <number>10</number>
  73. </property>
  74. <property name="topMargin">
  75. <number>0</number>
  76. </property>
  77. <property name="rightMargin">
  78. <number>10</number>
  79. </property>
  80. <item>
  81. <widget class="QLabel" name="label">
  82. <property name="text">
  83. <string>Update Grid</string>
  84. </property>
  85. </widget>
  86. </item>
  87. <item>
  88. <widget class="QRadioButton" name="opt_hex">
  89. <property name="minimumSize">
  90. <size>
  91. <width>0</width>
  92. <height>28</height>
  93. </size>
  94. </property>
  95. <property name="maximumSize">
  96. <size>
  97. <width>140</width>
  98. <height>28</height>
  99. </size>
  100. </property>
  101. <property name="text">
  102. <string>Hexagonal grid</string>
  103. </property>
  104. <property name="checked">
  105. <bool>true</bool>
  106. </property>
  107. </widget>
  108. </item>
  109. <item>
  110. <widget class="QRadioButton" name="opt_square">
  111. <property name="minimumSize">
  112. <size>
  113. <width>0</width>
  114. <height>28</height>
  115. </size>
  116. </property>
  117. <property name="maximumSize">
  118. <size>
  119. <width>140</width>
  120. <height>28</height>
  121. </size>
  122. </property>
  123. <property name="text">
  124. <string>Square grid</string>
  125. </property>
  126. </widget>
  127. </item>
  128. <item>
  129. <widget class="QSpinBox" name="spb_width">
  130. <property name="minimumSize">
  131. <size>
  132. <width>38</width>
  133. <height>28</height>
  134. </size>
  135. </property>
  136. <property name="maximumSize">
  137. <size>
  138. <width>80</width>
  139. <height>28</height>
  140. </size>
  141. </property>
  142. <property name="minimum">
  143. <number>1</number>
  144. </property>
  145. <property name="maximum">
  146. <number>999</number>
  147. </property>
  148. <property name="value">
  149. <number>30</number>
  150. </property>
  151. </widget>
  152. </item>
  153. <item>
  154. <widget class="QLabel" name="label_2">
  155. <property name="minimumSize">
  156. <size>
  157. <width>10</width>
  158. <height>0</height>
  159. </size>
  160. </property>
  161. <property name="maximumSize">
  162. <size>
  163. <width>10</width>
  164. <height>16777215</height>
  165. </size>
  166. </property>
  167. <property name="text">
  168. <string>X</string>
  169. </property>
  170. </widget>
  171. </item>
  172. <item>
  173. <widget class="QSpinBox" name="spb_height">
  174. <property name="minimumSize">
  175. <size>
  176. <width>38</width>
  177. <height>28</height>
  178. </size>
  179. </property>
  180. <property name="maximumSize">
  181. <size>
  182. <width>80</width>
  183. <height>28</height>
  184. </size>
  185. </property>
  186. <property name="minimum">
  187. <number>1</number>
  188. </property>
  189. <property name="maximum">
  190. <number>999</number>
  191. </property>
  192. <property name="value">
  193. <number>30</number>
  194. </property>
  195. </widget>
  196. </item>
  197. <item>
  198. <widget class="QToolButton" name="btn_make">
  199. <property name="minimumSize">
  200. <size>
  201. <width>35</width>
  202. <height>35</height>
  203. </size>
  204. </property>
  205. <property name="text">
  206. <string>&gt;&gt;</string>
  207. </property>
  208. </widget>
  209. </item>
  210. </layout>
  211. </item>
  212. </layout>
  213. </item>
  214. <item>
  215. <layout class="QVBoxLayout" name="verticalLayout_2">
  216. <property name="spacing">
  217. <number>2</number>
  218. </property>
  219. <property name="leftMargin">
  220. <number>0</number>
  221. </property>
  222. <item>
  223. <widget class="QTextEdit" name="txt_coords">
  224. <property name="minimumSize">
  225. <size>
  226. <width>183</width>
  227. <height>0</height>
  228. </size>
  229. </property>
  230. </widget>
  231. </item>
  232. <item>
  233. <layout class="QHBoxLayout" name="horizontalLayout_3">
  234. <property name="topMargin">
  235. <number>10</number>
  236. </property>
  237. <item>
  238. <spacer name="horizontalSpacer">
  239. <property name="orientation">
  240. <enum>Qt::Horizontal</enum>
  241. </property>
  242. <property name="sizeHint" stdset="0">
  243. <size>
  244. <width>40</width>
  245. <height>20</height>
  246. </size>
  247. </property>
  248. </spacer>
  249. </item>
  250. <item>
  251. <widget class="QToolButton" name="btn_updateSelection">
  252. <property name="minimumSize">
  253. <size>
  254. <width>132</width>
  255. <height>35</height>
  256. </size>
  257. </property>
  258. <property name="maximumSize">
  259. <size>
  260. <width>132</width>
  261. <height>1000</height>
  262. </size>
  263. </property>
  264. <property name="text">
  265. <string>Update selection</string>
  266. </property>
  267. </widget>
  268. </item>
  269. <item>
  270. <widget class="QToolButton" name="btn_toClipboard">
  271. <property name="minimumSize">
  272. <size>
  273. <width>84</width>
  274. <height>35</height>
  275. </size>
  276. </property>
  277. <property name="maximumSize">
  278. <size>
  279. <width>84</width>
  280. <height>1000</height>
  281. </size>
  282. </property>
  283. <property name="text">
  284. <string>To clipboard</string>
  285. </property>
  286. </widget>
  287. </item>
  288. </layout>
  289. </item>
  290. </layout>
  291. </item>
  292. </layout>
  293. </widget>
  294. <widget class="QMenuBar" name="menubar">
  295. <property name="geometry">
  296. <rect>
  297. <x>0</x>
  298. <y>0</y>
  299. <width>910</width>
  300. <height>21</height>
  301. </rect>
  302. </property>
  303. <widget class="QMenu" name="menuFichier">
  304. <property name="title">
  305. <string>Fichier</string>
  306. </property>
  307. <addaction name="actionQuitter"/>
  308. </widget>
  309. <addaction name="menuFichier"/>
  310. </widget>
  311. <widget class="QStatusBar" name="statusbar"/>
  312. <action name="actionQuitter">
  313. <property name="text">
  314. <string>Quitter</string>
  315. </property>
  316. </action>
  317. </widget>
  318. <resources/>
  319. <connections/>
  320. </ui>