mainwindow.ui 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  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>VCMI Map Editor</string>
  15. </property>
  16. <widget class="QWidget" name="centralwidget">
  17. <layout class="QGridLayout" name="gridLayout">
  18. <property name="leftMargin">
  19. <number>2</number>
  20. </property>
  21. <property name="topMargin">
  22. <number>2</number>
  23. </property>
  24. <property name="rightMargin">
  25. <number>2</number>
  26. </property>
  27. <property name="bottomMargin">
  28. <number>2</number>
  29. </property>
  30. <item row="0" column="0">
  31. <widget class="MapView" name="mapView">
  32. <property name="sizePolicy">
  33. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  34. <horstretch>0</horstretch>
  35. <verstretch>0</verstretch>
  36. </sizepolicy>
  37. </property>
  38. <property name="mouseTracking">
  39. <bool>true</bool>
  40. </property>
  41. <property name="sizeAdjustPolicy">
  42. <enum>QAbstractScrollArea::AdjustToContents</enum>
  43. </property>
  44. </widget>
  45. </item>
  46. </layout>
  47. </widget>
  48. <widget class="QMenuBar" name="menubar">
  49. <property name="geometry">
  50. <rect>
  51. <x>0</x>
  52. <y>0</y>
  53. <width>1024</width>
  54. <height>22</height>
  55. </rect>
  56. </property>
  57. <widget class="QMenu" name="menuFile">
  58. <property name="title">
  59. <string>File</string>
  60. </property>
  61. <addaction name="actionNew"/>
  62. <addaction name="actionOpen"/>
  63. <addaction name="actionSave"/>
  64. <addaction name="actionSave_as"/>
  65. </widget>
  66. <widget class="QMenu" name="menuMap">
  67. <property name="title">
  68. <string>Map</string>
  69. </property>
  70. <addaction name="actionMapSettings"/>
  71. <addaction name="actionPlayers_settings"/>
  72. <addaction name="actionValidate"/>
  73. <addaction name="actionUpdate_appearance"/>
  74. <addaction name="actionRecreate_obstacles"/>
  75. </widget>
  76. <widget class="QMenu" name="menuEdit">
  77. <property name="title">
  78. <string>Edit</string>
  79. </property>
  80. <addaction name="actionUndo"/>
  81. <addaction name="actionRedo"/>
  82. <addaction name="actionCut"/>
  83. <addaction name="actionCopy"/>
  84. <addaction name="actionPaste"/>
  85. <addaction name="actionErase"/>
  86. </widget>
  87. <widget class="QMenu" name="menuView">
  88. <property name="title">
  89. <string>View</string>
  90. </property>
  91. <addaction name="actionLevel"/>
  92. <addaction name="actionGrid"/>
  93. <addaction name="actionPass"/>
  94. </widget>
  95. <widget class="QMenu" name="menuPlayer">
  96. <property name="title">
  97. <string>Player</string>
  98. </property>
  99. <addaction name="actionNeutral"/>
  100. <addaction name="actionPlayer_1"/>
  101. <addaction name="actionPlayer_2"/>
  102. <addaction name="actionPlayer_3"/>
  103. <addaction name="actionPlayer_4"/>
  104. <addaction name="actionPlayer_5"/>
  105. <addaction name="actionPlayer_6"/>
  106. <addaction name="actionPlayer_7"/>
  107. <addaction name="actionPlayer_8"/>
  108. </widget>
  109. <addaction name="menuFile"/>
  110. <addaction name="menuEdit"/>
  111. <addaction name="menuView"/>
  112. <addaction name="menuMap"/>
  113. <addaction name="menuPlayer"/>
  114. </widget>
  115. <widget class="QToolBar" name="toolBar">
  116. <property name="windowTitle">
  117. <string>Toolbar</string>
  118. </property>
  119. <attribute name="toolBarArea">
  120. <enum>TopToolBarArea</enum>
  121. </attribute>
  122. <attribute name="toolBarBreak">
  123. <bool>false</bool>
  124. </attribute>
  125. <addaction name="actionNew"/>
  126. <addaction name="actionOpen"/>
  127. <addaction name="actionSave"/>
  128. <addaction name="separator"/>
  129. <addaction name="actionUndo"/>
  130. <addaction name="actionRedo"/>
  131. <addaction name="separator"/>
  132. <addaction name="actionLevel"/>
  133. <addaction name="actionGrid"/>
  134. <addaction name="actionPass"/>
  135. <addaction name="separator"/>
  136. <addaction name="actionErase"/>
  137. <addaction name="actionCut"/>
  138. <addaction name="actionCopy"/>
  139. <addaction name="actionPaste"/>
  140. <addaction name="separator"/>
  141. <addaction name="actionFill"/>
  142. </widget>
  143. <widget class="QDockWidget" name="dockWidget_2">
  144. <property name="sizePolicy">
  145. <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
  146. <horstretch>0</horstretch>
  147. <verstretch>0</verstretch>
  148. </sizepolicy>
  149. </property>
  150. <property name="minimumSize">
  151. <size>
  152. <width>192</width>
  153. <height>214</height>
  154. </size>
  155. </property>
  156. <property name="maximumSize">
  157. <size>
  158. <width>192</width>
  159. <height>214</height>
  160. </size>
  161. </property>
  162. <property name="windowTitle">
  163. <string>Minimap</string>
  164. </property>
  165. <attribute name="dockWidgetArea">
  166. <number>2</number>
  167. </attribute>
  168. <widget class="QWidget" name="dockWidgetContents_2">
  169. <property name="maximumSize">
  170. <size>
  171. <width>524287</width>
  172. <height>16777215</height>
  173. </size>
  174. </property>
  175. <layout class="QVBoxLayout" name="verticalLayout_6">
  176. <property name="leftMargin">
  177. <number>0</number>
  178. </property>
  179. <property name="topMargin">
  180. <number>0</number>
  181. </property>
  182. <property name="rightMargin">
  183. <number>0</number>
  184. </property>
  185. <property name="bottomMargin">
  186. <number>0</number>
  187. </property>
  188. <item>
  189. <widget class="MinimapView" name="minimapView">
  190. <property name="sizePolicy">
  191. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  192. <horstretch>0</horstretch>
  193. <verstretch>0</verstretch>
  194. </sizepolicy>
  195. </property>
  196. <property name="minimumSize">
  197. <size>
  198. <width>192</width>
  199. <height>192</height>
  200. </size>
  201. </property>
  202. <property name="maximumSize">
  203. <size>
  204. <width>192</width>
  205. <height>192</height>
  206. </size>
  207. </property>
  208. <property name="verticalScrollBarPolicy">
  209. <enum>Qt::ScrollBarAlwaysOff</enum>
  210. </property>
  211. <property name="horizontalScrollBarPolicy">
  212. <enum>Qt::ScrollBarAlwaysOff</enum>
  213. </property>
  214. </widget>
  215. </item>
  216. </layout>
  217. </widget>
  218. </widget>
  219. <widget class="QDockWidget" name="dockWidget_3">
  220. <property name="sizePolicy">
  221. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  222. <horstretch>0</horstretch>
  223. <verstretch>0</verstretch>
  224. </sizepolicy>
  225. </property>
  226. <property name="minimumSize">
  227. <size>
  228. <width>268</width>
  229. <height>196</height>
  230. </size>
  231. </property>
  232. <property name="maximumSize">
  233. <size>
  234. <width>524287</width>
  235. <height>524287</height>
  236. </size>
  237. </property>
  238. <property name="windowTitle">
  239. <string>Map Objects View</string>
  240. </property>
  241. <attribute name="dockWidgetArea">
  242. <number>2</number>
  243. </attribute>
  244. <widget class="QWidget" name="dockWidgetContents_3">
  245. <property name="sizePolicy">
  246. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  247. <horstretch>0</horstretch>
  248. <verstretch>0</verstretch>
  249. </sizepolicy>
  250. </property>
  251. <layout class="QVBoxLayout" name="verticalLayout_7">
  252. <property name="leftMargin">
  253. <number>0</number>
  254. </property>
  255. <property name="topMargin">
  256. <number>0</number>
  257. </property>
  258. <property name="rightMargin">
  259. <number>0</number>
  260. </property>
  261. <property name="bottomMargin">
  262. <number>0</number>
  263. </property>
  264. <item>
  265. <widget class="QTabWidget" name="tabWidget">
  266. <property name="sizePolicy">
  267. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  268. <horstretch>0</horstretch>
  269. <verstretch>0</verstretch>
  270. </sizepolicy>
  271. </property>
  272. <property name="currentIndex">
  273. <number>0</number>
  274. </property>
  275. <widget class="QWidget" name="tab_2">
  276. <property name="sizePolicy">
  277. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
  278. <horstretch>0</horstretch>
  279. <verstretch>0</verstretch>
  280. </sizepolicy>
  281. </property>
  282. <attribute name="title">
  283. <string>Browser</string>
  284. </attribute>
  285. <layout class="QVBoxLayout" name="verticalLayout_2">
  286. <property name="spacing">
  287. <number>0</number>
  288. </property>
  289. <property name="leftMargin">
  290. <number>0</number>
  291. </property>
  292. <property name="topMargin">
  293. <number>0</number>
  294. </property>
  295. <property name="rightMargin">
  296. <number>0</number>
  297. </property>
  298. <property name="bottomMargin">
  299. <number>0</number>
  300. </property>
  301. <item>
  302. <widget class="QComboBox" name="terrainFilterCombo">
  303. <property name="sizePolicy">
  304. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  305. <horstretch>0</horstretch>
  306. <verstretch>0</verstretch>
  307. </sizepolicy>
  308. </property>
  309. </widget>
  310. </item>
  311. <item>
  312. <widget class="QLineEdit" name="filter"/>
  313. </item>
  314. <item>
  315. <widget class="ObjectBrowser" name="treeView">
  316. <property name="sizePolicy">
  317. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  318. <horstretch>0</horstretch>
  319. <verstretch>0</verstretch>
  320. </sizepolicy>
  321. </property>
  322. <property name="mouseTracking">
  323. <bool>false</bool>
  324. </property>
  325. <property name="focusPolicy">
  326. <enum>Qt::ClickFocus</enum>
  327. </property>
  328. <property name="editTriggers">
  329. <set>QAbstractItemView::NoEditTriggers</set>
  330. </property>
  331. <property name="showDropIndicator" stdset="0">
  332. <bool>false</bool>
  333. </property>
  334. <property name="dragDropMode">
  335. <enum>QAbstractItemView::DragOnly</enum>
  336. </property>
  337. <property name="selectionBehavior">
  338. <enum>QAbstractItemView::SelectItems</enum>
  339. </property>
  340. <property name="iconSize">
  341. <size>
  342. <width>32</width>
  343. <height>32</height>
  344. </size>
  345. </property>
  346. <property name="indentation">
  347. <number>12</number>
  348. </property>
  349. <property name="sortingEnabled">
  350. <bool>true</bool>
  351. </property>
  352. <property name="headerHidden">
  353. <bool>true</bool>
  354. </property>
  355. </widget>
  356. </item>
  357. </layout>
  358. </widget>
  359. <widget class="QWidget" name="tab">
  360. <attribute name="title">
  361. <string>Inspector</string>
  362. </attribute>
  363. <layout class="QVBoxLayout" name="verticalLayout_3">
  364. <property name="leftMargin">
  365. <number>0</number>
  366. </property>
  367. <property name="topMargin">
  368. <number>0</number>
  369. </property>
  370. <property name="rightMargin">
  371. <number>0</number>
  372. </property>
  373. <property name="bottomMargin">
  374. <number>0</number>
  375. </property>
  376. <item>
  377. <widget class="QTableWidget" name="inspectorWidget">
  378. <property name="font">
  379. <font>
  380. <pointsize>10</pointsize>
  381. </font>
  382. </property>
  383. <property name="editTriggers">
  384. <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
  385. </property>
  386. <property name="selectionMode">
  387. <enum>QAbstractItemView::SingleSelection</enum>
  388. </property>
  389. <property name="columnCount">
  390. <number>2</number>
  391. </property>
  392. <attribute name="verticalHeaderVisible">
  393. <bool>false</bool>
  394. </attribute>
  395. <attribute name="verticalHeaderDefaultSectionSize">
  396. <number>21</number>
  397. </attribute>
  398. <column>
  399. <property name="text">
  400. <string>Property</string>
  401. </property>
  402. </column>
  403. <column>
  404. <property name="text">
  405. <string>Value</string>
  406. </property>
  407. </column>
  408. </widget>
  409. </item>
  410. </layout>
  411. </widget>
  412. </widget>
  413. </item>
  414. </layout>
  415. </widget>
  416. </widget>
  417. <widget class="QStatusBar" name="statusbar"/>
  418. <widget class="QDockWidget" name="dockWidget">
  419. <property name="sizePolicy">
  420. <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
  421. <horstretch>0</horstretch>
  422. <verstretch>0</verstretch>
  423. </sizepolicy>
  424. </property>
  425. <property name="minimumSize">
  426. <size>
  427. <width>128</width>
  428. <height>496</height>
  429. </size>
  430. </property>
  431. <property name="windowTitle">
  432. <string>Terrains View</string>
  433. </property>
  434. <attribute name="dockWidgetArea">
  435. <number>1</number>
  436. </attribute>
  437. <widget class="QWidget" name="dockWidgetContents">
  438. <property name="sizePolicy">
  439. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  440. <horstretch>0</horstretch>
  441. <verstretch>0</verstretch>
  442. </sizepolicy>
  443. </property>
  444. <property name="minimumSize">
  445. <size>
  446. <width>0</width>
  447. <height>0</height>
  448. </size>
  449. </property>
  450. <property name="maximumSize">
  451. <size>
  452. <width>16777215</width>
  453. <height>16777215</height>
  454. </size>
  455. </property>
  456. <layout class="QVBoxLayout" name="verticalLayout_8">
  457. <property name="leftMargin">
  458. <number>0</number>
  459. </property>
  460. <property name="topMargin">
  461. <number>0</number>
  462. </property>
  463. <property name="rightMargin">
  464. <number>0</number>
  465. </property>
  466. <property name="bottomMargin">
  467. <number>0</number>
  468. </property>
  469. <item>
  470. <widget class="QGroupBox" name="groupBox">
  471. <property name="sizePolicy">
  472. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  473. <horstretch>0</horstretch>
  474. <verstretch>0</verstretch>
  475. </sizepolicy>
  476. </property>
  477. <property name="maximumSize">
  478. <size>
  479. <width>16777215</width>
  480. <height>16777215</height>
  481. </size>
  482. </property>
  483. <property name="title">
  484. <string>Brush</string>
  485. </property>
  486. <layout class="QFormLayout" name="formLayout">
  487. <item row="0" column="0">
  488. <widget class="QPushButton" name="toolBrush">
  489. <property name="sizePolicy">
  490. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  491. <horstretch>0</horstretch>
  492. <verstretch>0</verstretch>
  493. </sizepolicy>
  494. </property>
  495. <property name="minimumSize">
  496. <size>
  497. <width>40</width>
  498. <height>40</height>
  499. </size>
  500. </property>
  501. <property name="maximumSize">
  502. <size>
  503. <width>40</width>
  504. <height>40</height>
  505. </size>
  506. </property>
  507. <property name="text">
  508. <string/>
  509. </property>
  510. <property name="icon">
  511. <iconset>
  512. <normaloff>icons:brush-1.png</normaloff>icons:brush-1.png</iconset>
  513. </property>
  514. <property name="iconSize">
  515. <size>
  516. <width>16</width>
  517. <height>16</height>
  518. </size>
  519. </property>
  520. <property name="checkable">
  521. <bool>true</bool>
  522. </property>
  523. <property name="flat">
  524. <bool>false</bool>
  525. </property>
  526. </widget>
  527. </item>
  528. <item row="0" column="1">
  529. <widget class="QPushButton" name="toolBrush2">
  530. <property name="enabled">
  531. <bool>true</bool>
  532. </property>
  533. <property name="sizePolicy">
  534. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  535. <horstretch>0</horstretch>
  536. <verstretch>0</verstretch>
  537. </sizepolicy>
  538. </property>
  539. <property name="minimumSize">
  540. <size>
  541. <width>40</width>
  542. <height>40</height>
  543. </size>
  544. </property>
  545. <property name="maximumSize">
  546. <size>
  547. <width>40</width>
  548. <height>40</height>
  549. </size>
  550. </property>
  551. <property name="text">
  552. <string/>
  553. </property>
  554. <property name="icon">
  555. <iconset>
  556. <normaloff>icons:brush-2.png</normaloff>icons:brush-2.png</iconset>
  557. </property>
  558. <property name="iconSize">
  559. <size>
  560. <width>16</width>
  561. <height>16</height>
  562. </size>
  563. </property>
  564. <property name="checkable">
  565. <bool>true</bool>
  566. </property>
  567. <property name="flat">
  568. <bool>false</bool>
  569. </property>
  570. </widget>
  571. </item>
  572. <item row="1" column="0">
  573. <widget class="QPushButton" name="toolBrush4">
  574. <property name="enabled">
  575. <bool>true</bool>
  576. </property>
  577. <property name="sizePolicy">
  578. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  579. <horstretch>0</horstretch>
  580. <verstretch>0</verstretch>
  581. </sizepolicy>
  582. </property>
  583. <property name="minimumSize">
  584. <size>
  585. <width>40</width>
  586. <height>40</height>
  587. </size>
  588. </property>
  589. <property name="maximumSize">
  590. <size>
  591. <width>40</width>
  592. <height>40</height>
  593. </size>
  594. </property>
  595. <property name="text">
  596. <string/>
  597. </property>
  598. <property name="icon">
  599. <iconset>
  600. <normaloff>icons:brush-4.png</normaloff>icons:brush-4.png</iconset>
  601. </property>
  602. <property name="iconSize">
  603. <size>
  604. <width>16</width>
  605. <height>16</height>
  606. </size>
  607. </property>
  608. <property name="checkable">
  609. <bool>true</bool>
  610. </property>
  611. <property name="flat">
  612. <bool>false</bool>
  613. </property>
  614. </widget>
  615. </item>
  616. <item row="1" column="1">
  617. <widget class="QPushButton" name="toolArea">
  618. <property name="sizePolicy">
  619. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  620. <horstretch>0</horstretch>
  621. <verstretch>0</verstretch>
  622. </sizepolicy>
  623. </property>
  624. <property name="minimumSize">
  625. <size>
  626. <width>40</width>
  627. <height>40</height>
  628. </size>
  629. </property>
  630. <property name="maximumSize">
  631. <size>
  632. <width>40</width>
  633. <height>40</height>
  634. </size>
  635. </property>
  636. <property name="text">
  637. <string/>
  638. </property>
  639. <property name="icon">
  640. <iconset>
  641. <normaloff>icons:brush-5.png</normaloff>icons:brush-5.png</iconset>
  642. </property>
  643. <property name="checkable">
  644. <bool>true</bool>
  645. </property>
  646. <property name="flat">
  647. <bool>false</bool>
  648. </property>
  649. </widget>
  650. </item>
  651. <item row="2" column="0">
  652. <widget class="QPushButton" name="toolLasso">
  653. <property name="enabled">
  654. <bool>true</bool>
  655. </property>
  656. <property name="sizePolicy">
  657. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  658. <horstretch>0</horstretch>
  659. <verstretch>0</verstretch>
  660. </sizepolicy>
  661. </property>
  662. <property name="minimumSize">
  663. <size>
  664. <width>40</width>
  665. <height>40</height>
  666. </size>
  667. </property>
  668. <property name="maximumSize">
  669. <size>
  670. <width>40</width>
  671. <height>40</height>
  672. </size>
  673. </property>
  674. <property name="text">
  675. <string/>
  676. </property>
  677. <property name="icon">
  678. <iconset>
  679. <normaloff>icons:brush-3.png</normaloff>icons:brush-3.png</iconset>
  680. </property>
  681. <property name="checkable">
  682. <bool>true</bool>
  683. </property>
  684. <property name="flat">
  685. <bool>false</bool>
  686. </property>
  687. </widget>
  688. </item>
  689. <item row="2" column="1">
  690. <widget class="QPushButton" name="toolErase">
  691. <property name="enabled">
  692. <bool>false</bool>
  693. </property>
  694. <property name="sizePolicy">
  695. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  696. <horstretch>0</horstretch>
  697. <verstretch>0</verstretch>
  698. </sizepolicy>
  699. </property>
  700. <property name="minimumSize">
  701. <size>
  702. <width>40</width>
  703. <height>40</height>
  704. </size>
  705. </property>
  706. <property name="maximumSize">
  707. <size>
  708. <width>40</width>
  709. <height>40</height>
  710. </size>
  711. </property>
  712. <property name="text">
  713. <string/>
  714. </property>
  715. <property name="icon">
  716. <iconset>
  717. <normaloff>icons:edit-clear.png</normaloff>icons:edit-clear.png</iconset>
  718. </property>
  719. <property name="checkable">
  720. <bool>false</bool>
  721. </property>
  722. <property name="flat">
  723. <bool>false</bool>
  724. </property>
  725. </widget>
  726. </item>
  727. </layout>
  728. </widget>
  729. </item>
  730. <item>
  731. <widget class="QToolBox" name="toolBox">
  732. <property name="sizePolicy">
  733. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  734. <horstretch>0</horstretch>
  735. <verstretch>0</verstretch>
  736. </sizepolicy>
  737. </property>
  738. <property name="maximumSize">
  739. <size>
  740. <width>16777215</width>
  741. <height>16777215</height>
  742. </size>
  743. </property>
  744. <property name="currentIndex">
  745. <number>0</number>
  746. </property>
  747. <widget class="QWidget" name="terrainPage">
  748. <property name="geometry">
  749. <rect>
  750. <x>0</x>
  751. <y>0</y>
  752. <width>128</width>
  753. <height>257</height>
  754. </rect>
  755. </property>
  756. <property name="sizePolicy">
  757. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  758. <horstretch>0</horstretch>
  759. <verstretch>0</verstretch>
  760. </sizepolicy>
  761. </property>
  762. <attribute name="label">
  763. <string>Terrains</string>
  764. </attribute>
  765. <layout class="QVBoxLayout" name="verticalLayout">
  766. <property name="spacing">
  767. <number>1</number>
  768. </property>
  769. <property name="leftMargin">
  770. <number>0</number>
  771. </property>
  772. <property name="topMargin">
  773. <number>0</number>
  774. </property>
  775. <property name="rightMargin">
  776. <number>0</number>
  777. </property>
  778. <property name="bottomMargin">
  779. <number>0</number>
  780. </property>
  781. <item>
  782. <layout class="QVBoxLayout" name="terrainLayout">
  783. <property name="spacing">
  784. <number>1</number>
  785. </property>
  786. </layout>
  787. </item>
  788. </layout>
  789. </widget>
  790. <widget class="QWidget" name="roadPage">
  791. <property name="geometry">
  792. <rect>
  793. <x>0</x>
  794. <y>0</y>
  795. <width>128</width>
  796. <height>257</height>
  797. </rect>
  798. </property>
  799. <property name="sizePolicy">
  800. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  801. <horstretch>0</horstretch>
  802. <verstretch>0</verstretch>
  803. </sizepolicy>
  804. </property>
  805. <attribute name="label">
  806. <string>Roads</string>
  807. </attribute>
  808. <layout class="QVBoxLayout" name="verticalLayout_4">
  809. <property name="leftMargin">
  810. <number>0</number>
  811. </property>
  812. <property name="topMargin">
  813. <number>0</number>
  814. </property>
  815. <property name="rightMargin">
  816. <number>0</number>
  817. </property>
  818. <property name="bottomMargin">
  819. <number>0</number>
  820. </property>
  821. <item>
  822. <layout class="QVBoxLayout" name="roadLayout"/>
  823. </item>
  824. </layout>
  825. </widget>
  826. <widget class="QWidget" name="riverPage">
  827. <property name="geometry">
  828. <rect>
  829. <x>0</x>
  830. <y>0</y>
  831. <width>128</width>
  832. <height>257</height>
  833. </rect>
  834. </property>
  835. <property name="sizePolicy">
  836. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  837. <horstretch>0</horstretch>
  838. <verstretch>0</verstretch>
  839. </sizepolicy>
  840. </property>
  841. <attribute name="label">
  842. <string>Rivers</string>
  843. </attribute>
  844. <layout class="QVBoxLayout" name="verticalLayout_5">
  845. <property name="leftMargin">
  846. <number>0</number>
  847. </property>
  848. <property name="topMargin">
  849. <number>0</number>
  850. </property>
  851. <property name="rightMargin">
  852. <number>0</number>
  853. </property>
  854. <property name="bottomMargin">
  855. <number>0</number>
  856. </property>
  857. <item>
  858. <layout class="QVBoxLayout" name="riverLayout"/>
  859. </item>
  860. </layout>
  861. </widget>
  862. </widget>
  863. </item>
  864. <item>
  865. <widget class="QGraphicsView" name="objectPreview">
  866. <property name="minimumSize">
  867. <size>
  868. <width>128</width>
  869. <height>128</height>
  870. </size>
  871. </property>
  872. <property name="maximumSize">
  873. <size>
  874. <width>128</width>
  875. <height>128</height>
  876. </size>
  877. </property>
  878. </widget>
  879. </item>
  880. </layout>
  881. </widget>
  882. </widget>
  883. <action name="actionOpen">
  884. <property name="icon">
  885. <iconset>
  886. <normaloff>icons:document-open.png</normaloff>icons:document-open.png</iconset>
  887. </property>
  888. <property name="text">
  889. <string>Open</string>
  890. </property>
  891. <property name="shortcut">
  892. <string notr="true">Ctrl+O</string>
  893. </property>
  894. </action>
  895. <action name="actionSave">
  896. <property name="icon">
  897. <iconset>
  898. <normaloff>icons:document-save.png</normaloff>icons:document-save.png</iconset>
  899. </property>
  900. <property name="text">
  901. <string>Save</string>
  902. </property>
  903. <property name="shortcut">
  904. <string notr="true">Ctrl+S</string>
  905. </property>
  906. </action>
  907. <action name="actionNew">
  908. <property name="icon">
  909. <iconset>
  910. <normaloff>icons:document-new.png</normaloff>icons:document-new.png</iconset>
  911. </property>
  912. <property name="text">
  913. <string>New</string>
  914. </property>
  915. <property name="shortcut">
  916. <string notr="true">Ctrl+N</string>
  917. </property>
  918. </action>
  919. <action name="actionSave_as">
  920. <property name="text">
  921. <string>Save as</string>
  922. </property>
  923. <property name="shortcut">
  924. <string>Ctrl+Shift+S</string>
  925. </property>
  926. </action>
  927. <action name="actionLevel">
  928. <property name="icon">
  929. <iconset>
  930. <normaloff>icons:toggle-underground.png</normaloff>icons:toggle-underground.png</iconset>
  931. </property>
  932. <property name="text">
  933. <string>U/G</string>
  934. </property>
  935. <property name="toolTip">
  936. <string>View underground</string>
  937. </property>
  938. <property name="shortcut">
  939. <string notr="true">U</string>
  940. </property>
  941. </action>
  942. <action name="actionPass">
  943. <property name="checkable">
  944. <bool>true</bool>
  945. </property>
  946. <property name="icon">
  947. <iconset>
  948. <normaloff>icons:toggle-pass.png</normaloff>icons:toggle-pass.png</iconset>
  949. </property>
  950. <property name="text">
  951. <string>Pass</string>
  952. </property>
  953. <property name="shortcut">
  954. <string notr="true">P</string>
  955. </property>
  956. </action>
  957. <action name="actionCut">
  958. <property name="icon">
  959. <iconset>
  960. <normaloff>icons:edit-cut.png</normaloff>icons:edit-cut.png</iconset>
  961. </property>
  962. <property name="text">
  963. <string>Cut</string>
  964. </property>
  965. <property name="shortcut">
  966. <string notr="true">Ctrl+X</string>
  967. </property>
  968. </action>
  969. <action name="actionCopy">
  970. <property name="icon">
  971. <iconset>
  972. <normaloff>icons:edit-copy.png</normaloff>icons:edit-copy.png</iconset>
  973. </property>
  974. <property name="text">
  975. <string>Copy</string>
  976. </property>
  977. <property name="shortcut">
  978. <string notr="true">Ctrl+C</string>
  979. </property>
  980. </action>
  981. <action name="actionPaste">
  982. <property name="icon">
  983. <iconset>
  984. <normaloff>icons:edit-paste.png</normaloff>icons:edit-paste.png</iconset>
  985. </property>
  986. <property name="text">
  987. <string>Paste</string>
  988. </property>
  989. <property name="shortcut">
  990. <string notr="true">Ctrl+V</string>
  991. </property>
  992. </action>
  993. <action name="actionFill">
  994. <property name="icon">
  995. <iconset>
  996. <normaloff>icons:fill-obstacles.png</normaloff>icons:fill-obstacles.png</iconset>
  997. </property>
  998. <property name="text">
  999. <string>Fill</string>
  1000. </property>
  1001. <property name="toolTip">
  1002. <string>Fills the selection with obstacles</string>
  1003. </property>
  1004. <property name="shortcut">
  1005. <string notr="true">F</string>
  1006. </property>
  1007. </action>
  1008. <action name="actionGrid">
  1009. <property name="checkable">
  1010. <bool>true</bool>
  1011. </property>
  1012. <property name="icon">
  1013. <iconset>
  1014. <normaloff>icons:toggle-grid.png</normaloff>icons:toggle-grid.png</iconset>
  1015. </property>
  1016. <property name="text">
  1017. <string>Grid</string>
  1018. </property>
  1019. <property name="shortcut">
  1020. <string notr="true">G</string>
  1021. </property>
  1022. </action>
  1023. <action name="actionMapSettings">
  1024. <property name="enabled">
  1025. <bool>false</bool>
  1026. </property>
  1027. <property name="text">
  1028. <string>General</string>
  1029. </property>
  1030. <property name="toolTip">
  1031. <string>Map title and description</string>
  1032. </property>
  1033. <property name="shortcut">
  1034. <string notr="true"/>
  1035. </property>
  1036. </action>
  1037. <action name="actionPlayers_settings">
  1038. <property name="enabled">
  1039. <bool>false</bool>
  1040. </property>
  1041. <property name="text">
  1042. <string>Players settings</string>
  1043. </property>
  1044. <property name="shortcut">
  1045. <string notr="true"/>
  1046. </property>
  1047. </action>
  1048. <action name="actionUndo">
  1049. <property name="enabled">
  1050. <bool>false</bool>
  1051. </property>
  1052. <property name="icon">
  1053. <iconset>
  1054. <normaloff>icons:edit-undo.png</normaloff>icons:edit-undo.png</iconset>
  1055. </property>
  1056. <property name="text">
  1057. <string>Undo</string>
  1058. </property>
  1059. <property name="iconText">
  1060. <string>Undo</string>
  1061. </property>
  1062. <property name="shortcut">
  1063. <string notr="true">Ctrl+Z</string>
  1064. </property>
  1065. <property name="shortcutVisibleInContextMenu">
  1066. <bool>true</bool>
  1067. </property>
  1068. </action>
  1069. <action name="actionRedo">
  1070. <property name="enabled">
  1071. <bool>false</bool>
  1072. </property>
  1073. <property name="icon">
  1074. <iconset>
  1075. <normaloff>icons:edit-redo.png</normaloff>icons:edit-redo.png</iconset>
  1076. </property>
  1077. <property name="text">
  1078. <string>Redo</string>
  1079. </property>
  1080. <property name="shortcut">
  1081. <string notr="true">Ctrl+Y</string>
  1082. </property>
  1083. <property name="shortcutVisibleInContextMenu">
  1084. <bool>true</bool>
  1085. </property>
  1086. </action>
  1087. <action name="actionErase">
  1088. <property name="enabled">
  1089. <bool>false</bool>
  1090. </property>
  1091. <property name="icon">
  1092. <iconset>
  1093. <normaloff>icons:edit-clear.png</normaloff>icons:edit-clear.png</iconset>
  1094. </property>
  1095. <property name="text">
  1096. <string>Erase</string>
  1097. </property>
  1098. <property name="shortcut">
  1099. <string notr="true">Del</string>
  1100. </property>
  1101. </action>
  1102. <action name="actionNeutral">
  1103. <property name="checkable">
  1104. <bool>true</bool>
  1105. </property>
  1106. <property name="text">
  1107. <string>Neutral</string>
  1108. </property>
  1109. <property name="shortcut">
  1110. <string notr="true">Ctrl+0</string>
  1111. </property>
  1112. </action>
  1113. <action name="actionValidate">
  1114. <property name="text">
  1115. <string>Validate</string>
  1116. </property>
  1117. <property name="shortcut">
  1118. <string notr="true"/>
  1119. </property>
  1120. </action>
  1121. <action name="actionUpdate_appearance">
  1122. <property name="enabled">
  1123. <bool>false</bool>
  1124. </property>
  1125. <property name="text">
  1126. <string>Update appearance</string>
  1127. </property>
  1128. <property name="shortcut">
  1129. <string notr="true"/>
  1130. </property>
  1131. </action>
  1132. <action name="actionRecreate_obstacles">
  1133. <property name="enabled">
  1134. <bool>false</bool>
  1135. </property>
  1136. <property name="text">
  1137. <string>Recreate obstacles</string>
  1138. </property>
  1139. <property name="shortcut">
  1140. <string notr="true"/>
  1141. </property>
  1142. </action>
  1143. <action name="actionPlayer_1">
  1144. <property name="checkable">
  1145. <bool>true</bool>
  1146. </property>
  1147. <property name="text">
  1148. <string>Player 1</string>
  1149. </property>
  1150. <property name="shortcut">
  1151. <string notr="true">Ctrl+1</string>
  1152. </property>
  1153. </action>
  1154. <action name="actionPlayer_2">
  1155. <property name="checkable">
  1156. <bool>true</bool>
  1157. </property>
  1158. <property name="text">
  1159. <string>Player 2</string>
  1160. </property>
  1161. <property name="shortcut">
  1162. <string notr="true">Ctrl+2</string>
  1163. </property>
  1164. </action>
  1165. <action name="actionPlayer_3">
  1166. <property name="checkable">
  1167. <bool>true</bool>
  1168. </property>
  1169. <property name="text">
  1170. <string>Player 3</string>
  1171. </property>
  1172. <property name="shortcut">
  1173. <string notr="true">Ctrl+3</string>
  1174. </property>
  1175. </action>
  1176. <action name="actionPlayer_4">
  1177. <property name="checkable">
  1178. <bool>true</bool>
  1179. </property>
  1180. <property name="text">
  1181. <string>Player 4</string>
  1182. </property>
  1183. <property name="shortcut">
  1184. <string notr="true">Ctrl+4</string>
  1185. </property>
  1186. </action>
  1187. <action name="actionPlayer_5">
  1188. <property name="checkable">
  1189. <bool>true</bool>
  1190. </property>
  1191. <property name="text">
  1192. <string>Player 5</string>
  1193. </property>
  1194. <property name="shortcut">
  1195. <string notr="true">Ctrl+5</string>
  1196. </property>
  1197. </action>
  1198. <action name="actionPlayer_6">
  1199. <property name="checkable">
  1200. <bool>true</bool>
  1201. </property>
  1202. <property name="text">
  1203. <string>Player 6</string>
  1204. </property>
  1205. <property name="shortcut">
  1206. <string notr="true">Ctrl+6</string>
  1207. </property>
  1208. </action>
  1209. <action name="actionPlayer_7">
  1210. <property name="checkable">
  1211. <bool>true</bool>
  1212. </property>
  1213. <property name="text">
  1214. <string>Player 7</string>
  1215. </property>
  1216. <property name="shortcut">
  1217. <string notr="true">Ctrl+7</string>
  1218. </property>
  1219. </action>
  1220. <action name="actionPlayer_8">
  1221. <property name="checkable">
  1222. <bool>true</bool>
  1223. </property>
  1224. <property name="text">
  1225. <string>Player 8</string>
  1226. </property>
  1227. <property name="shortcut">
  1228. <string notr="true">Ctrl+8</string>
  1229. </property>
  1230. </action>
  1231. </widget>
  1232. <customwidgets>
  1233. <customwidget>
  1234. <class>MapView</class>
  1235. <extends>QGraphicsView</extends>
  1236. <header>mapview.h</header>
  1237. </customwidget>
  1238. <customwidget>
  1239. <class>MinimapView</class>
  1240. <extends>QGraphicsView</extends>
  1241. <header>mapview.h</header>
  1242. </customwidget>
  1243. <customwidget>
  1244. <class>ObjectBrowser</class>
  1245. <extends>QTreeView</extends>
  1246. <header>objectbrowser.h</header>
  1247. </customwidget>
  1248. </customwidgets>
  1249. <resources/>
  1250. <connections/>
  1251. <slots>
  1252. <signal>enableUndo(bool)</signal>
  1253. <signal>enableRedo(bool)</signal>
  1254. </slots>
  1255. </ui>