windownewmap.ui 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>WindowNewMap</class>
  4. <widget class="QDialog" name="WindowNewMap">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>444</width>
  10. <height>445</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  15. <horstretch>0</horstretch>
  16. <verstretch>0</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="minimumSize">
  20. <size>
  21. <width>390</width>
  22. <height>351</height>
  23. </size>
  24. </property>
  25. <property name="maximumSize">
  26. <size>
  27. <width>999</width>
  28. <height>999</height>
  29. </size>
  30. </property>
  31. <property name="windowTitle">
  32. <string>Create new map</string>
  33. </property>
  34. <property name="modal">
  35. <bool>false</bool>
  36. </property>
  37. <widget class="QGroupBox" name="groupBox">
  38. <property name="geometry">
  39. <rect>
  40. <x>10</x>
  41. <y>20</y>
  42. <width>291</width>
  43. <height>91</height>
  44. </rect>
  45. </property>
  46. <property name="title">
  47. <string>Map size</string>
  48. </property>
  49. <widget class="QWidget" name="layoutWidget">
  50. <property name="geometry">
  51. <rect>
  52. <x>0</x>
  53. <y>20</y>
  54. <width>261</width>
  55. <height>68</height>
  56. </rect>
  57. </property>
  58. <layout class="QGridLayout" name="gridLayout_2" columnstretch="1,0,0">
  59. <item row="1" column="0">
  60. <widget class="QCheckBox" name="twoLevelCheck">
  61. <property name="text">
  62. <string>Two level map</string>
  63. </property>
  64. </widget>
  65. </item>
  66. <item row="0" column="2">
  67. <widget class="QLineEdit" name="widthTxt">
  68. <property name="inputMethodHints">
  69. <set>Qt::ImhDigitsOnly</set>
  70. </property>
  71. <property name="text">
  72. <string>36</string>
  73. </property>
  74. <property name="maxLength">
  75. <number>3</number>
  76. </property>
  77. </widget>
  78. </item>
  79. <item row="1" column="1">
  80. <widget class="QLabel" name="label_2">
  81. <property name="text">
  82. <string>Height</string>
  83. </property>
  84. </widget>
  85. </item>
  86. <item row="1" column="2">
  87. <widget class="QLineEdit" name="heightTxt">
  88. <property name="inputMethodHints">
  89. <set>Qt::ImhDigitsOnly</set>
  90. </property>
  91. <property name="text">
  92. <string>36</string>
  93. </property>
  94. <property name="maxLength">
  95. <number>3</number>
  96. </property>
  97. </widget>
  98. </item>
  99. <item row="0" column="1">
  100. <widget class="QLabel" name="label">
  101. <property name="minimumSize">
  102. <size>
  103. <width>48</width>
  104. <height>0</height>
  105. </size>
  106. </property>
  107. <property name="maximumSize">
  108. <size>
  109. <width>96</width>
  110. <height>16777215</height>
  111. </size>
  112. </property>
  113. <property name="text">
  114. <string>Width</string>
  115. </property>
  116. </widget>
  117. </item>
  118. <item row="0" column="0">
  119. <layout class="QHBoxLayout" name="horizontalLayout_4">
  120. <item>
  121. <spacer name="horizontalSpacer_5">
  122. <property name="orientation">
  123. <enum>Qt::Horizontal</enum>
  124. </property>
  125. <property name="sizeType">
  126. <enum>QSizePolicy::Fixed</enum>
  127. </property>
  128. <property name="sizeHint" stdset="0">
  129. <size>
  130. <width>8</width>
  131. <height>20</height>
  132. </size>
  133. </property>
  134. </spacer>
  135. </item>
  136. <item>
  137. <widget class="QComboBox" name="sizeCombo">
  138. <property name="minimumSize">
  139. <size>
  140. <width>96</width>
  141. <height>0</height>
  142. </size>
  143. </property>
  144. <property name="maximumSize">
  145. <size>
  146. <width>120</width>
  147. <height>16777215</height>
  148. </size>
  149. </property>
  150. <item>
  151. <property name="text">
  152. <string>S (36x36)</string>
  153. </property>
  154. </item>
  155. <item>
  156. <property name="text">
  157. <string>M (72x72)</string>
  158. </property>
  159. </item>
  160. <item>
  161. <property name="text">
  162. <string>L (108x108)</string>
  163. </property>
  164. </item>
  165. <item>
  166. <property name="text">
  167. <string>XL (144x144)</string>
  168. </property>
  169. </item>
  170. </widget>
  171. </item>
  172. </layout>
  173. </item>
  174. </layout>
  175. </widget>
  176. </widget>
  177. <widget class="QGroupBox" name="groupBox_5">
  178. <property name="geometry">
  179. <rect>
  180. <x>10</x>
  181. <y>140</y>
  182. <width>431</width>
  183. <height>301</height>
  184. </rect>
  185. </property>
  186. <property name="sizePolicy">
  187. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  188. <horstretch>0</horstretch>
  189. <verstretch>0</verstretch>
  190. </sizepolicy>
  191. </property>
  192. <property name="title">
  193. <string>Random map</string>
  194. </property>
  195. <widget class="QGroupBox" name="groupBox_2">
  196. <property name="geometry">
  197. <rect>
  198. <x>10</x>
  199. <y>20</y>
  200. <width>411</width>
  201. <height>91</height>
  202. </rect>
  203. </property>
  204. <property name="title">
  205. <string>Players</string>
  206. </property>
  207. <widget class="QWidget" name="layoutWidget">
  208. <property name="geometry">
  209. <rect>
  210. <x>10</x>
  211. <y>20</y>
  212. <width>391</width>
  213. <height>68</height>
  214. </rect>
  215. </property>
  216. <layout class="QGridLayout" name="gridLayout" columnstretch="0,0,0,0,1">
  217. <item row="0" column="3">
  218. <widget class="QComboBox" name="humanTeamsCombo">
  219. <property name="minimumSize">
  220. <size>
  221. <width>48</width>
  222. <height>0</height>
  223. </size>
  224. </property>
  225. <property name="maximumSize">
  226. <size>
  227. <width>64</width>
  228. <height>16777215</height>
  229. </size>
  230. </property>
  231. <item>
  232. <property name="text">
  233. <string>0</string>
  234. </property>
  235. </item>
  236. </widget>
  237. </item>
  238. <item row="1" column="3">
  239. <widget class="QComboBox" name="cpuTeamsCombo">
  240. <item>
  241. <property name="text">
  242. <string>0</string>
  243. </property>
  244. </item>
  245. </widget>
  246. </item>
  247. <item row="0" column="0">
  248. <widget class="QLabel" name="label_3">
  249. <property name="minimumSize">
  250. <size>
  251. <width>96</width>
  252. <height>0</height>
  253. </size>
  254. </property>
  255. <property name="maximumSize">
  256. <size>
  257. <width>120</width>
  258. <height>16777215</height>
  259. </size>
  260. </property>
  261. <property name="text">
  262. <string>Human/Computer</string>
  263. </property>
  264. </widget>
  265. </item>
  266. <item row="0" column="1">
  267. <widget class="QComboBox" name="humanCombo">
  268. <property name="minimumSize">
  269. <size>
  270. <width>96</width>
  271. <height>0</height>
  272. </size>
  273. </property>
  274. <property name="maximumSize">
  275. <size>
  276. <width>120</width>
  277. <height>16777215</height>
  278. </size>
  279. </property>
  280. <item>
  281. <property name="text">
  282. <string>Random</string>
  283. </property>
  284. </item>
  285. <item>
  286. <property name="text">
  287. <string>1</string>
  288. </property>
  289. </item>
  290. <item>
  291. <property name="text">
  292. <string>2</string>
  293. </property>
  294. </item>
  295. <item>
  296. <property name="text">
  297. <string>3</string>
  298. </property>
  299. </item>
  300. <item>
  301. <property name="text">
  302. <string>4</string>
  303. </property>
  304. </item>
  305. <item>
  306. <property name="text">
  307. <string>5</string>
  308. </property>
  309. </item>
  310. <item>
  311. <property name="text">
  312. <string>6</string>
  313. </property>
  314. </item>
  315. <item>
  316. <property name="text">
  317. <string>7</string>
  318. </property>
  319. </item>
  320. <item>
  321. <property name="text">
  322. <string>8</string>
  323. </property>
  324. </item>
  325. </widget>
  326. </item>
  327. <item row="1" column="0">
  328. <widget class="QLabel" name="label_4">
  329. <property name="text">
  330. <string>Computer only</string>
  331. </property>
  332. </widget>
  333. </item>
  334. <item row="0" column="2">
  335. <spacer name="horizontalSpacer_3">
  336. <property name="orientation">
  337. <enum>Qt::Horizontal</enum>
  338. </property>
  339. <property name="sizeHint" stdset="0">
  340. <size>
  341. <width>40</width>
  342. <height>20</height>
  343. </size>
  344. </property>
  345. </spacer>
  346. </item>
  347. <item row="1" column="1">
  348. <widget class="QComboBox" name="cpuCombo">
  349. <item>
  350. <property name="text">
  351. <string>Random</string>
  352. </property>
  353. </item>
  354. <item>
  355. <property name="text">
  356. <string>0</string>
  357. </property>
  358. </item>
  359. <item>
  360. <property name="text">
  361. <string>1</string>
  362. </property>
  363. </item>
  364. <item>
  365. <property name="text">
  366. <string>2</string>
  367. </property>
  368. </item>
  369. <item>
  370. <property name="text">
  371. <string>3</string>
  372. </property>
  373. </item>
  374. <item>
  375. <property name="text">
  376. <string>4</string>
  377. </property>
  378. </item>
  379. <item>
  380. <property name="text">
  381. <string>5</string>
  382. </property>
  383. </item>
  384. <item>
  385. <property name="text">
  386. <string>6</string>
  387. </property>
  388. </item>
  389. <item>
  390. <property name="text">
  391. <string>7</string>
  392. </property>
  393. </item>
  394. </widget>
  395. </item>
  396. <item row="1" column="4">
  397. <spacer name="horizontalSpacer_4">
  398. <property name="orientation">
  399. <enum>Qt::Horizontal</enum>
  400. </property>
  401. <property name="sizeHint" stdset="0">
  402. <size>
  403. <width>40</width>
  404. <height>20</height>
  405. </size>
  406. </property>
  407. </spacer>
  408. </item>
  409. </layout>
  410. </widget>
  411. </widget>
  412. <widget class="QGroupBox" name="groupBox_4">
  413. <property name="geometry">
  414. <rect>
  415. <x>10</x>
  416. <y>170</y>
  417. <width>411</width>
  418. <height>51</height>
  419. </rect>
  420. </property>
  421. <property name="title">
  422. <string>Monster strength</string>
  423. </property>
  424. <widget class="QWidget" name="layoutWidget">
  425. <property name="geometry">
  426. <rect>
  427. <x>0</x>
  428. <y>20</y>
  429. <width>411</width>
  430. <height>26</height>
  431. </rect>
  432. </property>
  433. <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,1,1">
  434. <item>
  435. <widget class="QRadioButton" name="monsterOpt1">
  436. <property name="sizePolicy">
  437. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  438. <horstretch>0</horstretch>
  439. <verstretch>0</verstretch>
  440. </sizepolicy>
  441. </property>
  442. <property name="maximumSize">
  443. <size>
  444. <width>16777215</width>
  445. <height>16777215</height>
  446. </size>
  447. </property>
  448. <property name="text">
  449. <string>Random</string>
  450. </property>
  451. <property name="checked">
  452. <bool>true</bool>
  453. </property>
  454. </widget>
  455. </item>
  456. <item>
  457. <widget class="QRadioButton" name="monsterOpt2">
  458. <property name="sizePolicy">
  459. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  460. <horstretch>0</horstretch>
  461. <verstretch>0</verstretch>
  462. </sizepolicy>
  463. </property>
  464. <property name="maximumSize">
  465. <size>
  466. <width>120</width>
  467. <height>16777215</height>
  468. </size>
  469. </property>
  470. <property name="text">
  471. <string>Weak</string>
  472. </property>
  473. </widget>
  474. </item>
  475. <item>
  476. <widget class="QRadioButton" name="monsterOpt3">
  477. <property name="sizePolicy">
  478. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  479. <horstretch>0</horstretch>
  480. <verstretch>0</verstretch>
  481. </sizepolicy>
  482. </property>
  483. <property name="maximumSize">
  484. <size>
  485. <width>120</width>
  486. <height>16777215</height>
  487. </size>
  488. </property>
  489. <property name="text">
  490. <string>Normal</string>
  491. </property>
  492. </widget>
  493. </item>
  494. <item>
  495. <widget class="QRadioButton" name="monsterOpt4">
  496. <property name="sizePolicy">
  497. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  498. <horstretch>0</horstretch>
  499. <verstretch>0</verstretch>
  500. </sizepolicy>
  501. </property>
  502. <property name="maximumSize">
  503. <size>
  504. <width>120</width>
  505. <height>16777215</height>
  506. </size>
  507. </property>
  508. <property name="text">
  509. <string>Strong</string>
  510. </property>
  511. </widget>
  512. </item>
  513. <item>
  514. <spacer name="horizontalSpacer_2">
  515. <property name="sizePolicy">
  516. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  517. <horstretch>0</horstretch>
  518. <verstretch>0</verstretch>
  519. </sizepolicy>
  520. </property>
  521. <property name="maximumSize">
  522. <size>
  523. <width>16777215</width>
  524. <height>16777215</height>
  525. </size>
  526. </property>
  527. <property name="orientation">
  528. <enum>Qt::Horizontal</enum>
  529. </property>
  530. <property name="sizeHint" stdset="0">
  531. <size>
  532. <width>40</width>
  533. <height>20</height>
  534. </size>
  535. </property>
  536. </spacer>
  537. </item>
  538. </layout>
  539. </widget>
  540. </widget>
  541. <widget class="QGroupBox" name="groupBox_3">
  542. <property name="geometry">
  543. <rect>
  544. <x>10</x>
  545. <y>120</y>
  546. <width>411</width>
  547. <height>51</height>
  548. </rect>
  549. </property>
  550. <property name="sizePolicy">
  551. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  552. <horstretch>0</horstretch>
  553. <verstretch>0</verstretch>
  554. </sizepolicy>
  555. </property>
  556. <property name="maximumSize">
  557. <size>
  558. <width>480</width>
  559. <height>96</height>
  560. </size>
  561. </property>
  562. <property name="title">
  563. <string>Water content</string>
  564. </property>
  565. <widget class="QWidget" name="layoutWidget">
  566. <property name="geometry">
  567. <rect>
  568. <x>0</x>
  569. <y>20</y>
  570. <width>411</width>
  571. <height>26</height>
  572. </rect>
  573. </property>
  574. <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,1,1,1">
  575. <item>
  576. <widget class="QRadioButton" name="waterOpt1">
  577. <property name="sizePolicy">
  578. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  579. <horstretch>0</horstretch>
  580. <verstretch>0</verstretch>
  581. </sizepolicy>
  582. </property>
  583. <property name="maximumSize">
  584. <size>
  585. <width>144</width>
  586. <height>96</height>
  587. </size>
  588. </property>
  589. <property name="text">
  590. <string>Random</string>
  591. </property>
  592. <property name="checked">
  593. <bool>true</bool>
  594. </property>
  595. </widget>
  596. </item>
  597. <item>
  598. <widget class="QRadioButton" name="waterOpt2">
  599. <property name="sizePolicy">
  600. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  601. <horstretch>0</horstretch>
  602. <verstretch>0</verstretch>
  603. </sizepolicy>
  604. </property>
  605. <property name="maximumSize">
  606. <size>
  607. <width>144</width>
  608. <height>96</height>
  609. </size>
  610. </property>
  611. <property name="text">
  612. <string>None</string>
  613. </property>
  614. </widget>
  615. </item>
  616. <item>
  617. <widget class="QRadioButton" name="waterOpt3">
  618. <property name="sizePolicy">
  619. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  620. <horstretch>0</horstretch>
  621. <verstretch>0</verstretch>
  622. </sizepolicy>
  623. </property>
  624. <property name="maximumSize">
  625. <size>
  626. <width>144</width>
  627. <height>96</height>
  628. </size>
  629. </property>
  630. <property name="text">
  631. <string>Normal</string>
  632. </property>
  633. </widget>
  634. </item>
  635. <item>
  636. <widget class="QRadioButton" name="waterOpt4">
  637. <property name="sizePolicy">
  638. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  639. <horstretch>0</horstretch>
  640. <verstretch>0</verstretch>
  641. </sizepolicy>
  642. </property>
  643. <property name="maximumSize">
  644. <size>
  645. <width>144</width>
  646. <height>96</height>
  647. </size>
  648. </property>
  649. <property name="text">
  650. <string>Islands</string>
  651. </property>
  652. </widget>
  653. </item>
  654. <item>
  655. <spacer name="horizontalSpacer">
  656. <property name="orientation">
  657. <enum>Qt::Horizontal</enum>
  658. </property>
  659. <property name="sizeHint" stdset="0">
  660. <size>
  661. <width>40</width>
  662. <height>20</height>
  663. </size>
  664. </property>
  665. </spacer>
  666. </item>
  667. </layout>
  668. </widget>
  669. </widget>
  670. <widget class="QWidget" name="layoutWidget">
  671. <property name="geometry">
  672. <rect>
  673. <x>10</x>
  674. <y>230</y>
  675. <width>411</width>
  676. <height>32</height>
  677. </rect>
  678. </property>
  679. <layout class="QHBoxLayout" name="horizontalLayout_3">
  680. <item>
  681. <widget class="QLabel" name="label_5">
  682. <property name="sizePolicy">
  683. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  684. <horstretch>0</horstretch>
  685. <verstretch>0</verstretch>
  686. </sizepolicy>
  687. </property>
  688. <property name="maximumSize">
  689. <size>
  690. <width>120</width>
  691. <height>16777215</height>
  692. </size>
  693. </property>
  694. <property name="text">
  695. <string>Template</string>
  696. </property>
  697. </widget>
  698. </item>
  699. <item>
  700. <widget class="QComboBox" name="templateCombo">
  701. <property name="enabled">
  702. <bool>false</bool>
  703. </property>
  704. <property name="currentIndex">
  705. <number>-1</number>
  706. </property>
  707. </widget>
  708. </item>
  709. </layout>
  710. </widget>
  711. <widget class="QLineEdit" name="lineSeed">
  712. <property name="enabled">
  713. <bool>false</bool>
  714. </property>
  715. <property name="geometry">
  716. <rect>
  717. <x>280</x>
  718. <y>270</y>
  719. <width>131</width>
  720. <height>21</height>
  721. </rect>
  722. </property>
  723. <property name="inputMethodHints">
  724. <set>Qt::ImhDigitsOnly</set>
  725. </property>
  726. <property name="text">
  727. <string>0</string>
  728. </property>
  729. </widget>
  730. <widget class="QCheckBox" name="checkSeed">
  731. <property name="geometry">
  732. <rect>
  733. <x>110</x>
  734. <y>270</y>
  735. <width>161</width>
  736. <height>20</height>
  737. </rect>
  738. </property>
  739. <property name="text">
  740. <string>Custom seed</string>
  741. </property>
  742. </widget>
  743. </widget>
  744. <widget class="QCheckBox" name="randomMapCheck">
  745. <property name="geometry">
  746. <rect>
  747. <x>10</x>
  748. <y>120</y>
  749. <width>291</width>
  750. <height>20</height>
  751. </rect>
  752. </property>
  753. <property name="text">
  754. <string>Generate random map</string>
  755. </property>
  756. </widget>
  757. <widget class="QWidget" name="layoutWidget">
  758. <property name="geometry">
  759. <rect>
  760. <x>310</x>
  761. <y>20</y>
  762. <width>111</width>
  763. <height>101</height>
  764. </rect>
  765. </property>
  766. <layout class="QVBoxLayout" name="verticalLayout">
  767. <item>
  768. <widget class="QPushButton" name="okButton">
  769. <property name="sizePolicy">
  770. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  771. <horstretch>0</horstretch>
  772. <verstretch>0</verstretch>
  773. </sizepolicy>
  774. </property>
  775. <property name="minimumSize">
  776. <size>
  777. <width>0</width>
  778. <height>36</height>
  779. </size>
  780. </property>
  781. <property name="maximumSize">
  782. <size>
  783. <width>16777215</width>
  784. <height>36</height>
  785. </size>
  786. </property>
  787. <property name="text">
  788. <string>Ok</string>
  789. </property>
  790. </widget>
  791. </item>
  792. <item>
  793. <widget class="QPushButton" name="cancelButton">
  794. <property name="sizePolicy">
  795. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  796. <horstretch>0</horstretch>
  797. <verstretch>0</verstretch>
  798. </sizepolicy>
  799. </property>
  800. <property name="maximumSize">
  801. <size>
  802. <width>16777215</width>
  803. <height>36</height>
  804. </size>
  805. </property>
  806. <property name="text">
  807. <string>Cancel</string>
  808. </property>
  809. </widget>
  810. </item>
  811. </layout>
  812. </widget>
  813. </widget>
  814. <resources/>
  815. <connections/>
  816. </ui>