mainwindow.ui 35 KB

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