windownewmap.ui 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  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="layoutWidget1">
  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 notr="true">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 notr="true">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="layoutWidget2">
  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">
  217. <item row="1" column="1">
  218. <widget class="QComboBox" name="cpuCombo">
  219. <item>
  220. <property name="text">
  221. <string>Random</string>
  222. </property>
  223. </item>
  224. <item>
  225. <property name="text">
  226. <string notr="true">0</string>
  227. </property>
  228. </item>
  229. <item>
  230. <property name="text">
  231. <string notr="true">1</string>
  232. </property>
  233. </item>
  234. <item>
  235. <property name="text">
  236. <string notr="true">2</string>
  237. </property>
  238. </item>
  239. <item>
  240. <property name="text">
  241. <string notr="true">3</string>
  242. </property>
  243. </item>
  244. <item>
  245. <property name="text">
  246. <string notr="true">4</string>
  247. </property>
  248. </item>
  249. <item>
  250. <property name="text">
  251. <string notr="true">5</string>
  252. </property>
  253. </item>
  254. <item>
  255. <property name="text">
  256. <string notr="true">6</string>
  257. </property>
  258. </item>
  259. <item>
  260. <property name="text">
  261. <string notr="true">7</string>
  262. </property>
  263. </item>
  264. </widget>
  265. </item>
  266. <item row="1" column="0">
  267. <widget class="QLabel" name="label_4">
  268. <property name="text">
  269. <string>Computer only</string>
  270. </property>
  271. </widget>
  272. </item>
  273. <item row="0" column="1">
  274. <widget class="QComboBox" name="humanCombo">
  275. <property name="minimumSize">
  276. <size>
  277. <width>96</width>
  278. <height>0</height>
  279. </size>
  280. </property>
  281. <property name="maximumSize">
  282. <size>
  283. <width>120</width>
  284. <height>16777215</height>
  285. </size>
  286. </property>
  287. <item>
  288. <property name="text">
  289. <string>Random</string>
  290. </property>
  291. </item>
  292. <item>
  293. <property name="text">
  294. <string notr="true">1</string>
  295. </property>
  296. </item>
  297. <item>
  298. <property name="text">
  299. <string notr="true">2</string>
  300. </property>
  301. </item>
  302. <item>
  303. <property name="text">
  304. <string notr="true">3</string>
  305. </property>
  306. </item>
  307. <item>
  308. <property name="text">
  309. <string notr="true">4</string>
  310. </property>
  311. </item>
  312. <item>
  313. <property name="text">
  314. <string notr="true">5</string>
  315. </property>
  316. </item>
  317. <item>
  318. <property name="text">
  319. <string notr="true">6</string>
  320. </property>
  321. </item>
  322. <item>
  323. <property name="text">
  324. <string notr="true">7</string>
  325. </property>
  326. </item>
  327. <item>
  328. <property name="text">
  329. <string notr="true">8</string>
  330. </property>
  331. </item>
  332. </widget>
  333. </item>
  334. <item row="0" column="0">
  335. <widget class="QLabel" name="label_3">
  336. <property name="minimumSize">
  337. <size>
  338. <width>96</width>
  339. <height>0</height>
  340. </size>
  341. </property>
  342. <property name="maximumSize">
  343. <size>
  344. <width>120</width>
  345. <height>16777215</height>
  346. </size>
  347. </property>
  348. <property name="text">
  349. <string>Human/Computer</string>
  350. </property>
  351. </widget>
  352. </item>
  353. <item row="0" column="3">
  354. <widget class="QComboBox" name="humanTeamsCombo">
  355. <property name="minimumSize">
  356. <size>
  357. <width>0</width>
  358. <height>0</height>
  359. </size>
  360. </property>
  361. <property name="maximumSize">
  362. <size>
  363. <width>16777215</width>
  364. <height>16777215</height>
  365. </size>
  366. </property>
  367. <property name="currentText">
  368. <string notr="true">0</string>
  369. </property>
  370. <item>
  371. <property name="text">
  372. <string notr="true">0</string>
  373. </property>
  374. </item>
  375. </widget>
  376. </item>
  377. <item row="0" column="2">
  378. <widget class="QLabel" name="label_6">
  379. <property name="text">
  380. <string>Human teams</string>
  381. </property>
  382. </widget>
  383. </item>
  384. <item row="1" column="3">
  385. <widget class="QComboBox" name="cpuTeamsCombo">
  386. <property name="currentText">
  387. <string notr="true">0</string>
  388. </property>
  389. <item>
  390. <property name="text">
  391. <string notr="true">0</string>
  392. </property>
  393. </item>
  394. </widget>
  395. </item>
  396. <item row="1" column="2">
  397. <widget class="QLabel" name="label_7">
  398. <property name="text">
  399. <string>Computer teams</string>
  400. </property>
  401. </widget>
  402. </item>
  403. </layout>
  404. </widget>
  405. </widget>
  406. <widget class="QGroupBox" name="groupBox_4">
  407. <property name="geometry">
  408. <rect>
  409. <x>10</x>
  410. <y>170</y>
  411. <width>411</width>
  412. <height>51</height>
  413. </rect>
  414. </property>
  415. <property name="title">
  416. <string>Monster strength</string>
  417. </property>
  418. <widget class="QWidget" name="layoutWidget3">
  419. <property name="geometry">
  420. <rect>
  421. <x>0</x>
  422. <y>20</y>
  423. <width>411</width>
  424. <height>26</height>
  425. </rect>
  426. </property>
  427. <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,1,1">
  428. <item>
  429. <widget class="QRadioButton" name="monsterOpt1">
  430. <property name="sizePolicy">
  431. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  432. <horstretch>0</horstretch>
  433. <verstretch>0</verstretch>
  434. </sizepolicy>
  435. </property>
  436. <property name="maximumSize">
  437. <size>
  438. <width>16777215</width>
  439. <height>16777215</height>
  440. </size>
  441. </property>
  442. <property name="text">
  443. <string>Random</string>
  444. </property>
  445. <property name="checked">
  446. <bool>true</bool>
  447. </property>
  448. </widget>
  449. </item>
  450. <item>
  451. <widget class="QRadioButton" name="monsterOpt2">
  452. <property name="sizePolicy">
  453. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  454. <horstretch>0</horstretch>
  455. <verstretch>0</verstretch>
  456. </sizepolicy>
  457. </property>
  458. <property name="maximumSize">
  459. <size>
  460. <width>120</width>
  461. <height>16777215</height>
  462. </size>
  463. </property>
  464. <property name="text">
  465. <string>Weak</string>
  466. </property>
  467. </widget>
  468. </item>
  469. <item>
  470. <widget class="QRadioButton" name="monsterOpt3">
  471. <property name="sizePolicy">
  472. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  473. <horstretch>0</horstretch>
  474. <verstretch>0</verstretch>
  475. </sizepolicy>
  476. </property>
  477. <property name="maximumSize">
  478. <size>
  479. <width>120</width>
  480. <height>16777215</height>
  481. </size>
  482. </property>
  483. <property name="text">
  484. <string>Normal</string>
  485. </property>
  486. </widget>
  487. </item>
  488. <item>
  489. <widget class="QRadioButton" name="monsterOpt4">
  490. <property name="sizePolicy">
  491. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  492. <horstretch>0</horstretch>
  493. <verstretch>0</verstretch>
  494. </sizepolicy>
  495. </property>
  496. <property name="maximumSize">
  497. <size>
  498. <width>120</width>
  499. <height>16777215</height>
  500. </size>
  501. </property>
  502. <property name="text">
  503. <string>Strong</string>
  504. </property>
  505. </widget>
  506. </item>
  507. <item>
  508. <spacer name="horizontalSpacer_2">
  509. <property name="sizePolicy">
  510. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  511. <horstretch>0</horstretch>
  512. <verstretch>0</verstretch>
  513. </sizepolicy>
  514. </property>
  515. <property name="maximumSize">
  516. <size>
  517. <width>16777215</width>
  518. <height>16777215</height>
  519. </size>
  520. </property>
  521. <property name="orientation">
  522. <enum>Qt::Horizontal</enum>
  523. </property>
  524. <property name="sizeHint" stdset="0">
  525. <size>
  526. <width>40</width>
  527. <height>20</height>
  528. </size>
  529. </property>
  530. </spacer>
  531. </item>
  532. </layout>
  533. </widget>
  534. </widget>
  535. <widget class="QGroupBox" name="groupBox_3">
  536. <property name="geometry">
  537. <rect>
  538. <x>10</x>
  539. <y>120</y>
  540. <width>411</width>
  541. <height>51</height>
  542. </rect>
  543. </property>
  544. <property name="sizePolicy">
  545. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  546. <horstretch>0</horstretch>
  547. <verstretch>0</verstretch>
  548. </sizepolicy>
  549. </property>
  550. <property name="maximumSize">
  551. <size>
  552. <width>480</width>
  553. <height>96</height>
  554. </size>
  555. </property>
  556. <property name="title">
  557. <string>Water content</string>
  558. </property>
  559. <widget class="QWidget" name="layoutWidget4">
  560. <property name="geometry">
  561. <rect>
  562. <x>0</x>
  563. <y>20</y>
  564. <width>411</width>
  565. <height>26</height>
  566. </rect>
  567. </property>
  568. <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,1,1,1">
  569. <item>
  570. <widget class="QRadioButton" name="waterOpt1">
  571. <property name="sizePolicy">
  572. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  573. <horstretch>0</horstretch>
  574. <verstretch>0</verstretch>
  575. </sizepolicy>
  576. </property>
  577. <property name="maximumSize">
  578. <size>
  579. <width>144</width>
  580. <height>96</height>
  581. </size>
  582. </property>
  583. <property name="text">
  584. <string>Random</string>
  585. </property>
  586. <property name="checked">
  587. <bool>true</bool>
  588. </property>
  589. </widget>
  590. </item>
  591. <item>
  592. <widget class="QRadioButton" name="waterOpt2">
  593. <property name="sizePolicy">
  594. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  595. <horstretch>0</horstretch>
  596. <verstretch>0</verstretch>
  597. </sizepolicy>
  598. </property>
  599. <property name="maximumSize">
  600. <size>
  601. <width>144</width>
  602. <height>96</height>
  603. </size>
  604. </property>
  605. <property name="text">
  606. <string>None</string>
  607. </property>
  608. </widget>
  609. </item>
  610. <item>
  611. <widget class="QRadioButton" name="waterOpt3">
  612. <property name="sizePolicy">
  613. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  614. <horstretch>0</horstretch>
  615. <verstretch>0</verstretch>
  616. </sizepolicy>
  617. </property>
  618. <property name="maximumSize">
  619. <size>
  620. <width>144</width>
  621. <height>96</height>
  622. </size>
  623. </property>
  624. <property name="text">
  625. <string>Normal</string>
  626. </property>
  627. </widget>
  628. </item>
  629. <item>
  630. <widget class="QRadioButton" name="waterOpt4">
  631. <property name="sizePolicy">
  632. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  633. <horstretch>0</horstretch>
  634. <verstretch>0</verstretch>
  635. </sizepolicy>
  636. </property>
  637. <property name="maximumSize">
  638. <size>
  639. <width>144</width>
  640. <height>96</height>
  641. </size>
  642. </property>
  643. <property name="text">
  644. <string>Islands</string>
  645. </property>
  646. </widget>
  647. </item>
  648. <item>
  649. <spacer name="horizontalSpacer">
  650. <property name="orientation">
  651. <enum>Qt::Horizontal</enum>
  652. </property>
  653. <property name="sizeHint" stdset="0">
  654. <size>
  655. <width>40</width>
  656. <height>20</height>
  657. </size>
  658. </property>
  659. </spacer>
  660. </item>
  661. </layout>
  662. </widget>
  663. </widget>
  664. <widget class="QWidget" name="layoutWidget5">
  665. <property name="geometry">
  666. <rect>
  667. <x>10</x>
  668. <y>230</y>
  669. <width>411</width>
  670. <height>32</height>
  671. </rect>
  672. </property>
  673. <layout class="QHBoxLayout" name="horizontalLayout_3">
  674. <item>
  675. <widget class="QLabel" name="label_5">
  676. <property name="sizePolicy">
  677. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  678. <horstretch>0</horstretch>
  679. <verstretch>0</verstretch>
  680. </sizepolicy>
  681. </property>
  682. <property name="maximumSize">
  683. <size>
  684. <width>120</width>
  685. <height>16777215</height>
  686. </size>
  687. </property>
  688. <property name="text">
  689. <string>Template</string>
  690. </property>
  691. </widget>
  692. </item>
  693. <item>
  694. <widget class="QComboBox" name="templateCombo">
  695. <property name="enabled">
  696. <bool>false</bool>
  697. </property>
  698. <property name="currentText">
  699. <string notr="true"/>
  700. </property>
  701. <property name="currentIndex">
  702. <number>-1</number>
  703. </property>
  704. </widget>
  705. </item>
  706. </layout>
  707. </widget>
  708. <widget class="QLineEdit" name="lineSeed">
  709. <property name="enabled">
  710. <bool>false</bool>
  711. </property>
  712. <property name="geometry">
  713. <rect>
  714. <x>280</x>
  715. <y>270</y>
  716. <width>131</width>
  717. <height>21</height>
  718. </rect>
  719. </property>
  720. <property name="inputMethodHints">
  721. <set>Qt::ImhDigitsOnly</set>
  722. </property>
  723. <property name="text">
  724. <string>0</string>
  725. </property>
  726. </widget>
  727. <widget class="QCheckBox" name="checkSeed">
  728. <property name="geometry">
  729. <rect>
  730. <x>110</x>
  731. <y>270</y>
  732. <width>161</width>
  733. <height>20</height>
  734. </rect>
  735. </property>
  736. <property name="text">
  737. <string>Custom seed</string>
  738. </property>
  739. </widget>
  740. </widget>
  741. <widget class="QCheckBox" name="randomMapCheck">
  742. <property name="geometry">
  743. <rect>
  744. <x>10</x>
  745. <y>120</y>
  746. <width>291</width>
  747. <height>20</height>
  748. </rect>
  749. </property>
  750. <property name="text">
  751. <string>Generate random map</string>
  752. </property>
  753. </widget>
  754. <widget class="QWidget" name="layoutWidget6">
  755. <property name="geometry">
  756. <rect>
  757. <x>310</x>
  758. <y>20</y>
  759. <width>111</width>
  760. <height>101</height>
  761. </rect>
  762. </property>
  763. <layout class="QVBoxLayout" name="verticalLayout">
  764. <item>
  765. <widget class="QPushButton" name="okButton">
  766. <property name="sizePolicy">
  767. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  768. <horstretch>0</horstretch>
  769. <verstretch>0</verstretch>
  770. </sizepolicy>
  771. </property>
  772. <property name="minimumSize">
  773. <size>
  774. <width>0</width>
  775. <height>36</height>
  776. </size>
  777. </property>
  778. <property name="maximumSize">
  779. <size>
  780. <width>16777215</width>
  781. <height>36</height>
  782. </size>
  783. </property>
  784. <property name="text">
  785. <string>Ok</string>
  786. </property>
  787. </widget>
  788. </item>
  789. <item>
  790. <widget class="QPushButton" name="cancelButton">
  791. <property name="sizePolicy">
  792. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  793. <horstretch>0</horstretch>
  794. <verstretch>0</verstretch>
  795. </sizepolicy>
  796. </property>
  797. <property name="maximumSize">
  798. <size>
  799. <width>16777215</width>
  800. <height>36</height>
  801. </size>
  802. </property>
  803. <property name="text">
  804. <string>Cancel</string>
  805. </property>
  806. </widget>
  807. </item>
  808. </layout>
  809. </widget>
  810. </widget>
  811. <resources/>
  812. <connections/>
  813. </ui>