mainwindow.ui 39 KB

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