towneventdialog.ui 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>TownEventDialog</class>
  4. <widget class="QDialog" name="TownEventDialog">
  5. <property name="windowModality">
  6. <enum>Qt::ApplicationModal</enum>
  7. </property>
  8. <property name="geometry">
  9. <rect>
  10. <x>0</x>
  11. <y>0</y>
  12. <width>693</width>
  13. <height>525</height>
  14. </rect>
  15. </property>
  16. <property name="sizePolicy">
  17. <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
  18. <horstretch>0</horstretch>
  19. <verstretch>0</verstretch>
  20. </sizepolicy>
  21. </property>
  22. <property name="windowTitle">
  23. <string>Town event</string>
  24. </property>
  25. <layout class="QVBoxLayout" name="verticalLayout_16">
  26. <property name="spacing">
  27. <number>0</number>
  28. </property>
  29. <property name="leftMargin">
  30. <number>3</number>
  31. </property>
  32. <property name="rightMargin">
  33. <number>3</number>
  34. </property>
  35. <item>
  36. <widget class="QTabWidget" name="tabWidget">
  37. <property name="currentIndex">
  38. <number>0</number>
  39. </property>
  40. <widget class="QWidget" name="generalTab">
  41. <attribute name="title">
  42. <string>General</string>
  43. </attribute>
  44. <widget class="QWidget" name="verticalLayoutWidget">
  45. <property name="geometry">
  46. <rect>
  47. <x>9</x>
  48. <y>9</y>
  49. <width>511</width>
  50. <height>351</height>
  51. </rect>
  52. </property>
  53. <layout class="QVBoxLayout" name="verticalLayout" stretch="0,0">
  54. <item>
  55. <widget class="QLineEdit" name="eventNameText">
  56. <property name="placeholderText">
  57. <string>Event name</string>
  58. </property>
  59. </widget>
  60. </item>
  61. <item>
  62. <widget class="QPlainTextEdit" name="eventMessageText">
  63. <property name="placeholderText">
  64. <string>Type event message text</string>
  65. </property>
  66. </widget>
  67. </item>
  68. </layout>
  69. </widget>
  70. <widget class="QWidget" name="horizontalLayoutWidget">
  71. <property name="geometry">
  72. <rect>
  73. <x>10</x>
  74. <y>370</y>
  75. <width>511</width>
  76. <height>61</height>
  77. </rect>
  78. </property>
  79. <layout class="QHBoxLayout" name="horizontalLayout">
  80. <item>
  81. <layout class="QVBoxLayout" name="verticalLayout_2">
  82. <item>
  83. <widget class="QLabel" name="eventFirstOccurrenceText">
  84. <property name="text">
  85. <string>Day of first occurrence</string>
  86. </property>
  87. </widget>
  88. </item>
  89. <item>
  90. <widget class="QSpinBox" name="eventFirstOccurrence"/>
  91. </item>
  92. </layout>
  93. </item>
  94. <item>
  95. <layout class="QVBoxLayout" name="verticalLayout_3">
  96. <item>
  97. <widget class="QLabel" name="eventRepeatAfterText">
  98. <property name="text">
  99. <string>Repeat after (0 = no repeat)</string>
  100. </property>
  101. </widget>
  102. </item>
  103. <item>
  104. <widget class="QSpinBox" name="eventRepeatAfter"/>
  105. </item>
  106. </layout>
  107. </item>
  108. </layout>
  109. </widget>
  110. <widget class="QWidget" name="verticalLayoutWidget_4">
  111. <property name="geometry">
  112. <rect>
  113. <x>529</x>
  114. <y>9</y>
  115. <width>141</width>
  116. <height>421</height>
  117. </rect>
  118. </property>
  119. <layout class="QVBoxLayout" name="verticalLayout_4">
  120. <item>
  121. <widget class="QLabel" name="playersAffectedText">
  122. <property name="text">
  123. <string>Affected players</string>
  124. </property>
  125. </widget>
  126. </item>
  127. <item>
  128. <widget class="QListWidget" name="playersAffected">
  129. <property name="sizePolicy">
  130. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  131. <horstretch>0</horstretch>
  132. <verstretch>0</verstretch>
  133. </sizepolicy>
  134. </property>
  135. <property name="maximumSize">
  136. <size>
  137. <width>200</width>
  138. <height>16777215</height>
  139. </size>
  140. </property>
  141. </widget>
  142. </item>
  143. <item>
  144. <widget class="QCheckBox" name="eventAffectsHuman">
  145. <property name="text">
  146. <string>affects human</string>
  147. </property>
  148. </widget>
  149. </item>
  150. <item>
  151. <layout class="QHBoxLayout" name="horizontalLayout_2">
  152. <item>
  153. <widget class="QCheckBox" name="eventAffectsCpu">
  154. <property name="text">
  155. <string>affects AI</string>
  156. </property>
  157. </widget>
  158. </item>
  159. </layout>
  160. </item>
  161. </layout>
  162. </widget>
  163. </widget>
  164. <widget class="QWidget" name="resourcesTab">
  165. <attribute name="title">
  166. <string>Resources</string>
  167. </attribute>
  168. <widget class="QTableWidget" name="resourcesTable">
  169. <property name="geometry">
  170. <rect>
  171. <x>10</x>
  172. <y>10</y>
  173. <width>661</width>
  174. <height>421</height>
  175. </rect>
  176. </property>
  177. <property name="minimumSize">
  178. <size>
  179. <width>0</width>
  180. <height>0</height>
  181. </size>
  182. </property>
  183. <property name="columnCount">
  184. <number>2</number>
  185. </property>
  186. <attribute name="horizontalHeaderVisible">
  187. <bool>false</bool>
  188. </attribute>
  189. <attribute name="verticalHeaderVisible">
  190. <bool>false</bool>
  191. </attribute>
  192. <column/>
  193. <column/>
  194. </widget>
  195. </widget>
  196. <widget class="QWidget" name="buildingsTab">
  197. <attribute name="title">
  198. <string>Buildings</string>
  199. </attribute>
  200. <widget class="QTreeView" name="buildingsTree">
  201. <property name="geometry">
  202. <rect>
  203. <x>10</x>
  204. <y>10</y>
  205. <width>661</width>
  206. <height>421</height>
  207. </rect>
  208. </property>
  209. <property name="editTriggers">
  210. <set>QAbstractItemView::NoEditTriggers</set>
  211. </property>
  212. <attribute name="headerVisible">
  213. <bool>false</bool>
  214. </attribute>
  215. </widget>
  216. </widget>
  217. <widget class="QWidget" name="creaturesTab">
  218. <attribute name="title">
  219. <string>Creatures</string>
  220. </attribute>
  221. <widget class="QTableWidget" name="creaturesTable">
  222. <property name="geometry">
  223. <rect>
  224. <x>10</x>
  225. <y>10</y>
  226. <width>661</width>
  227. <height>421</height>
  228. </rect>
  229. </property>
  230. <property name="rowCount">
  231. <number>7</number>
  232. </property>
  233. <property name="columnCount">
  234. <number>2</number>
  235. </property>
  236. <attribute name="horizontalHeaderVisible">
  237. <bool>false</bool>
  238. </attribute>
  239. <attribute name="verticalHeaderVisible">
  240. <bool>false</bool>
  241. </attribute>
  242. <row/>
  243. <row/>
  244. <row/>
  245. <row/>
  246. <row/>
  247. <row/>
  248. <row/>
  249. <column/>
  250. <column/>
  251. </widget>
  252. </widget>
  253. </widget>
  254. </item>
  255. <item>
  256. <widget class="QPushButton" name="okButton">
  257. <property name="text">
  258. <string>OK</string>
  259. </property>
  260. </widget>
  261. </item>
  262. </layout>
  263. </widget>
  264. <resources/>
  265. <connections/>
  266. </ui>