mainwindow.ui 36 KB

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