-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.ui
622 lines (622 loc) · 20 KB
/
mainwindow.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>998</width>
<height>655</height>
</rect>
</property>
<property name="windowTitle">
<string>语涵编译器</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0">
<widget class="QGroupBox" name="miscSettingsGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>其他设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="0">
<widget class="QCheckBox" name="languageCheckBox">
<property name="text">
<string>指定语言</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="verboseCheckBox">
<property name="text">
<string>显示详细信息</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1" colspan="4">
<widget class="FileSelectionWidget" name="mainExecutableSelectionWidget" native="true"/>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="languageComboBox"/>
</item>
<item row="2" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1" colspan="4">
<widget class="FileSelectionWidget" name="pluginSelectionWidget" native="true"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>主程序路径</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>插件目录</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="4">
<widget class="QCheckBox" name="autoSearchPathCheckBox">
<property name="text">
<string>添加输入文档时自动添加所在目录为搜索目录</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="outputGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>输出选项</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTabWidget" name="outputSelectionTabWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="noOutputTab">
<attribute name="title">
<string>无输出</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>(无输出时此处无选项)</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="renpyOutputTab">
<attribute name="title">
<string>RenPy</string>
</attribute>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>输出到 game 目录</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="renpyUseTemplateCheckBox">
<property name="text">
<string>使用模板</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="FileSelectionWidget" name="renpyTemplateSelectionWidget" native="true"/>
</item>
<item row="0" column="1">
<widget class="FileSelectionWidget" name="renpyOutputDirWidget" native="true"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="webgalOutputTab">
<attribute name="title">
<string>WebGal</string>
</attribute>
<layout class="QFormLayout" name="formLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>输出到 game 目录</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="FileSelectionWidget" name="webgalOutputDirWidget" native="true"/>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="webgalUseTemplateCheckBox">
<property name="text">
<string>使用模板</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="FileSelectionWidget" name="webgalTemplateSelectionWidget" native="true"/>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QGroupBox" name="inputGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>输入选项</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0" rowspan="2">
<widget class="FileListInputWidget" name="inputWidget" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
</widget>
</item>
<item row="1" column="1" rowspan="2">
<widget class="FileListInputWidget" name="searchPathInputWidget" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QGroupBox" name="executeGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>执行</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QPlainTextEdit" name="commandTextEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>100</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="executePushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>执行</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="3">
<widget class="QGroupBox" name="passGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>优化、分析选项</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="entryInferenceCheckBox">
<property name="toolTip">
<string>对于 RenPy 输出来说,这个选项会加 label start, 内容为跳转至第一个没有被调用的函数、章节入口处</string>
</property>
<property name="text">
<string>添加起始跳转</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="longSaySplittinggroupBox">
<property name="toolTip">
<string>如果某句发言内容过长,启用该优化后所有长于给定长度的发言都将被按标点符号进行分隔</string>
</property>
<property name="title">
<string>长句分句</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="2">
<widget class="QLabel" name="label_7">
<property name="text">
<string>目标半宽字符数</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>半宽字符数(英文=1,汉字=2)达到该值时开始分隔:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="minlenSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>9999</number>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QSpinBox" name="targetlenSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>9999</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="icfgGroupBox">
<property name="title">
<string>生成控制流图</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QFormLayout" name="formLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>保存到:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="FileSelectionWidget" name="icfgExportSelectionWidget" native="true"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="assetUsageGroupBox">
<property name="title">
<string>资源使用情况分析</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_11">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>保存到:</string>
</property>
</widget>
</item>
<item>
<widget class="FileSelectionWidget" name="assetUsageSelectionWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="sayDumpGroupBox">
<property name="title">
<string>导出发言信息</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>格式预设</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="sayDumpPresetComboBox"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>保存到:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="FileSelectionWidget" name="sayDumpLocationSelectionWidget" native="true"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="customPassGroupBox">
<property name="toolTip">
<string>如果您在插件中自定义了分析或转换,可以在这加入对其的调用</string>
</property>
<property name="title">
<string>自定义分析、转换</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QFormLayout" name="formLayout_5">
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>IR 阶段 (VNModel)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="irPassLineEdit"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="translationImportGroupBox">
<property name="title">
<string>导入自定义翻译、别名</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_12">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>输入JSON文件:</string>
</property>
</widget>
</item>
<item>
<widget class="FileSelectionWidget" name="customTranslationImportLocationSelectionWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>998</width>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="operationMenu">
<property name="title">
<string>操作</string>
</property>
<addaction name="actionTranslationExport"/>
</widget>
<widget class="QMenu" name="toolMenu">
<property name="title">
<string>工具</string>
</property>
<addaction name="actionImagePackTool"/>
<addaction name="actionNewUI"/>
</widget>
<widget class="QMenu" name="helpMenu">
<property name="title">
<string>帮助</string>
</property>
<addaction name="actionDocs"/>
</widget>
<widget class="QMenu" name="menuDummyHelp">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string><-- 如果不知道怎么上手的话请点这里 "帮助" -> "打开文档"</string>
</property>
</widget>
<addaction name="operationMenu"/>
<addaction name="toolMenu"/>
<addaction name="helpMenu"/>
<addaction name="menuDummyHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionTranslationExport">
<property name="text">
<string>导出翻译、别名文件</string>
</property>
</action>
<action name="actionImagePackTool">
<property name="text">
<string>图片包</string>
</property>
</action>
<action name="actionNewUI">
<property name="text">
<string>新版UI</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
</action>
<action name="actionDocs">
<property name="text">
<string>打开文档</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>FileSelectionWidget</class>
<extends>QWidget</extends>
<header>fileselectionwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>FileListInputWidget</class>
<extends>QWidget</extends>
<header>filelistinputwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>