mainwindow.ui 40 KB

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