mainwindow.ui 35 KB

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