mainwindow.ui 40 KB

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