mainwindow.ui 35 KB

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