importwidget.ui 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ImportWidget</class>
  4. <widget class="QWidget" name="ImportWidget">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1037</width>
  10. <height>985</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Form</string>
  15. </property>
  16. <property name="styleSheet">
  17. <string notr="true">QLabel, QRadioButton, QCheckBox {
  18. color: white;
  19. }</string>
  20. </property>
  21. <layout class="QGridLayout" name="gridLayout">
  22. <item row="0" column="0">
  23. <widget class="QWidget" name="import_widget" native="true">
  24. <property name="sizePolicy">
  25. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  26. <horstretch>0</horstretch>
  27. <verstretch>0</verstretch>
  28. </sizepolicy>
  29. </property>
  30. <property name="styleSheet">
  31. <string notr="true"/>
  32. </property>
  33. <layout class="QGridLayout" name="gridLayout_6">
  34. <property name="leftMargin">
  35. <number>0</number>
  36. </property>
  37. <property name="topMargin">
  38. <number>0</number>
  39. </property>
  40. <property name="rightMargin">
  41. <number>0</number>
  42. </property>
  43. <property name="bottomMargin">
  44. <number>0</number>
  45. </property>
  46. <property name="spacing">
  47. <number>0</number>
  48. </property>
  49. <item row="1" column="1">
  50. <widget class="QWidget" name="file_import_widget" native="true">
  51. <property name="sizePolicy">
  52. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  53. <horstretch>0</horstretch>
  54. <verstretch>0</verstretch>
  55. </sizepolicy>
  56. </property>
  57. <property name="minimumSize">
  58. <size>
  59. <width>0</width>
  60. <height>0</height>
  61. </size>
  62. </property>
  63. <property name="styleSheet">
  64. <string notr="true"/>
  65. </property>
  66. <layout class="QGridLayout" name="gridLayout_2">
  67. <property name="verticalSpacing">
  68. <number>0</number>
  69. </property>
  70. <item row="0" column="0" colspan="2">
  71. <widget class="QLabel" name="info_common">
  72. <property name="font">
  73. <font>
  74. <family>Trajan Pro 3</family>
  75. </font>
  76. </property>
  77. <property name="mouseTracking">
  78. <bool>true</bool>
  79. </property>
  80. <property name="text">
  81. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Импортируйте в игру отдельные файлы данных, заменяя ими текущие версии &lt;span style=&quot; color:#ff7700;&quot;&gt;(требуется указание ID файла)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;О формате файлов, используемых в игре можно узнать в гайде на сайте русификации.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot; font-weight:600; color:#ffff00;&quot;&gt;Внимание!&lt;/span&gt;&lt;br/&gt;После установки файлов версия данных автоматически сменится на &amp;quot;русифицированную&amp;quot;!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  82. </property>
  83. <property name="textFormat">
  84. <enum>Qt::RichText</enum>
  85. </property>
  86. <property name="wordWrap">
  87. <bool>true</bool>
  88. </property>
  89. <property name="openExternalLinks">
  90. <bool>true</bool>
  91. </property>
  92. </widget>
  93. </item>
  94. <item row="1" column="0" colspan="2">
  95. <widget class="QWidget" name="widget" native="true">
  96. <property name="minimumSize">
  97. <size>
  98. <width>0</width>
  99. <height>50</height>
  100. </size>
  101. </property>
  102. <layout class="QHBoxLayout" name="horizontalLayout">
  103. <item>
  104. <widget class="QLabel" name="label_4_common">
  105. <property name="sizePolicy">
  106. <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
  107. <horstretch>0</horstretch>
  108. <verstretch>0</verstretch>
  109. </sizepolicy>
  110. </property>
  111. <property name="text">
  112. <string>ID файла:</string>
  113. </property>
  114. </widget>
  115. </item>
  116. <item>
  117. <widget class="QLineEdit" name="import_file_id_common">
  118. <property name="sizePolicy">
  119. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  120. <horstretch>0</horstretch>
  121. <verstretch>0</verstretch>
  122. </sizepolicy>
  123. </property>
  124. </widget>
  125. </item>
  126. <item>
  127. <spacer name="horizontalSpacer_2">
  128. <property name="orientation">
  129. <enum>Qt::Horizontal</enum>
  130. </property>
  131. <property name="sizeHint" stdset="0">
  132. <size>
  133. <width>40</width>
  134. <height>20</height>
  135. </size>
  136. </property>
  137. </spacer>
  138. </item>
  139. </layout>
  140. </widget>
  141. </item>
  142. <item row="2" column="0" colspan="2">
  143. <widget class="QWidget" name="apply_widget_2" native="true">
  144. <property name="sizePolicy">
  145. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  146. <horstretch>0</horstretch>
  147. <verstretch>0</verstretch>
  148. </sizepolicy>
  149. </property>
  150. <layout class="QHBoxLayout" name="horizontalLayout_6">
  151. <item>
  152. <spacer name="horizontalSpacer_7">
  153. <property name="orientation">
  154. <enum>Qt::Horizontal</enum>
  155. </property>
  156. <property name="sizeHint" stdset="0">
  157. <size>
  158. <width>554</width>
  159. <height>14</height>
  160. </size>
  161. </property>
  162. </spacer>
  163. </item>
  164. <item>
  165. <widget class="QPushButton" name="file_import_button_common">
  166. <property name="text">
  167. <string>Импортировать</string>
  168. </property>
  169. </widget>
  170. </item>
  171. </layout>
  172. </widget>
  173. </item>
  174. </layout>
  175. </widget>
  176. </item>
  177. <item row="2" column="1">
  178. <widget class="QWidget" name="textfragment_import_widget" native="true">
  179. <property name="sizePolicy">
  180. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  181. <horstretch>0</horstretch>
  182. <verstretch>0</verstretch>
  183. </sizepolicy>
  184. </property>
  185. <property name="minimumSize">
  186. <size>
  187. <width>0</width>
  188. <height>100</height>
  189. </size>
  190. </property>
  191. <property name="styleSheet">
  192. <string notr="true"/>
  193. </property>
  194. <layout class="QVBoxLayout" name="verticalLayout_3">
  195. <item>
  196. <widget class="QLabel" name="info_common_2">
  197. <property name="sizePolicy">
  198. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  199. <horstretch>0</horstretch>
  200. <verstretch>0</verstretch>
  201. </sizepolicy>
  202. </property>
  203. <property name="font">
  204. <font>
  205. <family>Trajan Pro 3</family>
  206. </font>
  207. </property>
  208. <property name="mouseTracking">
  209. <bool>false</bool>
  210. </property>
  211. <property name="text">
  212. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Используйте форму для быстрой замены текстового фрагмента в игре. Чтобы получить текущие данные введите id файла и id фрагмента и нажмите кнопку &amp;quot;Найти&amp;quot;&lt;/p&gt;&lt;p&gt;О формате текстовых фрагментов можно узнать в соответствующем гайде на сайте русификации.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot; font-weight:600; color:#ffff00;&quot;&gt;Внимание!&lt;/span&gt;&lt;br/&gt;После установки файлов версия данных автоматически сменится на &amp;quot;русифицированную&amp;quot;!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  213. </property>
  214. <property name="textFormat">
  215. <enum>Qt::RichText</enum>
  216. </property>
  217. <property name="wordWrap">
  218. <bool>true</bool>
  219. </property>
  220. <property name="openExternalLinks">
  221. <bool>true</bool>
  222. </property>
  223. </widget>
  224. </item>
  225. <item>
  226. <widget class="QWidget" name="widget_10" native="true">
  227. <property name="sizePolicy">
  228. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  229. <horstretch>0</horstretch>
  230. <verstretch>0</verstretch>
  231. </sizepolicy>
  232. </property>
  233. <layout class="QHBoxLayout" name="horizontalLayout_3">
  234. <item>
  235. <widget class="QLabel" name="label_12_common">
  236. <property name="text">
  237. <string>ID файла:</string>
  238. </property>
  239. </widget>
  240. </item>
  241. <item>
  242. <widget class="QLineEdit" name="file_id_input_common">
  243. <property name="clearButtonEnabled">
  244. <bool>true</bool>
  245. </property>
  246. </widget>
  247. </item>
  248. <item>
  249. <widget class="QLabel" name="label_14_common">
  250. <property name="text">
  251. <string>ID фрагмента:</string>
  252. </property>
  253. </widget>
  254. </item>
  255. <item>
  256. <widget class="QLineEdit" name="fragment_id_input_common">
  257. <property name="clearButtonEnabled">
  258. <bool>true</bool>
  259. </property>
  260. </widget>
  261. </item>
  262. <item>
  263. <widget class="QPushButton" name="get_file_fragments_button_common">
  264. <property name="text">
  265. <string>Найти</string>
  266. </property>
  267. </widget>
  268. </item>
  269. </layout>
  270. </widget>
  271. </item>
  272. <item>
  273. <widget class="QWidget" name="widget_9" native="true">
  274. <layout class="QGridLayout" name="gridLayout_9">
  275. <item row="1" column="0">
  276. <spacer name="horizontalSpacer_3">
  277. <property name="orientation">
  278. <enum>Qt::Horizontal</enum>
  279. </property>
  280. <property name="sizeType">
  281. <enum>QSizePolicy::Fixed</enum>
  282. </property>
  283. <property name="sizeHint" stdset="0">
  284. <size>
  285. <width>40</width>
  286. <height>2</height>
  287. </size>
  288. </property>
  289. </spacer>
  290. </item>
  291. <item row="0" column="0" colspan="3">
  292. <widget class="QLabel" name="label_15_common">
  293. <property name="text">
  294. <string>Содержимое фрагмента:</string>
  295. </property>
  296. </widget>
  297. </item>
  298. <item row="1" column="1">
  299. <widget class="QTextEdit" name="fragment_content_common">
  300. <property name="sizeAdjustPolicy">
  301. <enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
  302. </property>
  303. <property name="html">
  304. <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  305. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  306. p, li { white-space: pre-wrap; }
  307. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
  308. &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  309. </property>
  310. <property name="acceptRichText">
  311. <bool>false</bool>
  312. </property>
  313. </widget>
  314. </item>
  315. </layout>
  316. </widget>
  317. </item>
  318. <item>
  319. <widget class="QWidget" name="widget_8" native="true">
  320. <property name="sizePolicy">
  321. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  322. <horstretch>0</horstretch>
  323. <verstretch>0</verstretch>
  324. </sizepolicy>
  325. </property>
  326. <layout class="QGridLayout" name="gridLayout_10">
  327. <item row="0" column="0" colspan="2">
  328. <widget class="QLabel" name="label_16_common">
  329. <property name="text">
  330. <string>Текстовые аргументы:</string>
  331. </property>
  332. </widget>
  333. </item>
  334. <item row="1" column="0">
  335. <spacer name="horizontalSpacer_4">
  336. <property name="orientation">
  337. <enum>Qt::Horizontal</enum>
  338. </property>
  339. <property name="sizeType">
  340. <enum>QSizePolicy::Fixed</enum>
  341. </property>
  342. <property name="sizeHint" stdset="0">
  343. <size>
  344. <width>40</width>
  345. <height>2</height>
  346. </size>
  347. </property>
  348. </spacer>
  349. </item>
  350. <item row="1" column="1">
  351. <widget class="QLineEdit" name="fragment_args_common"/>
  352. </item>
  353. </layout>
  354. </widget>
  355. </item>
  356. <item>
  357. <widget class="QWidget" name="apply_widget" native="true">
  358. <property name="sizePolicy">
  359. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  360. <horstretch>0</horstretch>
  361. <verstretch>0</verstretch>
  362. </sizepolicy>
  363. </property>
  364. <layout class="QHBoxLayout" name="horizontalLayout_4">
  365. <item>
  366. <spacer name="horizontalSpacer_5">
  367. <property name="orientation">
  368. <enum>Qt::Horizontal</enum>
  369. </property>
  370. <property name="sizeHint" stdset="0">
  371. <size>
  372. <width>554</width>
  373. <height>14</height>
  374. </size>
  375. </property>
  376. </spacer>
  377. </item>
  378. <item>
  379. <widget class="QPushButton" name="textfragment_import_common">
  380. <property name="text">
  381. <string>Импортировать</string>
  382. </property>
  383. </widget>
  384. </item>
  385. </layout>
  386. </widget>
  387. </item>
  388. </layout>
  389. </widget>
  390. </item>
  391. <item row="0" column="1">
  392. <widget class="QWidget" name="database_import_widget" native="true">
  393. <property name="sizePolicy">
  394. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  395. <horstretch>0</horstretch>
  396. <verstretch>0</verstretch>
  397. </sizepolicy>
  398. </property>
  399. <property name="minimumSize">
  400. <size>
  401. <width>0</width>
  402. <height>0</height>
  403. </size>
  404. </property>
  405. <property name="styleSheet">
  406. <string notr="true"/>
  407. </property>
  408. <layout class="QVBoxLayout" name="verticalLayout_2">
  409. <item>
  410. <widget class="QLabel" name="info_common_4">
  411. <property name="font">
  412. <font>
  413. <family>Trajan Pro 3</family>
  414. </font>
  415. </property>
  416. <property name="mouseTracking">
  417. <bool>false</bool>
  418. </property>
  419. <property name="text">
  420. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Импортируйте в игру ресурсы из заранее подготовенной базы данных Наследия &lt;/p&gt;&lt;p&gt;О формате базы данных Наследия можно узнать в гайде на сайте русификации.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot; font-weight:600; color:#ffff00;&quot;&gt;Внимание!&lt;/span&gt;&lt;br/&gt;После установки файлов версия данных автоматически сменится на &amp;quot;русифицированную&amp;quot;!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  421. </property>
  422. <property name="textFormat">
  423. <enum>Qt::RichText</enum>
  424. </property>
  425. <property name="wordWrap">
  426. <bool>true</bool>
  427. </property>
  428. <property name="openExternalLinks">
  429. <bool>true</bool>
  430. </property>
  431. </widget>
  432. </item>
  433. <item>
  434. <widget class="QWidget" name="apply_widget_3" native="true">
  435. <property name="sizePolicy">
  436. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  437. <horstretch>0</horstretch>
  438. <verstretch>0</verstretch>
  439. </sizepolicy>
  440. </property>
  441. <layout class="QHBoxLayout" name="horizontalLayout_7">
  442. <item>
  443. <spacer name="horizontalSpacer_8">
  444. <property name="orientation">
  445. <enum>Qt::Horizontal</enum>
  446. </property>
  447. <property name="sizeHint" stdset="0">
  448. <size>
  449. <width>554</width>
  450. <height>14</height>
  451. </size>
  452. </property>
  453. </spacer>
  454. </item>
  455. <item>
  456. <widget class="QPushButton" name="database_import_button_common">
  457. <property name="text">
  458. <string>Импортировать</string>
  459. </property>
  460. </widget>
  461. </item>
  462. </layout>
  463. </widget>
  464. </item>
  465. </layout>
  466. </widget>
  467. </item>
  468. <item row="0" column="0" rowspan="3">
  469. <widget class="QWidget" name="radio_import_widget" native="true">
  470. <property name="sizePolicy">
  471. <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
  472. <horstretch>0</horstretch>
  473. <verstretch>0</verstretch>
  474. </sizepolicy>
  475. </property>
  476. <property name="minimumSize">
  477. <size>
  478. <width>0</width>
  479. <height>50</height>
  480. </size>
  481. </property>
  482. <layout class="QVBoxLayout" name="verticalLayout">
  483. <item>
  484. <widget class="QRadioButton" name="database_import_radiobutton_common">
  485. <property name="text">
  486. <string>Импорт файлов из базы данных</string>
  487. </property>
  488. <property name="checked">
  489. <bool>true</bool>
  490. </property>
  491. </widget>
  492. </item>
  493. <item>
  494. <widget class="QRadioButton" name="file_import_radiobutton_common">
  495. <property name="text">
  496. <string>Импорт произвольного файла</string>
  497. </property>
  498. </widget>
  499. </item>
  500. <item>
  501. <widget class="QRadioButton" name="textfragment_import_radiobutton_common">
  502. <property name="text">
  503. <string>Импорт текстового фрагмента</string>
  504. </property>
  505. </widget>
  506. </item>
  507. <item>
  508. <spacer name="verticalSpacer_2">
  509. <property name="orientation">
  510. <enum>Qt::Vertical</enum>
  511. </property>
  512. <property name="sizeHint" stdset="0">
  513. <size>
  514. <width>20</width>
  515. <height>40</height>
  516. </size>
  517. </property>
  518. </spacer>
  519. </item>
  520. </layout>
  521. </widget>
  522. </item>
  523. </layout>
  524. </widget>
  525. </item>
  526. <item row="1" column="0">
  527. <spacer name="verticalSpacer">
  528. <property name="orientation">
  529. <enum>Qt::Vertical</enum>
  530. </property>
  531. <property name="sizeHint" stdset="0">
  532. <size>
  533. <width>20</width>
  534. <height>40</height>
  535. </size>
  536. </property>
  537. </spacer>
  538. </item>
  539. </layout>
  540. </widget>
  541. <resources/>
  542. <connections/>
  543. </ui>