mainwindow.ui 38 KB

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