ccsim.ui 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>CCSim</class>
  4. <widget class="QMainWindow" name="CCSim">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1024</width>
  10. <height>768</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>MainWindow</string>
  15. </property>
  16. <widget class="QWidget" name="centralwidget">
  17. <layout class="QHBoxLayout" name="horizontalLayout">
  18. <property name="spacing">
  19. <number>0</number>
  20. </property>
  21. <property name="leftMargin">
  22. <number>0</number>
  23. </property>
  24. <property name="topMargin">
  25. <number>0</number>
  26. </property>
  27. <property name="rightMargin">
  28. <number>0</number>
  29. </property>
  30. <property name="bottomMargin">
  31. <number>0</number>
  32. </property>
  33. <item>
  34. <layout class="QVBoxLayout" name="verticalLayout_3">
  35. <item>
  36. <widget class="QToolButton" name="btnEditor">
  37. <property name="sizePolicy">
  38. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  39. <horstretch>0</horstretch>
  40. <verstretch>0</verstretch>
  41. </sizepolicy>
  42. </property>
  43. <property name="minimumSize">
  44. <size>
  45. <width>70</width>
  46. <height>70</height>
  47. </size>
  48. </property>
  49. <property name="text">
  50. <string>Editor</string>
  51. </property>
  52. <property name="icon">
  53. <iconset resource="ccsim.qrc">
  54. <normaloff>:/ccsim/editor</normaloff>:/ccsim/editor</iconset>
  55. </property>
  56. <property name="iconSize">
  57. <size>
  58. <width>64</width>
  59. <height>64</height>
  60. </size>
  61. </property>
  62. <property name="checkable">
  63. <bool>true</bool>
  64. </property>
  65. </widget>
  66. </item>
  67. <item>
  68. <widget class="QToolButton" name="btnSimulator">
  69. <property name="sizePolicy">
  70. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  71. <horstretch>0</horstretch>
  72. <verstretch>0</verstretch>
  73. </sizepolicy>
  74. </property>
  75. <property name="minimumSize">
  76. <size>
  77. <width>70</width>
  78. <height>70</height>
  79. </size>
  80. </property>
  81. <property name="text">
  82. <string>Simulator</string>
  83. </property>
  84. <property name="icon">
  85. <iconset resource="ccsim.qrc">
  86. <normaloff>:/ccsim/simulator</normaloff>:/ccsim/simulator</iconset>
  87. </property>
  88. <property name="iconSize">
  89. <size>
  90. <width>64</width>
  91. <height>64</height>
  92. </size>
  93. </property>
  94. <property name="checkable">
  95. <bool>true</bool>
  96. </property>
  97. </widget>
  98. </item>
  99. <item>
  100. <widget class="QToolButton" name="btnTournament">
  101. <property name="sizePolicy">
  102. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  103. <horstretch>0</horstretch>
  104. <verstretch>0</verstretch>
  105. </sizepolicy>
  106. </property>
  107. <property name="minimumSize">
  108. <size>
  109. <width>70</width>
  110. <height>70</height>
  111. </size>
  112. </property>
  113. <property name="text">
  114. <string>Tournament</string>
  115. </property>
  116. <property name="icon">
  117. <iconset resource="ccsim.qrc">
  118. <normaloff>:/ccsim/tournament</normaloff>:/ccsim/tournament</iconset>
  119. </property>
  120. <property name="iconSize">
  121. <size>
  122. <width>64</width>
  123. <height>64</height>
  124. </size>
  125. </property>
  126. <property name="checkable">
  127. <bool>true</bool>
  128. </property>
  129. </widget>
  130. </item>
  131. <item>
  132. <widget class="QToolButton" name="btnOptionSet">
  133. <property name="sizePolicy">
  134. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  135. <horstretch>0</horstretch>
  136. <verstretch>0</verstretch>
  137. </sizepolicy>
  138. </property>
  139. <property name="minimumSize">
  140. <size>
  141. <width>70</width>
  142. <height>70</height>
  143. </size>
  144. </property>
  145. <property name="text">
  146. <string>Option Set</string>
  147. </property>
  148. <property name="icon">
  149. <iconset resource="ccsim.qrc">
  150. <normaloff>:/ccsim/people</normaloff>:/ccsim/people</iconset>
  151. </property>
  152. <property name="iconSize">
  153. <size>
  154. <width>64</width>
  155. <height>64</height>
  156. </size>
  157. </property>
  158. <property name="checkable">
  159. <bool>true</bool>
  160. </property>
  161. </widget>
  162. </item>
  163. <item>
  164. <spacer name="verticalSpacer">
  165. <property name="orientation">
  166. <enum>Qt::Vertical</enum>
  167. </property>
  168. <property name="sizeHint" stdset="0">
  169. <size>
  170. <width>20</width>
  171. <height>40</height>
  172. </size>
  173. </property>
  174. </spacer>
  175. </item>
  176. <item>
  177. <widget class="QToolButton" name="btnPreferences">
  178. <property name="sizePolicy">
  179. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  180. <horstretch>0</horstretch>
  181. <verstretch>0</verstretch>
  182. </sizepolicy>
  183. </property>
  184. <property name="minimumSize">
  185. <size>
  186. <width>70</width>
  187. <height>70</height>
  188. </size>
  189. </property>
  190. <property name="text">
  191. <string>Preferences</string>
  192. </property>
  193. <property name="icon">
  194. <iconset resource="ccsim.qrc">
  195. <normaloff>:/ccsim/people</normaloff>:/ccsim/people</iconset>
  196. </property>
  197. <property name="iconSize">
  198. <size>
  199. <width>64</width>
  200. <height>64</height>
  201. </size>
  202. </property>
  203. <property name="checkable">
  204. <bool>true</bool>
  205. </property>
  206. </widget>
  207. </item>
  208. <item>
  209. <widget class="QToolButton" name="btnHelp">
  210. <property name="sizePolicy">
  211. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  212. <horstretch>0</horstretch>
  213. <verstretch>0</verstretch>
  214. </sizepolicy>
  215. </property>
  216. <property name="minimumSize">
  217. <size>
  218. <width>70</width>
  219. <height>70</height>
  220. </size>
  221. </property>
  222. <property name="text">
  223. <string>Help</string>
  224. </property>
  225. <property name="icon">
  226. <iconset resource="ccsim.qrc">
  227. <normaloff>:/ccsim/people</normaloff>:/ccsim/people</iconset>
  228. </property>
  229. <property name="iconSize">
  230. <size>
  231. <width>64</width>
  232. <height>64</height>
  233. </size>
  234. </property>
  235. <property name="checkable">
  236. <bool>true</bool>
  237. </property>
  238. </widget>
  239. </item>
  240. </layout>
  241. </item>
  242. <item>
  243. <widget class="QStackedWidget" name="stackedWidget">
  244. <widget class="QWidget" name="pgEditor">
  245. <layout class="QVBoxLayout" name="verticalLayout_2">
  246. <property name="spacing">
  247. <number>0</number>
  248. </property>
  249. <property name="leftMargin">
  250. <number>0</number>
  251. </property>
  252. <property name="topMargin">
  253. <number>0</number>
  254. </property>
  255. <property name="rightMargin">
  256. <number>0</number>
  257. </property>
  258. <property name="bottomMargin">
  259. <number>0</number>
  260. </property>
  261. <item>
  262. <widget class="WgtCodeEditor" name="pteEditor"/>
  263. </item>
  264. </layout>
  265. </widget>
  266. <widget class="QWidget" name="pgSimulator"/>
  267. <widget class="QWidget" name="pgTournament"/>
  268. <widget class="QWidget" name="pgOptionSet"/>
  269. <widget class="QWidget" name="pgPreferences"/>
  270. <widget class="QWidget" name="pgHelp"/>
  271. </widget>
  272. </item>
  273. </layout>
  274. </widget>
  275. <widget class="QMenuBar" name="menubar">
  276. <property name="geometry">
  277. <rect>
  278. <x>0</x>
  279. <y>0</y>
  280. <width>1024</width>
  281. <height>21</height>
  282. </rect>
  283. </property>
  284. </widget>
  285. <widget class="QStatusBar" name="statusbar"/>
  286. <widget class="QToolBar" name="tbEditor">
  287. <property name="windowTitle">
  288. <string>Editor</string>
  289. </property>
  290. <property name="movable">
  291. <bool>false</bool>
  292. </property>
  293. <attribute name="toolBarArea">
  294. <enum>TopToolBarArea</enum>
  295. </attribute>
  296. <attribute name="toolBarBreak">
  297. <bool>false</bool>
  298. </attribute>
  299. <addaction name="actionEditorNew"/>
  300. <addaction name="actionEditorLoad"/>
  301. <addaction name="actionEditorSave"/>
  302. <addaction name="actionEditorSaveAs"/>
  303. </widget>
  304. <widget class="QToolBar" name="tbSimulator">
  305. <property name="windowTitle">
  306. <string>Simulator</string>
  307. </property>
  308. <property name="movable">
  309. <bool>false</bool>
  310. </property>
  311. <attribute name="toolBarArea">
  312. <enum>TopToolBarArea</enum>
  313. </attribute>
  314. <attribute name="toolBarBreak">
  315. <bool>false</bool>
  316. </attribute>
  317. <addaction name="actionSimulatorStop"/>
  318. <addaction name="actionSimulatorSingleStep"/>
  319. <addaction name="actionSimulatorStart"/>
  320. </widget>
  321. <widget class="QToolBar" name="tbTournament">
  322. <property name="windowTitle">
  323. <string>Tournament</string>
  324. </property>
  325. <property name="movable">
  326. <bool>false</bool>
  327. </property>
  328. <attribute name="toolBarArea">
  329. <enum>TopToolBarArea</enum>
  330. </attribute>
  331. <attribute name="toolBarBreak">
  332. <bool>false</bool>
  333. </attribute>
  334. <addaction name="actionTournamentStop"/>
  335. <addaction name="actionTournamentStart"/>
  336. <addaction name="actionTournamentSaveResults"/>
  337. </widget>
  338. <widget class="QToolBar" name="tbOptionSet">
  339. <property name="windowTitle">
  340. <string>OptionSet</string>
  341. </property>
  342. <property name="movable">
  343. <bool>false</bool>
  344. </property>
  345. <attribute name="toolBarArea">
  346. <enum>TopToolBarArea</enum>
  347. </attribute>
  348. <attribute name="toolBarBreak">
  349. <bool>false</bool>
  350. </attribute>
  351. </widget>
  352. <widget class="QToolBar" name="tbPreferences">
  353. <property name="windowTitle">
  354. <string>Preferences</string>
  355. </property>
  356. <property name="movable">
  357. <bool>false</bool>
  358. </property>
  359. <attribute name="toolBarArea">
  360. <enum>TopToolBarArea</enum>
  361. </attribute>
  362. <attribute name="toolBarBreak">
  363. <bool>false</bool>
  364. </attribute>
  365. </widget>
  366. <widget class="QToolBar" name="tbHelp">
  367. <property name="windowTitle">
  368. <string>Help</string>
  369. </property>
  370. <property name="movable">
  371. <bool>false</bool>
  372. </property>
  373. <attribute name="toolBarArea">
  374. <enum>TopToolBarArea</enum>
  375. </attribute>
  376. <attribute name="toolBarBreak">
  377. <bool>false</bool>
  378. </attribute>
  379. </widget>
  380. <action name="actionEditorSave">
  381. <property name="text">
  382. <string>EditorSave</string>
  383. </property>
  384. </action>
  385. <action name="actionEditorSaveAs">
  386. <property name="text">
  387. <string>EditorSaveAs</string>
  388. </property>
  389. </action>
  390. <action name="actionEditorLoad">
  391. <property name="text">
  392. <string>EditorLoad</string>
  393. </property>
  394. </action>
  395. <action name="actionEditorNew">
  396. <property name="text">
  397. <string>EditorNew</string>
  398. </property>
  399. </action>
  400. <action name="actionSimulatorStop">
  401. <property name="text">
  402. <string>SimulatorStop</string>
  403. </property>
  404. </action>
  405. <action name="actionSimulatorSingleStep">
  406. <property name="text">
  407. <string>SimulatorSingleStep</string>
  408. </property>
  409. </action>
  410. <action name="actionSimulatorStart">
  411. <property name="text">
  412. <string>SimulatorStart</string>
  413. </property>
  414. <property name="toolTip">
  415. <string>SimulatorStart</string>
  416. </property>
  417. </action>
  418. <action name="actionTournamentStop">
  419. <property name="text">
  420. <string>TournamentStop</string>
  421. </property>
  422. </action>
  423. <action name="actionTournamentStart">
  424. <property name="text">
  425. <string>TournamentStart</string>
  426. </property>
  427. </action>
  428. <action name="actionTournamentSaveResults">
  429. <property name="text">
  430. <string>TournamentSaveResults</string>
  431. </property>
  432. </action>
  433. </widget>
  434. <customwidgets>
  435. <customwidget>
  436. <class>WgtCodeEditor</class>
  437. <extends>QPlainTextEdit</extends>
  438. <header>wgtcodeeditor.h</header>
  439. </customwidget>
  440. </customwidgets>
  441. <resources>
  442. <include location="ccsim.qrc"/>
  443. </resources>
  444. <connections/>
  445. </ui>