templateeditor.ui 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>TemplateEditor</class>
  4. <widget class="QWidget" name="TemplateEditor">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1024</width>
  10. <height>720</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>VCMI Template Editor</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <property name="spacing">
  18. <number>0</number>
  19. </property>
  20. <property name="leftMargin">
  21. <number>0</number>
  22. </property>
  23. <property name="topMargin">
  24. <number>0</number>
  25. </property>
  26. <property name="rightMargin">
  27. <number>0</number>
  28. </property>
  29. <property name="bottomMargin">
  30. <number>0</number>
  31. </property>
  32. <item>
  33. <widget class="QMenuBar" name="menubar">
  34. <widget class="QMenu" name="menuFile">
  35. <property name="title">
  36. <string>File</string>
  37. </property>
  38. <addaction name="actionNew"/>
  39. <addaction name="actionOpen"/>
  40. <addaction name="actionSave"/>
  41. <addaction name="actionSave_as"/>
  42. </widget>
  43. <widget class="QMenu" name="menuEdit">
  44. <property name="title">
  45. <string>Edit</string>
  46. </property>
  47. <addaction name="actionAddZone"/>
  48. <addaction name="actionRemoveZone"/>
  49. <addaction name="actionAutoPosition"/>
  50. </widget>
  51. <widget class="QMenu" name="menuView">
  52. <property name="title">
  53. <string>View</string>
  54. </property>
  55. <addaction name="actionZoom_in"/>
  56. <addaction name="actionZoom_out"/>
  57. <addaction name="actionZoom_auto"/>
  58. <addaction name="actionZoom_reset"/>
  59. </widget>
  60. <addaction name="menuFile"/>
  61. <addaction name="menuEdit"/>
  62. <addaction name="menuView"/>
  63. </widget>
  64. </item>
  65. <item>
  66. <widget class="QToolBar" name="toolBar">
  67. <property name="windowTitle">
  68. <string>Toolbar</string>
  69. </property>
  70. <property name="bottomMargin" stdset="0">
  71. <number>0</number>
  72. </property>
  73. <property name="topMargin" stdset="0">
  74. <number>0</number>
  75. </property>
  76. <addaction name="actionNew"/>
  77. <addaction name="actionOpen"/>
  78. <addaction name="actionSave"/>
  79. <addaction name="separator"/>
  80. <addaction name="actionAddZone"/>
  81. <addaction name="actionRemoveZone"/>
  82. <addaction name="actionAutoPosition"/>
  83. <addaction name="separator"/>
  84. <addaction name="actionZoom_in"/>
  85. <addaction name="actionZoom_out"/>
  86. <addaction name="actionZoom_auto"/>
  87. <addaction name="actionZoom_reset"/>
  88. </widget>
  89. </item>
  90. <item>
  91. <layout class="QHBoxLayout" name="horizontalLayout_2">
  92. <property name="topMargin">
  93. <number>0</number>
  94. </property>
  95. <item>
  96. <spacer name="horizontalSpacer_8">
  97. <property name="orientation">
  98. <enum>Qt::Horizontal</enum>
  99. </property>
  100. <property name="sizeType">
  101. <enum>QSizePolicy::Minimum</enum>
  102. </property>
  103. <property name="sizeHint" stdset="0">
  104. <size>
  105. <width>10</width>
  106. <height>20</height>
  107. </size>
  108. </property>
  109. </spacer>
  110. </item>
  111. <item>
  112. <widget class="QLabel" name="labelTemplateSelection">
  113. <property name="text">
  114. <string>Selected Template:</string>
  115. </property>
  116. </widget>
  117. </item>
  118. <item>
  119. <widget class="QComboBox" name="comboBoxTemplateSelection">
  120. <property name="sizePolicy">
  121. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  122. <horstretch>0</horstretch>
  123. <verstretch>0</verstretch>
  124. </sizepolicy>
  125. </property>
  126. <property name="minimumSize">
  127. <size>
  128. <width>200</width>
  129. <height>0</height>
  130. </size>
  131. </property>
  132. </widget>
  133. </item>
  134. <item>
  135. <widget class="QPushButton" name="pushButtonAddSubTemplate">
  136. <property name="text">
  137. <string>Add</string>
  138. </property>
  139. </widget>
  140. </item>
  141. <item>
  142. <widget class="QPushButton" name="pushButtonRemoveSubTemplate">
  143. <property name="text">
  144. <string>Remove</string>
  145. </property>
  146. </widget>
  147. </item>
  148. <item>
  149. <widget class="QPushButton" name="pushButtonRenameSubTemplate">
  150. <property name="text">
  151. <string>Rename</string>
  152. </property>
  153. </widget>
  154. </item>
  155. <item>
  156. <spacer name="horizontalSpacer_7">
  157. <property name="orientation">
  158. <enum>Qt::Horizontal</enum>
  159. </property>
  160. <property name="sizeHint" stdset="0">
  161. <size>
  162. <width>40</width>
  163. <height>20</height>
  164. </size>
  165. </property>
  166. </spacer>
  167. </item>
  168. </layout>
  169. </item>
  170. <item>
  171. <layout class="QHBoxLayout" name="horizontalLayout">
  172. <item>
  173. <widget class="TemplateView" name="templateView">
  174. <property name="sizePolicy">
  175. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  176. <horstretch>12</horstretch>
  177. <verstretch>0</verstretch>
  178. </sizepolicy>
  179. </property>
  180. <property name="mouseTracking">
  181. <bool>true</bool>
  182. </property>
  183. <property name="sizeAdjustPolicy">
  184. <enum>QAbstractScrollArea::AdjustToContents</enum>
  185. </property>
  186. </widget>
  187. </item>
  188. <item>
  189. <widget class="QToolBox" name="toolBox">
  190. <property name="sizePolicy">
  191. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  192. <horstretch>10</horstretch>
  193. <verstretch>0</verstretch>
  194. </sizepolicy>
  195. </property>
  196. <property name="maximumSize">
  197. <size>
  198. <width>600</width>
  199. <height>16777215</height>
  200. </size>
  201. </property>
  202. <property name="currentIndex">
  203. <number>0</number>
  204. </property>
  205. <widget class="QWidget" name="pageGeneral">
  206. <property name="geometry">
  207. <rect>
  208. <x>0</x>
  209. <y>0</y>
  210. <width>441</width>
  211. <height>936</height>
  212. </rect>
  213. </property>
  214. <attribute name="label">
  215. <string>General</string>
  216. </attribute>
  217. <layout class="QVBoxLayout" name="verticalLayout_2">
  218. <item>
  219. <widget class="QGroupBox" name="groupBoxName">
  220. <property name="title">
  221. <string>Name</string>
  222. </property>
  223. <layout class="QVBoxLayout" name="verticalLayout_5">
  224. <item>
  225. <widget class="QLineEdit" name="lineEditName"/>
  226. </item>
  227. </layout>
  228. </widget>
  229. </item>
  230. <item>
  231. <widget class="QGroupBox" name="groupBoxDescription">
  232. <property name="title">
  233. <string>Description</string>
  234. </property>
  235. <layout class="QVBoxLayout" name="verticalLayout_6">
  236. <item>
  237. <widget class="QLineEdit" name="lineEditDescription"/>
  238. </item>
  239. </layout>
  240. </widget>
  241. </item>
  242. <item>
  243. <widget class="QGroupBox" name="groupBoxMinSize">
  244. <property name="title">
  245. <string>Min Size</string>
  246. </property>
  247. <layout class="QHBoxLayout" name="horizontalLayout_9">
  248. <item>
  249. <spacer name="horizontalSpacer">
  250. <property name="orientation">
  251. <enum>Qt::Horizontal</enum>
  252. </property>
  253. <property name="sizeHint" stdset="0">
  254. <size>
  255. <width>40</width>
  256. <height>20</height>
  257. </size>
  258. </property>
  259. </spacer>
  260. </item>
  261. <item>
  262. <widget class="QLabel" name="labelMinSizeX">
  263. <property name="text">
  264. <string>X</string>
  265. </property>
  266. </widget>
  267. </item>
  268. <item>
  269. <widget class="QSpinBox" name="spinBoxMinSizeX">
  270. <property name="minimum">
  271. <number>1</number>
  272. </property>
  273. <property name="maximum">
  274. <number>999</number>
  275. </property>
  276. </widget>
  277. </item>
  278. <item>
  279. <spacer name="horizontalSpacer_2">
  280. <property name="orientation">
  281. <enum>Qt::Horizontal</enum>
  282. </property>
  283. <property name="sizeHint" stdset="0">
  284. <size>
  285. <width>40</width>
  286. <height>20</height>
  287. </size>
  288. </property>
  289. </spacer>
  290. </item>
  291. <item>
  292. <widget class="QLabel" name="labelMinSizeY">
  293. <property name="text">
  294. <string>Y</string>
  295. </property>
  296. </widget>
  297. </item>
  298. <item>
  299. <widget class="QSpinBox" name="spinBoxMinSizeY">
  300. <property name="minimum">
  301. <number>1</number>
  302. </property>
  303. <property name="maximum">
  304. <number>999</number>
  305. </property>
  306. </widget>
  307. </item>
  308. <item>
  309. <spacer name="horizontalSpacer_3">
  310. <property name="orientation">
  311. <enum>Qt::Horizontal</enum>
  312. </property>
  313. <property name="sizeHint" stdset="0">
  314. <size>
  315. <width>40</width>
  316. <height>20</height>
  317. </size>
  318. </property>
  319. </spacer>
  320. </item>
  321. <item>
  322. <widget class="QLabel" name="labelMinSizeZ">
  323. <property name="text">
  324. <string>Z</string>
  325. </property>
  326. </widget>
  327. </item>
  328. <item>
  329. <widget class="QSpinBox" name="spinBoxMinSizeZ">
  330. <property name="minimum">
  331. <number>1</number>
  332. </property>
  333. <property name="maximum">
  334. <number>2</number>
  335. </property>
  336. </widget>
  337. </item>
  338. </layout>
  339. </widget>
  340. </item>
  341. <item>
  342. <widget class="QGroupBox" name="groupBoxMaxSize">
  343. <property name="title">
  344. <string>Max Size</string>
  345. </property>
  346. <layout class="QHBoxLayout" name="horizontalLayout_10">
  347. <item>
  348. <spacer name="horizontalSpacer_4">
  349. <property name="orientation">
  350. <enum>Qt::Horizontal</enum>
  351. </property>
  352. <property name="sizeHint" stdset="0">
  353. <size>
  354. <width>40</width>
  355. <height>20</height>
  356. </size>
  357. </property>
  358. </spacer>
  359. </item>
  360. <item>
  361. <widget class="QLabel" name="labelMaxSizeX">
  362. <property name="text">
  363. <string>X</string>
  364. </property>
  365. </widget>
  366. </item>
  367. <item>
  368. <widget class="QSpinBox" name="spinBoxMaxSizeX">
  369. <property name="minimum">
  370. <number>1</number>
  371. </property>
  372. <property name="maximum">
  373. <number>999</number>
  374. </property>
  375. </widget>
  376. </item>
  377. <item>
  378. <spacer name="horizontalSpacer_5">
  379. <property name="orientation">
  380. <enum>Qt::Horizontal</enum>
  381. </property>
  382. <property name="sizeHint" stdset="0">
  383. <size>
  384. <width>40</width>
  385. <height>20</height>
  386. </size>
  387. </property>
  388. </spacer>
  389. </item>
  390. <item>
  391. <widget class="QLabel" name="labelMaxSizeY">
  392. <property name="text">
  393. <string>Y</string>
  394. </property>
  395. </widget>
  396. </item>
  397. <item>
  398. <widget class="QSpinBox" name="spinBoxMaxSizeY">
  399. <property name="minimum">
  400. <number>1</number>
  401. </property>
  402. <property name="maximum">
  403. <number>999</number>
  404. </property>
  405. </widget>
  406. </item>
  407. <item>
  408. <spacer name="horizontalSpacer_6">
  409. <property name="orientation">
  410. <enum>Qt::Horizontal</enum>
  411. </property>
  412. <property name="sizeHint" stdset="0">
  413. <size>
  414. <width>40</width>
  415. <height>20</height>
  416. </size>
  417. </property>
  418. </spacer>
  419. </item>
  420. <item>
  421. <widget class="QLabel" name="labelMaxSizeZ">
  422. <property name="text">
  423. <string>Z</string>
  424. </property>
  425. </widget>
  426. </item>
  427. <item>
  428. <widget class="QSpinBox" name="spinBoxMaxSizeZ">
  429. <property name="minimum">
  430. <number>1</number>
  431. </property>
  432. <property name="maximum">
  433. <number>2</number>
  434. </property>
  435. </widget>
  436. </item>
  437. </layout>
  438. </widget>
  439. </item>
  440. <item>
  441. <widget class="QGroupBox" name="groupBoxPlayers">
  442. <property name="title">
  443. <string>Players</string>
  444. </property>
  445. <layout class="QVBoxLayout" name="verticalLayout_20">
  446. <item>
  447. <widget class="QLabel" name="labelPlayers">
  448. <property name="text">
  449. <string>Players</string>
  450. </property>
  451. </widget>
  452. </item>
  453. <item>
  454. <widget class="QTableWidget" name="tableWidgetPlayersPlayer"/>
  455. </item>
  456. <item>
  457. <widget class="QLabel" name="labelPlayersHuman">
  458. <property name="text">
  459. <string>Human</string>
  460. </property>
  461. </widget>
  462. </item>
  463. <item>
  464. <widget class="QTableWidget" name="tableWidgetPlayersHuman"/>
  465. </item>
  466. </layout>
  467. </widget>
  468. </item>
  469. <item>
  470. <widget class="QGroupBox" name="groupBoxAllowedWaterContent">
  471. <property name="title">
  472. <string>Allowed water content</string>
  473. </property>
  474. <layout class="QVBoxLayout" name="verticalLayout_19">
  475. <item>
  476. <widget class="QCheckBox" name="checkBoxAllowedWaterContentNone">
  477. <property name="text">
  478. <string>None</string>
  479. </property>
  480. </widget>
  481. </item>
  482. <item>
  483. <widget class="QCheckBox" name="checkBoxAllowedWaterContentNormal">
  484. <property name="text">
  485. <string>Normal</string>
  486. </property>
  487. </widget>
  488. </item>
  489. <item>
  490. <widget class="QCheckBox" name="checkBoxAllowedWaterContentIslands">
  491. <property name="text">
  492. <string>Islands</string>
  493. </property>
  494. </widget>
  495. </item>
  496. </layout>
  497. </widget>
  498. </item>
  499. <item>
  500. <widget class="QGroupBox" name="groupBoxEntities">
  501. <property name="title">
  502. <string>Entities</string>
  503. </property>
  504. <layout class="QVBoxLayout" name="verticalLayout_21">
  505. <item>
  506. <widget class="QPushButton" name="pushButtonEntitiesBannedSpells">
  507. <property name="text">
  508. <string>Banned Spells</string>
  509. </property>
  510. </widget>
  511. </item>
  512. <item>
  513. <widget class="QPushButton" name="pushButtonEntitiesBannedArtifacts">
  514. <property name="text">
  515. <string>Banned Artifacts</string>
  516. </property>
  517. </widget>
  518. </item>
  519. <item>
  520. <widget class="QPushButton" name="pushButtonEntitiesBannedSkills">
  521. <property name="text">
  522. <string>Banned Skills</string>
  523. </property>
  524. </widget>
  525. </item>
  526. <item>
  527. <widget class="QPushButton" name="pushButtonEntitiesBannedHeroes">
  528. <property name="text">
  529. <string>Banned Heroes</string>
  530. </property>
  531. </widget>
  532. </item>
  533. </layout>
  534. </widget>
  535. </item>
  536. <item>
  537. <spacer name="verticalSpacer">
  538. <property name="orientation">
  539. <enum>Qt::Vertical</enum>
  540. </property>
  541. <property name="sizeHint" stdset="0">
  542. <size>
  543. <width>20</width>
  544. <height>40</height>
  545. </size>
  546. </property>
  547. </spacer>
  548. </item>
  549. </layout>
  550. </widget>
  551. <widget class="QWidget" name="pageZone">
  552. <property name="geometry">
  553. <rect>
  554. <x>0</x>
  555. <y>-106</y>
  556. <width>441</width>
  557. <height>1796</height>
  558. </rect>
  559. </property>
  560. <attribute name="label">
  561. <string>Zone</string>
  562. </attribute>
  563. <layout class="QVBoxLayout" name="verticalLayout_3">
  564. <item>
  565. <widget class="QGroupBox" name="groupBoxVisualisation">
  566. <property name="title">
  567. <string>Visualisation</string>
  568. </property>
  569. <layout class="QVBoxLayout" name="verticalLayout_7">
  570. <item>
  571. <widget class="QLabel" name="labelZoneVisPos">
  572. <property name="text">
  573. <string>Position</string>
  574. </property>
  575. </widget>
  576. </item>
  577. <item>
  578. <layout class="QHBoxLayout" name="horizontalLayout_4">
  579. <property name="topMargin">
  580. <number>0</number>
  581. </property>
  582. <item>
  583. <widget class="QLabel" name="labelZoneVisPosX">
  584. <property name="text">
  585. <string>X</string>
  586. </property>
  587. </widget>
  588. </item>
  589. <item>
  590. <widget class="QSpinBox" name="spinBoxZoneVisPosX">
  591. <property name="minimum">
  592. <number>-9999</number>
  593. </property>
  594. <property name="maximum">
  595. <number>9999</number>
  596. </property>
  597. </widget>
  598. </item>
  599. <item>
  600. <spacer name="horizontalSpacer_13">
  601. <property name="orientation">
  602. <enum>Qt::Horizontal</enum>
  603. </property>
  604. <property name="sizeHint" stdset="0">
  605. <size>
  606. <width>40</width>
  607. <height>20</height>
  608. </size>
  609. </property>
  610. </spacer>
  611. </item>
  612. <item>
  613. <widget class="QLabel" name="labelZoneVisPosY">
  614. <property name="text">
  615. <string>Y</string>
  616. </property>
  617. </widget>
  618. </item>
  619. <item>
  620. <widget class="QSpinBox" name="spinBoxZoneVisPosY">
  621. <property name="minimum">
  622. <number>-9999</number>
  623. </property>
  624. <property name="maximum">
  625. <number>9999</number>
  626. </property>
  627. </widget>
  628. </item>
  629. <item>
  630. <spacer name="horizontalSpacer_14">
  631. <property name="orientation">
  632. <enum>Qt::Horizontal</enum>
  633. </property>
  634. <property name="sizeHint" stdset="0">
  635. <size>
  636. <width>40</width>
  637. <height>20</height>
  638. </size>
  639. </property>
  640. </spacer>
  641. </item>
  642. <item>
  643. <widget class="QLabel" name="labelZonePosVisSize">
  644. <property name="text">
  645. <string>Size</string>
  646. </property>
  647. </widget>
  648. </item>
  649. <item>
  650. <widget class="QDoubleSpinBox" name="doubleSpinBoxZoneVisSize">
  651. <property name="decimals">
  652. <number>1</number>
  653. </property>
  654. <property name="minimum">
  655. <double>0.100000000000000</double>
  656. </property>
  657. <property name="maximum">
  658. <double>9.900000000000000</double>
  659. </property>
  660. <property name="singleStep">
  661. <double>0.100000000000000</double>
  662. </property>
  663. </widget>
  664. </item>
  665. </layout>
  666. </item>
  667. </layout>
  668. </widget>
  669. </item>
  670. <item>
  671. <widget class="QGroupBox" name="groupBoxId">
  672. <property name="title">
  673. <string>ID</string>
  674. </property>
  675. <layout class="QVBoxLayout" name="verticalLayout_8">
  676. <item>
  677. <widget class="QSpinBox" name="spinBoxZoneId">
  678. <property name="maximum">
  679. <number>999</number>
  680. </property>
  681. </widget>
  682. </item>
  683. </layout>
  684. </widget>
  685. </item>
  686. <item>
  687. <widget class="QGroupBox" name="groupBoxType">
  688. <property name="title">
  689. <string>Type</string>
  690. </property>
  691. <layout class="QVBoxLayout" name="verticalLayout_9">
  692. <item>
  693. <widget class="QComboBox" name="comboBoxZoneType"/>
  694. </item>
  695. </layout>
  696. </widget>
  697. </item>
  698. <item>
  699. <widget class="QGroupBox" name="groupBoxSize">
  700. <property name="title">
  701. <string>Size</string>
  702. </property>
  703. <layout class="QVBoxLayout" name="verticalLayout_10">
  704. <item>
  705. <widget class="QSpinBox" name="spinBoxZoneSize">
  706. <property name="maximum">
  707. <number>99999</number>
  708. </property>
  709. </widget>
  710. </item>
  711. </layout>
  712. </widget>
  713. </item>
  714. <item>
  715. <widget class="QGroupBox" name="groupBoxOwner">
  716. <property name="title">
  717. <string>Owner</string>
  718. </property>
  719. <layout class="QVBoxLayout" name="verticalLayout_11">
  720. <item>
  721. <widget class="QComboBox" name="comboBoxZoneOwner"/>
  722. </item>
  723. </layout>
  724. </widget>
  725. </item>
  726. <item>
  727. <widget class="QGroupBox" name="groupBoxForcedLevel">
  728. <property name="title">
  729. <string>Forced level</string>
  730. </property>
  731. <layout class="QVBoxLayout" name="verticalLayout_22">
  732. <item>
  733. <widget class="QComboBox" name="comboBoxForcedLevel"/>
  734. </item>
  735. </layout>
  736. </widget>
  737. </item>
  738. <item>
  739. <widget class="QGroupBox" name="groupBoxZoneLink">
  740. <property name="title">
  741. <string>Zone link</string>
  742. </property>
  743. <layout class="QGridLayout" name="gridLayout">
  744. <item row="3" column="0">
  745. <widget class="QCheckBox" name="checkBoxZoneLinkMines">
  746. <property name="text">
  747. <string>Mines</string>
  748. </property>
  749. </widget>
  750. </item>
  751. <item row="6" column="0">
  752. <widget class="QCheckBox" name="checkBoxZoneLinkCustomObjects">
  753. <property name="text">
  754. <string>Custom objects</string>
  755. </property>
  756. </widget>
  757. </item>
  758. <item row="0" column="0">
  759. <widget class="QCheckBox" name="checkBoxZoneLinkTowns">
  760. <property name="text">
  761. <string>Towns</string>
  762. </property>
  763. </widget>
  764. </item>
  765. <item row="4" column="0">
  766. <widget class="QCheckBox" name="checkBoxZoneLinkTerrain">
  767. <property name="text">
  768. <string>Terrain</string>
  769. </property>
  770. </widget>
  771. </item>
  772. <item row="3" column="1">
  773. <widget class="QSpinBox" name="spinBoxZoneLinkMines">
  774. <property name="minimum">
  775. <number>0</number>
  776. </property>
  777. <property name="maximum">
  778. <number>999</number>
  779. </property>
  780. </widget>
  781. </item>
  782. <item row="5" column="0">
  783. <widget class="QCheckBox" name="checkBoxZoneLinkTreasure">
  784. <property name="text">
  785. <string>Treasure</string>
  786. </property>
  787. </widget>
  788. </item>
  789. <item row="4" column="1">
  790. <widget class="QSpinBox" name="spinBoxZoneLinkTerrain">
  791. <property name="minimum">
  792. <number>0</number>
  793. </property>
  794. <property name="maximum">
  795. <number>999</number>
  796. </property>
  797. </widget>
  798. </item>
  799. <item row="5" column="1">
  800. <widget class="QSpinBox" name="spinBoxZoneLinkTreasure">
  801. <property name="minimum">
  802. <number>0</number>
  803. </property>
  804. <property name="maximum">
  805. <number>999</number>
  806. </property>
  807. </widget>
  808. </item>
  809. <item row="0" column="1">
  810. <widget class="QSpinBox" name="spinBoxZoneLinkTowns">
  811. <property name="minimum">
  812. <number>0</number>
  813. </property>
  814. <property name="maximum">
  815. <number>999</number>
  816. </property>
  817. </widget>
  818. </item>
  819. <item row="6" column="1">
  820. <widget class="QSpinBox" name="spinBoxZoneLinkCustomObjects">
  821. <property name="minimum">
  822. <number>0</number>
  823. </property>
  824. <property name="maximum">
  825. <number>999</number>
  826. </property>
  827. </widget>
  828. </item>
  829. <item row="0" column="2">
  830. <spacer name="horizontalSpacer_19">
  831. <property name="orientation">
  832. <enum>Qt::Horizontal</enum>
  833. </property>
  834. <property name="sizeHint" stdset="0">
  835. <size>
  836. <width>40</width>
  837. <height>20</height>
  838. </size>
  839. </property>
  840. </spacer>
  841. </item>
  842. </layout>
  843. </widget>
  844. </item>
  845. <item>
  846. <widget class="QGroupBox" name="groupBoxTownInfo">
  847. <property name="title">
  848. <string>Town info</string>
  849. </property>
  850. <layout class="QVBoxLayout" name="verticalLayout_12">
  851. <item>
  852. <widget class="QLabel" name="labelTownCount">
  853. <property name="text">
  854. <string>Town count</string>
  855. </property>
  856. </widget>
  857. </item>
  858. <item>
  859. <layout class="QHBoxLayout" name="horizontalLayout_5">
  860. <property name="topMargin">
  861. <number>0</number>
  862. </property>
  863. <item>
  864. <widget class="QLabel" name="labelTownCountPlayer">
  865. <property name="text">
  866. <string>Player</string>
  867. </property>
  868. </widget>
  869. </item>
  870. <item>
  871. <widget class="QSpinBox" name="spinBoxTownCountPlayer"/>
  872. </item>
  873. <item>
  874. <spacer name="horizontalSpacer_9">
  875. <property name="orientation">
  876. <enum>Qt::Horizontal</enum>
  877. </property>
  878. <property name="sizeType">
  879. <enum>QSizePolicy::Fixed</enum>
  880. </property>
  881. <property name="sizeHint" stdset="0">
  882. <size>
  883. <width>20</width>
  884. <height>20</height>
  885. </size>
  886. </property>
  887. </spacer>
  888. </item>
  889. <item>
  890. <widget class="QLabel" name="labelTownCountNeutral">
  891. <property name="text">
  892. <string>Neutral</string>
  893. </property>
  894. </widget>
  895. </item>
  896. <item>
  897. <widget class="QSpinBox" name="spinBoxTownCountNeutral"/>
  898. </item>
  899. <item>
  900. <spacer name="horizontalSpacer_15">
  901. <property name="orientation">
  902. <enum>Qt::Horizontal</enum>
  903. </property>
  904. <property name="sizeHint" stdset="0">
  905. <size>
  906. <width>40</width>
  907. <height>20</height>
  908. </size>
  909. </property>
  910. </spacer>
  911. </item>
  912. </layout>
  913. </item>
  914. <item>
  915. <widget class="QLabel" name="labelCastleCount">
  916. <property name="text">
  917. <string>Castle count</string>
  918. </property>
  919. </widget>
  920. </item>
  921. <item>
  922. <layout class="QHBoxLayout" name="horizontalLayout_6">
  923. <property name="topMargin">
  924. <number>0</number>
  925. </property>
  926. <item>
  927. <widget class="QLabel" name="labelCastleCountPlayer">
  928. <property name="text">
  929. <string>Player</string>
  930. </property>
  931. </widget>
  932. </item>
  933. <item>
  934. <widget class="QSpinBox" name="spinBoxCastleCountPlayer"/>
  935. </item>
  936. <item>
  937. <spacer name="horizontalSpacer_10">
  938. <property name="orientation">
  939. <enum>Qt::Horizontal</enum>
  940. </property>
  941. <property name="sizeType">
  942. <enum>QSizePolicy::Fixed</enum>
  943. </property>
  944. <property name="sizeHint" stdset="0">
  945. <size>
  946. <width>20</width>
  947. <height>20</height>
  948. </size>
  949. </property>
  950. </spacer>
  951. </item>
  952. <item>
  953. <widget class="QLabel" name="labelCastleCountNeutral">
  954. <property name="text">
  955. <string>Neutral</string>
  956. </property>
  957. </widget>
  958. </item>
  959. <item>
  960. <widget class="QSpinBox" name="spinBoxCastleCountNeutral"/>
  961. </item>
  962. <item>
  963. <spacer name="horizontalSpacer_16">
  964. <property name="orientation">
  965. <enum>Qt::Horizontal</enum>
  966. </property>
  967. <property name="sizeHint" stdset="0">
  968. <size>
  969. <width>40</width>
  970. <height>20</height>
  971. </size>
  972. </property>
  973. </spacer>
  974. </item>
  975. </layout>
  976. </item>
  977. <item>
  978. <widget class="QLabel" name="labelTownDensity">
  979. <property name="text">
  980. <string>Town density</string>
  981. </property>
  982. </widget>
  983. </item>
  984. <item>
  985. <layout class="QHBoxLayout" name="horizontalLayout_7">
  986. <property name="topMargin">
  987. <number>0</number>
  988. </property>
  989. <item>
  990. <widget class="QLabel" name="labelTownDensityPlayer">
  991. <property name="text">
  992. <string>Player</string>
  993. </property>
  994. </widget>
  995. </item>
  996. <item>
  997. <widget class="QSpinBox" name="spinBoxTownDensityPlayer"/>
  998. </item>
  999. <item>
  1000. <spacer name="horizontalSpacer_11">
  1001. <property name="orientation">
  1002. <enum>Qt::Horizontal</enum>
  1003. </property>
  1004. <property name="sizeType">
  1005. <enum>QSizePolicy::Fixed</enum>
  1006. </property>
  1007. <property name="sizeHint" stdset="0">
  1008. <size>
  1009. <width>20</width>
  1010. <height>20</height>
  1011. </size>
  1012. </property>
  1013. </spacer>
  1014. </item>
  1015. <item>
  1016. <widget class="QLabel" name="labelTownDensityNeutral">
  1017. <property name="text">
  1018. <string>Neutral</string>
  1019. </property>
  1020. </widget>
  1021. </item>
  1022. <item>
  1023. <widget class="QSpinBox" name="spinBoxTownDensityNeutral"/>
  1024. </item>
  1025. <item>
  1026. <spacer name="horizontalSpacer_17">
  1027. <property name="orientation">
  1028. <enum>Qt::Horizontal</enum>
  1029. </property>
  1030. <property name="sizeHint" stdset="0">
  1031. <size>
  1032. <width>40</width>
  1033. <height>20</height>
  1034. </size>
  1035. </property>
  1036. </spacer>
  1037. </item>
  1038. </layout>
  1039. </item>
  1040. <item>
  1041. <widget class="QLabel" name="labelCastleDensity">
  1042. <property name="text">
  1043. <string>Castle density</string>
  1044. </property>
  1045. </widget>
  1046. </item>
  1047. <item>
  1048. <layout class="QHBoxLayout" name="horizontalLayout_8">
  1049. <property name="topMargin">
  1050. <number>0</number>
  1051. </property>
  1052. <item>
  1053. <widget class="QLabel" name="labelCastleDensityPlayer">
  1054. <property name="text">
  1055. <string>Player</string>
  1056. </property>
  1057. </widget>
  1058. </item>
  1059. <item>
  1060. <widget class="QSpinBox" name="spinBoxCastleDensityPlayer"/>
  1061. </item>
  1062. <item>
  1063. <spacer name="horizontalSpacer_12">
  1064. <property name="orientation">
  1065. <enum>Qt::Horizontal</enum>
  1066. </property>
  1067. <property name="sizeType">
  1068. <enum>QSizePolicy::Fixed</enum>
  1069. </property>
  1070. <property name="sizeHint" stdset="0">
  1071. <size>
  1072. <width>20</width>
  1073. <height>20</height>
  1074. </size>
  1075. </property>
  1076. </spacer>
  1077. </item>
  1078. <item>
  1079. <widget class="QLabel" name="labelCastleDensityNeutral">
  1080. <property name="text">
  1081. <string>Neutral</string>
  1082. </property>
  1083. </widget>
  1084. </item>
  1085. <item>
  1086. <widget class="QSpinBox" name="spinBoxCastleDensityNeutral"/>
  1087. </item>
  1088. <item>
  1089. <spacer name="horizontalSpacer_18">
  1090. <property name="orientation">
  1091. <enum>Qt::Horizontal</enum>
  1092. </property>
  1093. <property name="sizeHint" stdset="0">
  1094. <size>
  1095. <width>40</width>
  1096. <height>20</height>
  1097. </size>
  1098. </property>
  1099. </spacer>
  1100. </item>
  1101. </layout>
  1102. </item>
  1103. </layout>
  1104. </widget>
  1105. </item>
  1106. <item>
  1107. <widget class="QGroupBox" name="groupBoxTerrain">
  1108. <property name="title">
  1109. <string>Terrain</string>
  1110. </property>
  1111. <layout class="QVBoxLayout" name="verticalLayout_13">
  1112. <item>
  1113. <widget class="QCheckBox" name="checkBoxMatchTerrainToTown">
  1114. <property name="text">
  1115. <string>Match terrain to town</string>
  1116. </property>
  1117. </widget>
  1118. </item>
  1119. <item>
  1120. <widget class="QPushButton" name="pushButtonOpenTerrainTypes">
  1121. <property name="text">
  1122. <string>Terrain types</string>
  1123. </property>
  1124. </widget>
  1125. </item>
  1126. <item>
  1127. <widget class="QPushButton" name="pushButtonOpenBannedTerrainTypes">
  1128. <property name="text">
  1129. <string>Banned terrain types</string>
  1130. </property>
  1131. </widget>
  1132. </item>
  1133. </layout>
  1134. </widget>
  1135. </item>
  1136. <item>
  1137. <widget class="QGroupBox" name="groupBoxTowns">
  1138. <property name="title">
  1139. <string>Towns</string>
  1140. </property>
  1141. <layout class="QVBoxLayout" name="verticalLayout_14">
  1142. <item>
  1143. <widget class="QCheckBox" name="checkBoxTownsAreSameType">
  1144. <property name="text">
  1145. <string>Towns are same type</string>
  1146. </property>
  1147. </widget>
  1148. </item>
  1149. <item>
  1150. <widget class="QPushButton" name="pushButtonAllowedTowns">
  1151. <property name="text">
  1152. <string>Allowed towns</string>
  1153. </property>
  1154. </widget>
  1155. </item>
  1156. <item>
  1157. <widget class="QPushButton" name="pushButtonBannedTowns">
  1158. <property name="text">
  1159. <string>Banned towns</string>
  1160. </property>
  1161. </widget>
  1162. </item>
  1163. <item>
  1164. <widget class="QPushButton" name="pushButtonTownHints">
  1165. <property name="text">
  1166. <string>Town hints</string>
  1167. </property>
  1168. </widget>
  1169. </item>
  1170. </layout>
  1171. </widget>
  1172. </item>
  1173. <item>
  1174. <widget class="QGroupBox" name="groupBoxMonsters">
  1175. <property name="title">
  1176. <string>Monsters</string>
  1177. </property>
  1178. <layout class="QVBoxLayout" name="verticalLayout_15">
  1179. <item>
  1180. <widget class="QPushButton" name="pushButtonAllowedMonsters">
  1181. <property name="text">
  1182. <string>Allowed monsters</string>
  1183. </property>
  1184. </widget>
  1185. </item>
  1186. <item>
  1187. <widget class="QPushButton" name="pushButtonBannedMonsters">
  1188. <property name="text">
  1189. <string>Banned monsters</string>
  1190. </property>
  1191. </widget>
  1192. </item>
  1193. <item>
  1194. <layout class="QHBoxLayout" name="horizontalLayout_11">
  1195. <property name="topMargin">
  1196. <number>0</number>
  1197. </property>
  1198. <item>
  1199. <widget class="QLabel" name="labelMonsterStrength">
  1200. <property name="sizePolicy">
  1201. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  1202. <horstretch>0</horstretch>
  1203. <verstretch>0</verstretch>
  1204. </sizepolicy>
  1205. </property>
  1206. <property name="text">
  1207. <string>Strength</string>
  1208. </property>
  1209. </widget>
  1210. </item>
  1211. <item>
  1212. <widget class="QComboBox" name="comboBoxMonsterStrength">
  1213. <property name="sizePolicy">
  1214. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
  1215. <horstretch>0</horstretch>
  1216. <verstretch>0</verstretch>
  1217. </sizepolicy>
  1218. </property>
  1219. </widget>
  1220. </item>
  1221. </layout>
  1222. </item>
  1223. </layout>
  1224. </widget>
  1225. </item>
  1226. <item>
  1227. <widget class="QGroupBox" name="groupBoxTreasure">
  1228. <property name="title">
  1229. <string>Treasure</string>
  1230. </property>
  1231. <layout class="QVBoxLayout" name="verticalLayout_16">
  1232. <item>
  1233. <widget class="QPushButton" name="pushButtonTreasure">
  1234. <property name="text">
  1235. <string>Treasure</string>
  1236. </property>
  1237. </widget>
  1238. </item>
  1239. </layout>
  1240. </widget>
  1241. </item>
  1242. <item>
  1243. <widget class="QGroupBox" name="groupBoxMines">
  1244. <property name="title">
  1245. <string>Mines</string>
  1246. </property>
  1247. <layout class="QVBoxLayout" name="verticalLayout_17">
  1248. <item>
  1249. <widget class="QPushButton" name="pushButtonMines">
  1250. <property name="text">
  1251. <string>Mines</string>
  1252. </property>
  1253. </widget>
  1254. </item>
  1255. </layout>
  1256. </widget>
  1257. </item>
  1258. <item>
  1259. <widget class="QGroupBox" name="groupBoxObjects">
  1260. <property name="title">
  1261. <string>Objects</string>
  1262. </property>
  1263. <layout class="QVBoxLayout" name="verticalLayout_18">
  1264. <item>
  1265. <widget class="QPushButton" name="pushButtonCustomObjects">
  1266. <property name="text">
  1267. <string>Custom objects</string>
  1268. </property>
  1269. </widget>
  1270. </item>
  1271. </layout>
  1272. </widget>
  1273. </item>
  1274. <item>
  1275. <spacer name="verticalSpacer_2">
  1276. <property name="orientation">
  1277. <enum>Qt::Vertical</enum>
  1278. </property>
  1279. <property name="sizeHint" stdset="0">
  1280. <size>
  1281. <width>20</width>
  1282. <height>526</height>
  1283. </size>
  1284. </property>
  1285. </spacer>
  1286. </item>
  1287. </layout>
  1288. </widget>
  1289. <widget class="QWidget" name="pageConnections">
  1290. <property name="geometry">
  1291. <rect>
  1292. <x>0</x>
  1293. <y>0</y>
  1294. <width>462</width>
  1295. <height>491</height>
  1296. </rect>
  1297. </property>
  1298. <attribute name="label">
  1299. <string>Connections</string>
  1300. </attribute>
  1301. <layout class="QVBoxLayout" name="verticalLayout_4">
  1302. <item>
  1303. <widget class="QTableWidget" name="tableWidgetConnections"/>
  1304. </item>
  1305. <item>
  1306. <layout class="QHBoxLayout" name="horizontalLayout_3">
  1307. <property name="topMargin">
  1308. <number>0</number>
  1309. </property>
  1310. <item>
  1311. <widget class="QPushButton" name="pushButtonConnectionAdd">
  1312. <property name="sizePolicy">
  1313. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  1314. <horstretch>0</horstretch>
  1315. <verstretch>0</verstretch>
  1316. </sizepolicy>
  1317. </property>
  1318. <property name="minimumSize">
  1319. <size>
  1320. <width>1</width>
  1321. <height>0</height>
  1322. </size>
  1323. </property>
  1324. <property name="text">
  1325. <string>Add</string>
  1326. </property>
  1327. </widget>
  1328. </item>
  1329. </layout>
  1330. </item>
  1331. </layout>
  1332. </widget>
  1333. </widget>
  1334. </item>
  1335. </layout>
  1336. </item>
  1337. <item>
  1338. <widget class="QStatusBar" name="statusbar"/>
  1339. </item>
  1340. </layout>
  1341. <action name="actionOpen">
  1342. <property name="text">
  1343. <string>Open</string>
  1344. </property>
  1345. <property name="shortcut">
  1346. <string notr="true">Ctrl+O</string>
  1347. </property>
  1348. </action>
  1349. <action name="actionSave">
  1350. <property name="text">
  1351. <string>Save</string>
  1352. </property>
  1353. <property name="shortcut">
  1354. <string notr="true">Ctrl+S</string>
  1355. </property>
  1356. </action>
  1357. <action name="actionNew">
  1358. <property name="text">
  1359. <string>New</string>
  1360. </property>
  1361. <property name="shortcut">
  1362. <string notr="true">Ctrl+N</string>
  1363. </property>
  1364. </action>
  1365. <action name="actionSave_as">
  1366. <property name="text">
  1367. <string>Save as...</string>
  1368. </property>
  1369. <property name="shortcut">
  1370. <string>Ctrl+Shift+S</string>
  1371. </property>
  1372. </action>
  1373. <action name="actionAddZone">
  1374. <property name="text">
  1375. <string>Add zone</string>
  1376. </property>
  1377. <property name="shortcut">
  1378. <string>Z</string>
  1379. </property>
  1380. </action>
  1381. <action name="actionRemoveZone">
  1382. <property name="enabled">
  1383. <bool>false</bool>
  1384. </property>
  1385. <property name="text">
  1386. <string>Remove zone</string>
  1387. </property>
  1388. <property name="shortcut">
  1389. <string>Del</string>
  1390. </property>
  1391. </action>
  1392. <action name="actionAutoPosition">
  1393. <property name="text">
  1394. <string>Auto position</string>
  1395. </property>
  1396. <property name="shortcut">
  1397. <string>Ctrl+P</string>
  1398. </property>
  1399. </action>
  1400. <action name="actionZoom_in">
  1401. <property name="text">
  1402. <string>Zoom in</string>
  1403. </property>
  1404. <property name="shortcut">
  1405. <string>Ctrl++</string>
  1406. </property>
  1407. </action>
  1408. <action name="actionZoom_out">
  1409. <property name="text">
  1410. <string>Zoom out</string>
  1411. </property>
  1412. <property name="shortcut">
  1413. <string>Ctrl+-</string>
  1414. </property>
  1415. </action>
  1416. <action name="actionZoom_auto">
  1417. <property name="text">
  1418. <string>Zoom auto</string>
  1419. </property>
  1420. <property name="shortcut">
  1421. <string>Ctrl+Shift+:</string>
  1422. </property>
  1423. </action>
  1424. <action name="actionZoom_reset">
  1425. <property name="text">
  1426. <string>Zoom reset</string>
  1427. </property>
  1428. <property name="shortcut">
  1429. <string>Ctrl+Shift+=</string>
  1430. </property>
  1431. </action>
  1432. </widget>
  1433. <customwidgets>
  1434. <customwidget>
  1435. <class>TemplateView</class>
  1436. <extends>QGraphicsView</extends>
  1437. <header>templateeditor/templateview.h</header>
  1438. </customwidget>
  1439. </customwidgets>
  1440. <resources/>
  1441. <connections/>
  1442. </ui>