Commit 03ba6982 authored by xuanweiace's avatar xuanweiace

upd ui参数和展示的文字啥的

parent 826eb33f
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>585</width> <width>585</width>
<height>342</height> <height>326</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>230</x> <x>220</x>
<y>340</y> <y>250</y>
<width>341</width> <width>341</width>
<height>32</height> <height>32</height>
</rect> </rect>
......
...@@ -12,9 +12,9 @@ from PyQt5 import QtCore, QtGui, QtWidgets ...@@ -12,9 +12,9 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object): class Ui_Dialog(object):
def setupUi(self, Dialog): def setupUi(self, Dialog):
Dialog.setObjectName("Dialog") Dialog.setObjectName("Dialog")
Dialog.resize(585, 342) Dialog.resize(585, 326)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(230, 340, 341, 32)) self.buttonBox.setGeometry(QtCore.QRect(220, 250, 341, 32))
self.buttonBox.setToolTip("") self.buttonBox.setToolTip("")
self.buttonBox.setToolTipDuration(-1) self.buttonBox.setToolTipDuration(-1)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
......
...@@ -588,7 +588,7 @@ QPushButton:pressed { ...@@ -588,7 +588,7 @@ QPushButton:pressed {
</action> </action>
<action name="action_view_history"> <action name="action_view_history">
<property name="text"> <property name="text">
<string>history</string> <string>----</string>
</property> </property>
</action> </action>
<action name="action_refresh_tab"> <action name="action_refresh_tab">
...@@ -598,7 +598,7 @@ QPushButton:pressed { ...@@ -598,7 +598,7 @@ QPushButton:pressed {
</action> </action>
<action name="action_operate"> <action name="action_operate">
<property name="text"> <property name="text">
<string>增删行</string> <string>操作表格</string>
</property> </property>
</action> </action>
</widget> </widget>
......
...@@ -349,9 +349,9 @@ class Ui_MainWindow(object): ...@@ -349,9 +349,9 @@ class Ui_MainWindow(object):
self.action_redo.setText(_translate("MainWindow", "重做")) self.action_redo.setText(_translate("MainWindow", "重做"))
self.actiona_3.setText(_translate("MainWindow", "旁白区间检测")) self.actiona_3.setText(_translate("MainWindow", "旁白区间检测"))
self.actiona_4.setText(_translate("MainWindow", "旁白音频合成")) self.actiona_4.setText(_translate("MainWindow", "旁白音频合成"))
self.action_view_history.setText(_translate("MainWindow", "history")) self.action_view_history.setText(_translate("MainWindow", "----"))
self.action_refresh_tab.setText(_translate("MainWindow", "刷新且保存表格")) self.action_refresh_tab.setText(_translate("MainWindow", "刷新且保存表格"))
self.action_operate.setText(_translate("MainWindow", "增删行")) self.action_operate.setText(_translate("MainWindow", "操作表格"))
from myVideoWidget import myVideoWidget from myVideoWidget import myVideoWidget
......
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>刷新 <string>填充
行信息</string> 行信息</string>
</property> </property>
</widget> </widget>
......
...@@ -137,7 +137,7 @@ class Ui_Dialog(object): ...@@ -137,7 +137,7 @@ class Ui_Dialog(object):
self.pushButton.setText(_translate("Dialog", "检测")) self.pushButton.setText(_translate("Dialog", "检测"))
self.pushButton_2.setText(_translate("Dialog", "修改")) self.pushButton_2.setText(_translate("Dialog", "修改"))
self.label_13.setText(_translate("Dialog", "*需要填在【字幕旁白】页面中的行数")) self.label_13.setText(_translate("Dialog", "*需要填在【字幕旁白】页面中的行数"))
self.pushButton_3.setText(_translate("Dialog", "刷新\n" self.pushButton_3.setText(_translate("Dialog", "填充\n"
"行信息")) "行信息"))
...@@ -13,14 +13,11 @@ audioPlayed = winsound.PlaySound(None, winsound.SND_NODEFAULT) ...@@ -13,14 +13,11 @@ audioPlayed = winsound.PlaySound(None, winsound.SND_NODEFAULT)
class Setting_Dialog(QDialog, Ui_Dialog): class Setting_Dialog(QDialog, Ui_Dialog):
# 开始合成信号,传参分别是video_path,audio_dir, sheet_path,speed_info, caption_path, speaker_info
# 注意这里打包成一个list,在worker端进行解参数,避免传参过多
start_assemble_signal = pyqtSignal(list)
def __init__(self, projectContext): def __init__(self, projectContext):
super(Setting_Dialog, self).__init__() super(Setting_Dialog, self).__init__()
self.setupUi(self) self.setupUi(self)
self.setWindowTitle("合成") self.setWindowTitle("设置")
self.projectContext = projectContext self.projectContext = projectContext
# todo 把所有说话人都加上来 # todo 把所有说话人都加上来
li = self.projectContext.get_all_speaker_info() li = self.projectContext.get_all_speaker_info()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment