templateeditor.ui 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430
  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>-316</y>
  210. <width>449</width>
  211. <height>830</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>0</y>
  556. <width>449</width>
  557. <height>1494</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="groupBoxZoneLink">
  728. <property name="title">
  729. <string>Zone link</string>
  730. </property>
  731. <layout class="QGridLayout" name="gridLayout">
  732. <item row="3" column="0">
  733. <widget class="QCheckBox" name="checkBoxZoneLinkMines">
  734. <property name="text">
  735. <string>Mines</string>
  736. </property>
  737. </widget>
  738. </item>
  739. <item row="6" column="0">
  740. <widget class="QCheckBox" name="checkBoxZoneLinkCustomObjects">
  741. <property name="text">
  742. <string>Custom objects</string>
  743. </property>
  744. </widget>
  745. </item>
  746. <item row="0" column="0">
  747. <widget class="QCheckBox" name="checkBoxZoneLinkTowns">
  748. <property name="text">
  749. <string>Towns</string>
  750. </property>
  751. </widget>
  752. </item>
  753. <item row="4" column="0">
  754. <widget class="QCheckBox" name="checkBoxZoneLinkTerrain">
  755. <property name="text">
  756. <string>Terrain</string>
  757. </property>
  758. </widget>
  759. </item>
  760. <item row="3" column="1">
  761. <widget class="QSpinBox" name="spinBoxZoneLinkMines">
  762. <property name="minimum">
  763. <number>0</number>
  764. </property>
  765. <property name="maximum">
  766. <number>999</number>
  767. </property>
  768. </widget>
  769. </item>
  770. <item row="5" column="0">
  771. <widget class="QCheckBox" name="checkBoxZoneLinkTreasure">
  772. <property name="text">
  773. <string>Treasure</string>
  774. </property>
  775. </widget>
  776. </item>
  777. <item row="4" column="1">
  778. <widget class="QSpinBox" name="spinBoxZoneLinkTerrain">
  779. <property name="minimum">
  780. <number>0</number>
  781. </property>
  782. <property name="maximum">
  783. <number>999</number>
  784. </property>
  785. </widget>
  786. </item>
  787. <item row="5" column="1">
  788. <widget class="QSpinBox" name="spinBoxZoneLinkTreasure">
  789. <property name="minimum">
  790. <number>0</number>
  791. </property>
  792. <property name="maximum">
  793. <number>999</number>
  794. </property>
  795. </widget>
  796. </item>
  797. <item row="0" column="1">
  798. <widget class="QSpinBox" name="spinBoxZoneLinkTowns">
  799. <property name="minimum">
  800. <number>0</number>
  801. </property>
  802. <property name="maximum">
  803. <number>999</number>
  804. </property>
  805. </widget>
  806. </item>
  807. <item row="6" column="1">
  808. <widget class="QSpinBox" name="spinBoxZoneLinkCustomObjects">
  809. <property name="minimum">
  810. <number>0</number>
  811. </property>
  812. <property name="maximum">
  813. <number>999</number>
  814. </property>
  815. </widget>
  816. </item>
  817. <item row="0" column="2">
  818. <spacer name="horizontalSpacer_19">
  819. <property name="orientation">
  820. <enum>Qt::Horizontal</enum>
  821. </property>
  822. <property name="sizeHint" stdset="0">
  823. <size>
  824. <width>40</width>
  825. <height>20</height>
  826. </size>
  827. </property>
  828. </spacer>
  829. </item>
  830. </layout>
  831. </widget>
  832. </item>
  833. <item>
  834. <widget class="QGroupBox" name="groupBoxTownInfo">
  835. <property name="title">
  836. <string>Town info</string>
  837. </property>
  838. <layout class="QVBoxLayout" name="verticalLayout_12">
  839. <item>
  840. <widget class="QLabel" name="labelTownCount">
  841. <property name="text">
  842. <string>Town count</string>
  843. </property>
  844. </widget>
  845. </item>
  846. <item>
  847. <layout class="QHBoxLayout" name="horizontalLayout_5">
  848. <property name="topMargin">
  849. <number>0</number>
  850. </property>
  851. <item>
  852. <widget class="QLabel" name="labelTownCountPlayer">
  853. <property name="text">
  854. <string>Player</string>
  855. </property>
  856. </widget>
  857. </item>
  858. <item>
  859. <widget class="QSpinBox" name="spinBoxTownCountPlayer"/>
  860. </item>
  861. <item>
  862. <spacer name="horizontalSpacer_9">
  863. <property name="orientation">
  864. <enum>Qt::Horizontal</enum>
  865. </property>
  866. <property name="sizeType">
  867. <enum>QSizePolicy::Fixed</enum>
  868. </property>
  869. <property name="sizeHint" stdset="0">
  870. <size>
  871. <width>20</width>
  872. <height>20</height>
  873. </size>
  874. </property>
  875. </spacer>
  876. </item>
  877. <item>
  878. <widget class="QLabel" name="labelTownCountNeutral">
  879. <property name="text">
  880. <string>Neutral</string>
  881. </property>
  882. </widget>
  883. </item>
  884. <item>
  885. <widget class="QSpinBox" name="spinBoxTownCountNeutral"/>
  886. </item>
  887. <item>
  888. <spacer name="horizontalSpacer_15">
  889. <property name="orientation">
  890. <enum>Qt::Horizontal</enum>
  891. </property>
  892. <property name="sizeHint" stdset="0">
  893. <size>
  894. <width>40</width>
  895. <height>20</height>
  896. </size>
  897. </property>
  898. </spacer>
  899. </item>
  900. </layout>
  901. </item>
  902. <item>
  903. <widget class="QLabel" name="labelCastleCount">
  904. <property name="text">
  905. <string>Castle count</string>
  906. </property>
  907. </widget>
  908. </item>
  909. <item>
  910. <layout class="QHBoxLayout" name="horizontalLayout_6">
  911. <property name="topMargin">
  912. <number>0</number>
  913. </property>
  914. <item>
  915. <widget class="QLabel" name="labelCastleCountPlayer">
  916. <property name="text">
  917. <string>Player</string>
  918. </property>
  919. </widget>
  920. </item>
  921. <item>
  922. <widget class="QSpinBox" name="spinBoxCastleCountPlayer"/>
  923. </item>
  924. <item>
  925. <spacer name="horizontalSpacer_10">
  926. <property name="orientation">
  927. <enum>Qt::Horizontal</enum>
  928. </property>
  929. <property name="sizeType">
  930. <enum>QSizePolicy::Fixed</enum>
  931. </property>
  932. <property name="sizeHint" stdset="0">
  933. <size>
  934. <width>20</width>
  935. <height>20</height>
  936. </size>
  937. </property>
  938. </spacer>
  939. </item>
  940. <item>
  941. <widget class="QLabel" name="labelCastleCountNeutral">
  942. <property name="text">
  943. <string>Neutral</string>
  944. </property>
  945. </widget>
  946. </item>
  947. <item>
  948. <widget class="QSpinBox" name="spinBoxCastleCountNeutral"/>
  949. </item>
  950. <item>
  951. <spacer name="horizontalSpacer_16">
  952. <property name="orientation">
  953. <enum>Qt::Horizontal</enum>
  954. </property>
  955. <property name="sizeHint" stdset="0">
  956. <size>
  957. <width>40</width>
  958. <height>20</height>
  959. </size>
  960. </property>
  961. </spacer>
  962. </item>
  963. </layout>
  964. </item>
  965. <item>
  966. <widget class="QLabel" name="labelTownDensity">
  967. <property name="text">
  968. <string>Town density</string>
  969. </property>
  970. </widget>
  971. </item>
  972. <item>
  973. <layout class="QHBoxLayout" name="horizontalLayout_7">
  974. <property name="topMargin">
  975. <number>0</number>
  976. </property>
  977. <item>
  978. <widget class="QLabel" name="labelTownDensityPlayer">
  979. <property name="text">
  980. <string>Player</string>
  981. </property>
  982. </widget>
  983. </item>
  984. <item>
  985. <widget class="QSpinBox" name="spinBoxTownDensityPlayer"/>
  986. </item>
  987. <item>
  988. <spacer name="horizontalSpacer_11">
  989. <property name="orientation">
  990. <enum>Qt::Horizontal</enum>
  991. </property>
  992. <property name="sizeType">
  993. <enum>QSizePolicy::Fixed</enum>
  994. </property>
  995. <property name="sizeHint" stdset="0">
  996. <size>
  997. <width>20</width>
  998. <height>20</height>
  999. </size>
  1000. </property>
  1001. </spacer>
  1002. </item>
  1003. <item>
  1004. <widget class="QLabel" name="labelTownDensityNeutral">
  1005. <property name="text">
  1006. <string>Neutral</string>
  1007. </property>
  1008. </widget>
  1009. </item>
  1010. <item>
  1011. <widget class="QSpinBox" name="spinBoxTownDensityNeutral"/>
  1012. </item>
  1013. <item>
  1014. <spacer name="horizontalSpacer_17">
  1015. <property name="orientation">
  1016. <enum>Qt::Horizontal</enum>
  1017. </property>
  1018. <property name="sizeHint" stdset="0">
  1019. <size>
  1020. <width>40</width>
  1021. <height>20</height>
  1022. </size>
  1023. </property>
  1024. </spacer>
  1025. </item>
  1026. </layout>
  1027. </item>
  1028. <item>
  1029. <widget class="QLabel" name="labelCastleDensity">
  1030. <property name="text">
  1031. <string>Castle density</string>
  1032. </property>
  1033. </widget>
  1034. </item>
  1035. <item>
  1036. <layout class="QHBoxLayout" name="horizontalLayout_8">
  1037. <property name="topMargin">
  1038. <number>0</number>
  1039. </property>
  1040. <item>
  1041. <widget class="QLabel" name="labelCastleDensityPlayer">
  1042. <property name="text">
  1043. <string>Player</string>
  1044. </property>
  1045. </widget>
  1046. </item>
  1047. <item>
  1048. <widget class="QSpinBox" name="spinBoxCastleDensityPlayer"/>
  1049. </item>
  1050. <item>
  1051. <spacer name="horizontalSpacer_12">
  1052. <property name="orientation">
  1053. <enum>Qt::Horizontal</enum>
  1054. </property>
  1055. <property name="sizeType">
  1056. <enum>QSizePolicy::Fixed</enum>
  1057. </property>
  1058. <property name="sizeHint" stdset="0">
  1059. <size>
  1060. <width>20</width>
  1061. <height>20</height>
  1062. </size>
  1063. </property>
  1064. </spacer>
  1065. </item>
  1066. <item>
  1067. <widget class="QLabel" name="labelCastleDensityNeutral">
  1068. <property name="text">
  1069. <string>Neutral</string>
  1070. </property>
  1071. </widget>
  1072. </item>
  1073. <item>
  1074. <widget class="QSpinBox" name="spinBoxCastleDensityNeutral"/>
  1075. </item>
  1076. <item>
  1077. <spacer name="horizontalSpacer_18">
  1078. <property name="orientation">
  1079. <enum>Qt::Horizontal</enum>
  1080. </property>
  1081. <property name="sizeHint" stdset="0">
  1082. <size>
  1083. <width>40</width>
  1084. <height>20</height>
  1085. </size>
  1086. </property>
  1087. </spacer>
  1088. </item>
  1089. </layout>
  1090. </item>
  1091. </layout>
  1092. </widget>
  1093. </item>
  1094. <item>
  1095. <widget class="QGroupBox" name="groupBoxTerrain">
  1096. <property name="title">
  1097. <string>Terrain</string>
  1098. </property>
  1099. <layout class="QVBoxLayout" name="verticalLayout_13">
  1100. <item>
  1101. <widget class="QCheckBox" name="checkBoxMatchTerrainToTown">
  1102. <property name="text">
  1103. <string>Match terrain to town</string>
  1104. </property>
  1105. </widget>
  1106. </item>
  1107. <item>
  1108. <widget class="QPushButton" name="pushButtonOpenTerrainTypes">
  1109. <property name="text">
  1110. <string>Terrain types</string>
  1111. </property>
  1112. </widget>
  1113. </item>
  1114. <item>
  1115. <widget class="QPushButton" name="pushButtonOpenBannedTerrainTypes">
  1116. <property name="text">
  1117. <string>Banned terrain types</string>
  1118. </property>
  1119. </widget>
  1120. </item>
  1121. </layout>
  1122. </widget>
  1123. </item>
  1124. <item>
  1125. <widget class="QGroupBox" name="groupBoxTowns">
  1126. <property name="title">
  1127. <string>Towns</string>
  1128. </property>
  1129. <layout class="QVBoxLayout" name="verticalLayout_14">
  1130. <item>
  1131. <widget class="QCheckBox" name="checkBoxTownsAreSameType">
  1132. <property name="text">
  1133. <string>Towns are same type</string>
  1134. </property>
  1135. </widget>
  1136. </item>
  1137. <item>
  1138. <widget class="QPushButton" name="pushButtonAllowedTowns">
  1139. <property name="text">
  1140. <string>Allowed towns</string>
  1141. </property>
  1142. </widget>
  1143. </item>
  1144. <item>
  1145. <widget class="QPushButton" name="pushButtonBannedTowns">
  1146. <property name="text">
  1147. <string>Banned towns</string>
  1148. </property>
  1149. </widget>
  1150. </item>
  1151. <item>
  1152. <widget class="QPushButton" name="pushButtonTownHints">
  1153. <property name="text">
  1154. <string>Town hints</string>
  1155. </property>
  1156. </widget>
  1157. </item>
  1158. </layout>
  1159. </widget>
  1160. </item>
  1161. <item>
  1162. <widget class="QGroupBox" name="groupBoxMonsters">
  1163. <property name="title">
  1164. <string>Monsters</string>
  1165. </property>
  1166. <layout class="QVBoxLayout" name="verticalLayout_15">
  1167. <item>
  1168. <widget class="QPushButton" name="pushButtonAllowedMonsters">
  1169. <property name="text">
  1170. <string>Allowed monsters</string>
  1171. </property>
  1172. </widget>
  1173. </item>
  1174. <item>
  1175. <widget class="QPushButton" name="pushButtonBannedMonsters">
  1176. <property name="text">
  1177. <string>Banned monsters</string>
  1178. </property>
  1179. </widget>
  1180. </item>
  1181. <item>
  1182. <layout class="QHBoxLayout" name="horizontalLayout_11">
  1183. <property name="topMargin">
  1184. <number>0</number>
  1185. </property>
  1186. <item>
  1187. <widget class="QLabel" name="labelMonsterStrength">
  1188. <property name="sizePolicy">
  1189. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  1190. <horstretch>0</horstretch>
  1191. <verstretch>0</verstretch>
  1192. </sizepolicy>
  1193. </property>
  1194. <property name="text">
  1195. <string>Strength</string>
  1196. </property>
  1197. </widget>
  1198. </item>
  1199. <item>
  1200. <widget class="QComboBox" name="comboBoxMonsterStrength">
  1201. <property name="sizePolicy">
  1202. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
  1203. <horstretch>0</horstretch>
  1204. <verstretch>0</verstretch>
  1205. </sizepolicy>
  1206. </property>
  1207. </widget>
  1208. </item>
  1209. </layout>
  1210. </item>
  1211. </layout>
  1212. </widget>
  1213. </item>
  1214. <item>
  1215. <widget class="QGroupBox" name="groupBoxTreasure">
  1216. <property name="title">
  1217. <string>Treasure</string>
  1218. </property>
  1219. <layout class="QVBoxLayout" name="verticalLayout_16">
  1220. <item>
  1221. <widget class="QPushButton" name="pushButtonTreasure">
  1222. <property name="text">
  1223. <string>Treasure</string>
  1224. </property>
  1225. </widget>
  1226. </item>
  1227. </layout>
  1228. </widget>
  1229. </item>
  1230. <item>
  1231. <widget class="QGroupBox" name="groupBoxMines">
  1232. <property name="title">
  1233. <string>Mines</string>
  1234. </property>
  1235. <layout class="QVBoxLayout" name="verticalLayout_17">
  1236. <item>
  1237. <widget class="QPushButton" name="pushButtonMines">
  1238. <property name="text">
  1239. <string>Mines</string>
  1240. </property>
  1241. </widget>
  1242. </item>
  1243. </layout>
  1244. </widget>
  1245. </item>
  1246. <item>
  1247. <widget class="QGroupBox" name="groupBoxObjects">
  1248. <property name="title">
  1249. <string>Objects</string>
  1250. </property>
  1251. <layout class="QVBoxLayout" name="verticalLayout_18">
  1252. <item>
  1253. <widget class="QPushButton" name="pushButtonCustomObjects">
  1254. <property name="text">
  1255. <string>Custom objects</string>
  1256. </property>
  1257. </widget>
  1258. </item>
  1259. </layout>
  1260. </widget>
  1261. </item>
  1262. <item>
  1263. <spacer name="verticalSpacer_2">
  1264. <property name="orientation">
  1265. <enum>Qt::Vertical</enum>
  1266. </property>
  1267. <property name="sizeHint" stdset="0">
  1268. <size>
  1269. <width>20</width>
  1270. <height>526</height>
  1271. </size>
  1272. </property>
  1273. </spacer>
  1274. </item>
  1275. </layout>
  1276. </widget>
  1277. <widget class="QWidget" name="pageConnections">
  1278. <property name="geometry">
  1279. <rect>
  1280. <x>0</x>
  1281. <y>0</y>
  1282. <width>462</width>
  1283. <height>514</height>
  1284. </rect>
  1285. </property>
  1286. <attribute name="label">
  1287. <string>Connections</string>
  1288. </attribute>
  1289. <layout class="QVBoxLayout" name="verticalLayout_4">
  1290. <item>
  1291. <widget class="QTableWidget" name="tableWidgetConnections"/>
  1292. </item>
  1293. <item>
  1294. <layout class="QHBoxLayout" name="horizontalLayout_3">
  1295. <property name="topMargin">
  1296. <number>0</number>
  1297. </property>
  1298. <item>
  1299. <widget class="QPushButton" name="pushButtonConnectionAdd">
  1300. <property name="sizePolicy">
  1301. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  1302. <horstretch>0</horstretch>
  1303. <verstretch>0</verstretch>
  1304. </sizepolicy>
  1305. </property>
  1306. <property name="minimumSize">
  1307. <size>
  1308. <width>1</width>
  1309. <height>0</height>
  1310. </size>
  1311. </property>
  1312. <property name="text">
  1313. <string>Add</string>
  1314. </property>
  1315. </widget>
  1316. </item>
  1317. </layout>
  1318. </item>
  1319. </layout>
  1320. </widget>
  1321. </widget>
  1322. </item>
  1323. </layout>
  1324. </item>
  1325. <item>
  1326. <widget class="QStatusBar" name="statusbar"/>
  1327. </item>
  1328. </layout>
  1329. <action name="actionOpen">
  1330. <property name="text">
  1331. <string>Open</string>
  1332. </property>
  1333. <property name="shortcut">
  1334. <string notr="true">Ctrl+O</string>
  1335. </property>
  1336. </action>
  1337. <action name="actionSave">
  1338. <property name="text">
  1339. <string>Save</string>
  1340. </property>
  1341. <property name="shortcut">
  1342. <string notr="true">Ctrl+S</string>
  1343. </property>
  1344. </action>
  1345. <action name="actionNew">
  1346. <property name="text">
  1347. <string>New</string>
  1348. </property>
  1349. <property name="shortcut">
  1350. <string notr="true">Ctrl+N</string>
  1351. </property>
  1352. </action>
  1353. <action name="actionSave_as">
  1354. <property name="text">
  1355. <string>Save as...</string>
  1356. </property>
  1357. <property name="shortcut">
  1358. <string>Ctrl+Shift+S</string>
  1359. </property>
  1360. </action>
  1361. <action name="actionAddZone">
  1362. <property name="text">
  1363. <string>Add zone</string>
  1364. </property>
  1365. <property name="shortcut">
  1366. <string>Z</string>
  1367. </property>
  1368. </action>
  1369. <action name="actionRemoveZone">
  1370. <property name="enabled">
  1371. <bool>false</bool>
  1372. </property>
  1373. <property name="text">
  1374. <string>Remove zone</string>
  1375. </property>
  1376. <property name="shortcut">
  1377. <string>Del</string>
  1378. </property>
  1379. </action>
  1380. <action name="actionAutoPosition">
  1381. <property name="text">
  1382. <string>Auto position</string>
  1383. </property>
  1384. <property name="shortcut">
  1385. <string>Ctrl+P</string>
  1386. </property>
  1387. </action>
  1388. <action name="actionZoom_in">
  1389. <property name="text">
  1390. <string>Zoom in</string>
  1391. </property>
  1392. <property name="shortcut">
  1393. <string>Ctrl++</string>
  1394. </property>
  1395. </action>
  1396. <action name="actionZoom_out">
  1397. <property name="text">
  1398. <string>Zoom out</string>
  1399. </property>
  1400. <property name="shortcut">
  1401. <string>Ctrl+-</string>
  1402. </property>
  1403. </action>
  1404. <action name="actionZoom_auto">
  1405. <property name="text">
  1406. <string>Zoom auto</string>
  1407. </property>
  1408. <property name="shortcut">
  1409. <string>Ctrl+Shift+:</string>
  1410. </property>
  1411. </action>
  1412. <action name="actionZoom_reset">
  1413. <property name="text">
  1414. <string>Zoom reset</string>
  1415. </property>
  1416. <property name="shortcut">
  1417. <string>Ctrl+Shift+=</string>
  1418. </property>
  1419. </action>
  1420. </widget>
  1421. <customwidgets>
  1422. <customwidget>
  1423. <class>TemplateView</class>
  1424. <extends>QGraphicsView</extends>
  1425. <header>templateeditor/templateview.h</header>
  1426. </customwidget>
  1427. </customwidgets>
  1428. <resources/>
  1429. <connections/>
  1430. </ui>