Update ui.
This commit is contained in:
parent
f452125973
commit
8be0d139b2
@ -14,201 +14,195 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
class Ui_MainWindow(object):
|
||||
def setupUi(self, MainWindow):
|
||||
MainWindow.setObjectName("MainWindow")
|
||||
MainWindow.resize(870, 566)
|
||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||
self.centralwidget.setObjectName("centralwidget")
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.h_layout_select_video = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_select_video.setObjectName("h_layout_select_video")
|
||||
self.line_edit_video = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_video.setText("")
|
||||
self.line_edit_video.setObjectName("line_edit_video")
|
||||
self.h_layout_select_video.addWidget(self.line_edit_video)
|
||||
self.push_button_wideo = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_wideo.setObjectName("push_button_wideo")
|
||||
self.h_layout_select_video.addWidget(self.push_button_wideo)
|
||||
self.verticalLayout.addLayout(self.h_layout_select_video)
|
||||
MainWindow.resize(861, 775)
|
||||
self.central_widget = QtWidgets.QWidget(MainWindow)
|
||||
self.central_widget.setMinimumSize(QtCore.QSize(700, 540))
|
||||
self.central_widget.setObjectName("central_widget")
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.central_widget)
|
||||
self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.h_layout_select_audio1 = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_select_audio1.setObjectName("h_layout_select_audio1")
|
||||
self.line_edit_audio1 = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_audio1 = QtWidgets.QLineEdit(self.central_widget)
|
||||
self.line_edit_audio1.setText("")
|
||||
self.line_edit_audio1.setObjectName("line_edit_audio1")
|
||||
self.h_layout_select_audio1.addWidget(self.line_edit_audio1)
|
||||
self.line_edit_name1 = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_name1 = QtWidgets.QLineEdit(self.central_widget)
|
||||
self.line_edit_name1.setText("")
|
||||
self.line_edit_name1.setObjectName("line_edit_name1")
|
||||
self.h_layout_select_audio1.addWidget(self.line_edit_name1)
|
||||
self.push_button_audio1 = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_audio1 = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_audio1.setObjectName("push_button_audio1")
|
||||
self.h_layout_select_audio1.addWidget(self.push_button_audio1)
|
||||
self.verticalLayout.addLayout(self.h_layout_select_audio1)
|
||||
self.verticalLayout_2.addLayout(self.h_layout_select_audio1)
|
||||
self.h_layout_select_audio2 = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_select_audio2.setObjectName("h_layout_select_audio2")
|
||||
self.line_edit_audio2 = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_audio2 = QtWidgets.QLineEdit(self.central_widget)
|
||||
self.line_edit_audio2.setText("")
|
||||
self.line_edit_audio2.setObjectName("line_edit_audio2")
|
||||
self.h_layout_select_audio2.addWidget(self.line_edit_audio2)
|
||||
self.line_edit_name2 = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_name2 = QtWidgets.QLineEdit(self.central_widget)
|
||||
self.line_edit_name2.setText("")
|
||||
self.line_edit_name2.setObjectName("line_edit_name2")
|
||||
self.h_layout_select_audio2.addWidget(self.line_edit_name2)
|
||||
self.push_button_audio2 = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_audio2 = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_audio2.setObjectName("push_button_audio2")
|
||||
self.h_layout_select_audio2.addWidget(self.push_button_audio2)
|
||||
self.verticalLayout.addLayout(self.h_layout_select_audio2)
|
||||
self.h_line3 = QtWidgets.QFrame(self.centralwidget)
|
||||
self.verticalLayout_2.addLayout(self.h_layout_select_audio2)
|
||||
self.h_line3 = QtWidgets.QFrame(self.central_widget)
|
||||
self.h_line3.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.h_line3.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.h_line3.setObjectName("h_line3")
|
||||
self.verticalLayout.addWidget(self.h_line3)
|
||||
self.h_layout_avatars1 = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_avatars1.setObjectName("h_layout_avatars1")
|
||||
self.label_image1 = QtWidgets.QLabel(self.centralwidget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.label_image1.sizePolicy().hasHeightForWidth())
|
||||
self.label_image1.setSizePolicy(sizePolicy)
|
||||
self.label_image1.setMinimumSize(QtCore.QSize(100, 100))
|
||||
self.label_image1.setMaximumSize(QtCore.QSize(100, 100))
|
||||
self.label_image1.setSizeIncrement(QtCore.QSize(1, 1))
|
||||
self.label_image1.setBaseSize(QtCore.QSize(100, 100))
|
||||
self.label_image1.setFrameShape(QtWidgets.QFrame.Box)
|
||||
self.label_image1.setFrameShadow(QtWidgets.QFrame.Plain)
|
||||
self.label_image1.setText("")
|
||||
self.label_image1.setScaledContents(True)
|
||||
self.label_image1.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label_image1.setProperty("KeepAspectRatio", True)
|
||||
self.label_image1.setObjectName("label_image1")
|
||||
self.h_layout_avatars1.addWidget(self.label_image1)
|
||||
self.push_button_select_avatar1 = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_select_avatar1.setMinimumSize(QtCore.QSize(0, 0))
|
||||
self.verticalLayout_2.addWidget(self.h_line3)
|
||||
self.v_layout_avatars = QtWidgets.QVBoxLayout()
|
||||
self.v_layout_avatars.setObjectName("v_layout_avatars")
|
||||
self.h_layout_avatars_preview = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_avatars_preview.setObjectName("h_layout_avatars_preview")
|
||||
self.label_avatar_1 = QtWidgets.QLabel(self.central_widget)
|
||||
self.label_avatar_1.setMinimumSize(QtCore.QSize(100, 100))
|
||||
self.label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label_avatar_1.setObjectName("label_avatar_1")
|
||||
self.h_layout_avatars_preview.addWidget(self.label_avatar_1)
|
||||
self.label_avatar_2 = QtWidgets.QLabel(self.central_widget)
|
||||
self.label_avatar_2.setMinimumSize(QtCore.QSize(100, 100))
|
||||
self.label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label_avatar_2.setObjectName("label_avatar_2")
|
||||
self.h_layout_avatars_preview.addWidget(self.label_avatar_2)
|
||||
self.v_layout_avatars.addLayout(self.h_layout_avatars_preview)
|
||||
self.h_layout_avatars_buttons = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_avatars_buttons.setObjectName("h_layout_avatars_buttons")
|
||||
self.push_button_select_avatar1 = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_select_avatar1.setObjectName("push_button_select_avatar1")
|
||||
self.h_layout_avatars1.addWidget(self.push_button_select_avatar1)
|
||||
self.verticalLayout.addLayout(self.h_layout_avatars1)
|
||||
self.h_layout_avatars2 = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_avatars2.setObjectName("h_layout_avatars2")
|
||||
self.label_image2 = QtWidgets.QLabel(self.centralwidget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.label_image2.sizePolicy().hasHeightForWidth())
|
||||
self.label_image2.setSizePolicy(sizePolicy)
|
||||
self.label_image2.setMinimumSize(QtCore.QSize(100, 100))
|
||||
self.label_image2.setMaximumSize(QtCore.QSize(100, 100))
|
||||
self.label_image2.setSizeIncrement(QtCore.QSize(1, 1))
|
||||
self.label_image2.setBaseSize(QtCore.QSize(100, 100))
|
||||
self.label_image2.setFrameShape(QtWidgets.QFrame.Box)
|
||||
self.label_image2.setFrameShadow(QtWidgets.QFrame.Plain)
|
||||
self.label_image2.setText("")
|
||||
self.label_image2.setScaledContents(True)
|
||||
self.label_image2.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label_image2.setProperty("KeepAspectRatio", True)
|
||||
self.label_image2.setObjectName("label_image2")
|
||||
self.h_layout_avatars2.addWidget(self.label_image2)
|
||||
self.push_button_select_avatar2 = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.h_layout_avatars_buttons.addWidget(self.push_button_select_avatar1)
|
||||
self.push_button_select_avatar2 = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_select_avatar2.setMinimumSize(QtCore.QSize(0, 0))
|
||||
self.push_button_select_avatar2.setObjectName("push_button_select_avatar2")
|
||||
self.h_layout_avatars2.addWidget(self.push_button_select_avatar2)
|
||||
self.verticalLayout.addLayout(self.h_layout_avatars2)
|
||||
self.h_line2 = QtWidgets.QFrame(self.centralwidget)
|
||||
self.h_layout_avatars_buttons.addWidget(self.push_button_select_avatar2)
|
||||
self.v_layout_avatars.addLayout(self.h_layout_avatars_buttons)
|
||||
self.verticalLayout_2.addLayout(self.v_layout_avatars)
|
||||
self.h_line2 = QtWidgets.QFrame(self.central_widget)
|
||||
self.h_line2.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.h_line2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.h_line2.setObjectName("h_line2")
|
||||
self.verticalLayout.addWidget(self.h_line2)
|
||||
self.verticalLayout_2.addWidget(self.h_line2)
|
||||
self.h_layout_threshold = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_threshold.setObjectName("h_layout_threshold")
|
||||
self.label_threshold_description = QtWidgets.QLabel(self.centralwidget)
|
||||
self.label_threshold_description = QtWidgets.QLabel(self.central_widget)
|
||||
self.label_threshold_description.setMinimumSize(QtCore.QSize(200, 25))
|
||||
self.label_threshold_description.setMaximumSize(QtCore.QSize(250, 50))
|
||||
self.label_threshold_description.setObjectName("label_threshold_description")
|
||||
self.h_layout_threshold.addWidget(self.label_threshold_description)
|
||||
self.line_edit_threshold_value = QtWidgets.QLineEdit(self.centralwidget)
|
||||
self.line_edit_threshold_value.setObjectName("line_edit_threshold_value")
|
||||
self.h_layout_threshold.addWidget(self.line_edit_threshold_value)
|
||||
self.verticalLayout.addLayout(self.h_layout_threshold)
|
||||
self.h_slider = QtWidgets.QSlider(self.centralwidget)
|
||||
self.lcd_number_of_threshold = QtWidgets.QLCDNumber(self.central_widget)
|
||||
self.lcd_number_of_threshold.setMinimumSize(QtCore.QSize(100, 50))
|
||||
self.lcd_number_of_threshold.setMaximumSize(QtCore.QSize(100, 100))
|
||||
self.lcd_number_of_threshold.setFrameShape(QtWidgets.QFrame.Box)
|
||||
self.lcd_number_of_threshold.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||
self.lcd_number_of_threshold.setSmallDecimalPoint(False)
|
||||
self.lcd_number_of_threshold.setDigitCount(3)
|
||||
self.lcd_number_of_threshold.setSegmentStyle(QtWidgets.QLCDNumber.Filled)
|
||||
self.lcd_number_of_threshold.setProperty("intValue", 0)
|
||||
self.lcd_number_of_threshold.setObjectName("lcd_number_of_threshold")
|
||||
self.h_layout_threshold.addWidget(self.lcd_number_of_threshold)
|
||||
self.verticalLayout_2.addLayout(self.h_layout_threshold)
|
||||
self.h_slider = QtWidgets.QSlider(self.central_widget)
|
||||
self.h_slider.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.h_slider.setObjectName("h_slider")
|
||||
self.verticalLayout.addWidget(self.h_slider)
|
||||
self.h_line = QtWidgets.QFrame(self.centralwidget)
|
||||
self.verticalLayout_2.addWidget(self.h_slider)
|
||||
self.h_line = QtWidgets.QFrame(self.central_widget)
|
||||
self.h_line.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.h_line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.h_line.setObjectName("h_line")
|
||||
self.verticalLayout.addWidget(self.h_line)
|
||||
self.verticalLayout_2.addWidget(self.h_line)
|
||||
self.h_layout_preview_or_generate = QtWidgets.QHBoxLayout()
|
||||
self.h_layout_preview_or_generate.setObjectName("h_layout_preview_or_generate")
|
||||
self.push_button_preview = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_preview = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_preview.setObjectName("push_button_preview")
|
||||
self.h_layout_preview_or_generate.addWidget(self.push_button_preview)
|
||||
self.push_button_generate = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.push_button_generate = QtWidgets.QPushButton(self.central_widget)
|
||||
self.push_button_generate.setObjectName("push_button_generate")
|
||||
self.h_layout_preview_or_generate.addWidget(self.push_button_generate)
|
||||
self.verticalLayout.addLayout(self.h_layout_preview_or_generate)
|
||||
self.verticalLayout_2.addLayout(self.h_layout_preview_or_generate)
|
||||
self.h_line2.raise_()
|
||||
self.h_line.raise_()
|
||||
self.h_line3.raise_()
|
||||
self.h_slider.raise_()
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 870, 32))
|
||||
self.menubar.setObjectName("menubar")
|
||||
self.menuProject = QtWidgets.QMenu(self.menubar)
|
||||
self.menuProject.setObjectName("menuProject")
|
||||
MainWindow.setMenuBar(self.menubar)
|
||||
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
||||
self.statusbar.setObjectName("statusbar")
|
||||
MainWindow.setStatusBar(self.statusbar)
|
||||
self.actionNowy = QtWidgets.QAction(MainWindow)
|
||||
self.actionNowy.setObjectName("actionNowy")
|
||||
self.actionOtw_rz = QtWidgets.QAction(MainWindow)
|
||||
self.actionOtw_rz.setObjectName("actionOtw_rz")
|
||||
self.actionZapisz = QtWidgets.QAction(MainWindow)
|
||||
self.actionZapisz.setObjectName("actionZapisz")
|
||||
self.actionZapisz_jako = QtWidgets.QAction(MainWindow)
|
||||
self.actionZapisz_jako.setObjectName("actionZapisz_jako")
|
||||
self.actionZako_cz = QtWidgets.QAction(MainWindow)
|
||||
self.actionZako_cz.setObjectName("actionZako_cz")
|
||||
self.actionUstawienia = QtWidgets.QAction(MainWindow)
|
||||
self.actionUstawienia.setObjectName("actionUstawienia")
|
||||
self.actionO_programie = QtWidgets.QAction(MainWindow)
|
||||
self.actionO_programie.setObjectName("actionO_programie")
|
||||
self.menuProject.addAction(self.actionNowy)
|
||||
self.menuProject.addAction(self.actionOtw_rz)
|
||||
self.menuProject.addAction(self.actionZapisz)
|
||||
self.menuProject.addAction(self.actionZapisz_jako)
|
||||
self.menuProject.addSeparator()
|
||||
self.menuProject.addAction(self.actionO_programie)
|
||||
self.menuProject.addAction(self.actionUstawienia)
|
||||
self.menuProject.addSeparator()
|
||||
self.menuProject.addAction(self.actionZako_cz)
|
||||
self.menubar.addAction(self.menuProject.menuAction())
|
||||
MainWindow.setCentralWidget(self.central_widget)
|
||||
self.menu_bar = QtWidgets.QMenuBar(MainWindow)
|
||||
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 861, 32))
|
||||
self.menu_bar.setObjectName("menu_bar")
|
||||
self.menu_project = QtWidgets.QMenu(self.menu_bar)
|
||||
self.menu_project.setObjectName("menu_project")
|
||||
MainWindow.setMenuBar(self.menu_bar)
|
||||
self.status_bar = QtWidgets.QStatusBar(MainWindow)
|
||||
self.status_bar.setObjectName("status_bar")
|
||||
MainWindow.setStatusBar(self.status_bar)
|
||||
self.action_new = QtWidgets.QAction(MainWindow)
|
||||
self.action_new.setObjectName("action_new")
|
||||
self.action_open = QtWidgets.QAction(MainWindow)
|
||||
self.action_open.setObjectName("action_open")
|
||||
self.action_save = QtWidgets.QAction(MainWindow)
|
||||
self.action_save.setObjectName("action_save")
|
||||
self.action_save_as = QtWidgets.QAction(MainWindow)
|
||||
self.action_save_as.setObjectName("action_save_as")
|
||||
self.action_exit = QtWidgets.QAction(MainWindow)
|
||||
self.action_exit.setObjectName("action_exit")
|
||||
self.action_settings = QtWidgets.QAction(MainWindow)
|
||||
self.action_settings.setObjectName("action_settings")
|
||||
self.action_about = QtWidgets.QAction(MainWindow)
|
||||
self.action_about.setObjectName("action_about")
|
||||
self.menu_project.addAction(self.action_new)
|
||||
self.menu_project.addAction(self.action_open)
|
||||
self.menu_project.addAction(self.action_save)
|
||||
self.menu_project.addAction(self.action_save_as)
|
||||
self.menu_project.addSeparator()
|
||||
self.menu_project.addAction(self.action_settings)
|
||||
self.menu_project.addAction(self.action_about)
|
||||
self.menu_project.addSeparator()
|
||||
self.menu_project.addAction(self.action_exit)
|
||||
self.menu_bar.addAction(self.menu_project.menuAction())
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
self.action_exit.triggered.connect(MainWindow.close)
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
MainWindow.setWindowTitle(_translate("MainWindow", "MagicPodcast"))
|
||||
self.line_edit_video.setPlaceholderText(_translate("MainWindow", "Plik wideo"))
|
||||
self.push_button_wideo.setText(_translate("MainWindow", "Dodaj wideo"))
|
||||
self.line_edit_audio1.setPlaceholderText(_translate("MainWindow", "Plik audio pierwszego rozmówcy"))
|
||||
self.line_edit_name1.setPlaceholderText(_translate("MainWindow", "Imię pierwszego rozmówcy"))
|
||||
self.push_button_audio1.setText(_translate("MainWindow", "Dodaj audio 1"))
|
||||
self.line_edit_audio2.setPlaceholderText(_translate("MainWindow", "Plik audio drugiego rozmówcy"))
|
||||
self.line_edit_name2.setPlaceholderText(_translate("MainWindow", "Imię drugieo rozmówcy"))
|
||||
self.push_button_audio2.setText(_translate("MainWindow", "Dodaj audio 2"))
|
||||
self.push_button_select_avatar1.setText(_translate("MainWindow", "Wybierz awatar pierwszego rozmówcy"))
|
||||
self.push_button_select_avatar2.setText(_translate("MainWindow", "Wybierz awatar drugiego rozmówcy"))
|
||||
self.label_avatar_1.setText(_translate("MainWindow", "TextLabel"))
|
||||
self.label_avatar_2.setText(_translate("MainWindow", "TextLabel"))
|
||||
self.push_button_select_avatar1.setText(_translate("MainWindow", "Wybierz grafikę dla pierwszego rozmówcy"))
|
||||
self.push_button_select_avatar2.setText(_translate("MainWindow", "Wybierz grafikę dla drugiego rozmówcy"))
|
||||
self.label_threshold_description.setText(_translate("MainWindow", "Poziom wykrywania głosu:"))
|
||||
self.push_button_preview.setText(_translate("MainWindow", "Podgląd"))
|
||||
self.push_button_generate.setText(_translate("MainWindow", "Wygeneruj podcast"))
|
||||
self.menuProject.setTitle(_translate("MainWindow", "Projekt"))
|
||||
self.actionNowy.setText(_translate("MainWindow", "Nowy"))
|
||||
self.actionOtw_rz.setText(_translate("MainWindow", "Otwórz"))
|
||||
self.actionZapisz.setText(_translate("MainWindow", "Zapisz"))
|
||||
self.actionZapisz_jako.setText(_translate("MainWindow", "Zapisz jako"))
|
||||
self.actionZako_cz.setText(_translate("MainWindow", "Zakończ"))
|
||||
self.actionUstawienia.setText(_translate("MainWindow", "Ustawienia"))
|
||||
self.actionO_programie.setText(_translate("MainWindow", "O programie"))
|
||||
self.menu_project.setTitle(_translate("MainWindow", "Projekt"))
|
||||
self.action_new.setText(_translate("MainWindow", "Nowy projekt"))
|
||||
self.action_new.setToolTip(_translate("MainWindow", "Kliknij, aby utwórzyć nowy projekt"))
|
||||
self.action_new.setShortcut(_translate("MainWindow", "Ctrl+N"))
|
||||
self.action_open.setText(_translate("MainWindow", "Otwórz projekt"))
|
||||
self.action_open.setToolTip(_translate("MainWindow", "Kliknij, aby otworzyć istniejący projekt"))
|
||||
self.action_open.setShortcut(_translate("MainWindow", "Ctrl+O"))
|
||||
self.action_save.setText(_translate("MainWindow", "Zapisz projekt"))
|
||||
self.action_save.setToolTip(_translate("MainWindow", "Kliknij, aby zapisać aktualny projekt"))
|
||||
self.action_save.setShortcut(_translate("MainWindow", "Ctrl+S"))
|
||||
self.action_save_as.setText(_translate("MainWindow", "Zapisz projekt jako"))
|
||||
self.action_save_as.setToolTip(_translate("MainWindow", "Kliknij, aby zapisać projekt jako"))
|
||||
self.action_save_as.setShortcut(_translate("MainWindow", "Ctrl+Shift+S"))
|
||||
self.action_exit.setText(_translate("MainWindow", "Zamknij program"))
|
||||
self.action_exit.setToolTip(_translate("MainWindow", "Kliknij, aby zakończyć działanie programu"))
|
||||
self.action_exit.setShortcut(_translate("MainWindow", "Ctrl+W"))
|
||||
self.action_settings.setText(_translate("MainWindow", "Ustawienia"))
|
||||
self.action_settings.setToolTip(_translate("MainWindow", "Kliknij, aby przejść do ustawień programu"))
|
||||
self.action_settings.setShortcut(_translate("MainWindow", "Ctrl+U"))
|
||||
self.action_about.setText(_translate("MainWindow", "O programie MagicPodcast"))
|
||||
self.action_about.setToolTip(_translate("MainWindow", "Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast"))
|
||||
self.action_about.setShortcut(_translate("MainWindow", "Ctrl+I"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -6,36 +6,24 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>870</width>
|
||||
<height>566</height>
|
||||
<width>861</width>
|
||||
<height>775</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MagicPodcast</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="h_layout_select_video">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="line_edit_video">
|
||||
<property name="text">
|
||||
<string/>
|
||||
<widget class="QWidget" name="central_widget">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>700</width>
|
||||
<height>540</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>Plik wideo</string>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetDefaultConstraint</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="push_button_wideo">
|
||||
<property name="text">
|
||||
<string>Dodaj wideo</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="h_layout_select_audio1">
|
||||
<item>
|
||||
@ -106,61 +94,54 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="h_layout_avatars1">
|
||||
<layout class="QVBoxLayout" name="v_layout_avatars">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_image1">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="h_layout_avatars_preview">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_avatar_1">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="sizeIncrement">
|
||||
<size>
|
||||
<width>1</width>
|
||||
<height>1</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="baseSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="KeepAspectRatio" stdset="0">
|
||||
<bool>true</bool>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_avatar_2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="h_layout_avatars_buttons">
|
||||
<item>
|
||||
<widget class="QPushButton" name="push_button_select_avatar1">
|
||||
<property name="text">
|
||||
<string>Wybierz grafikę dla pierwszego rozmówcy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="push_button_select_avatar1">
|
||||
<widget class="QPushButton" name="push_button_select_avatar2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@ -168,73 +149,12 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Wybierz awatar pierwszego rozmówcy</string>
|
||||
<string>Wybierz grafikę dla drugiego rozmówcy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="h_layout_avatars2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_image2">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="sizeIncrement">
|
||||
<size>
|
||||
<width>1</width>
|
||||
<height>1</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="baseSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="KeepAspectRatio" stdset="0">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="push_button_select_avatar2">
|
||||
<property name="text">
|
||||
<string>Wybierz awatar drugiego rozmówcy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
@ -248,13 +168,56 @@
|
||||
<layout class="QHBoxLayout" name="h_layout_threshold">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_threshold_description">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>250</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Poziom wykrywania głosu:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="line_edit_threshold_value"/>
|
||||
<widget class="QLCDNumber" name="lcd_number_of_threshold">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<property name="smallDecimalPoint">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="digitCount">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="segmentStyle">
|
||||
<enum>QLCDNumber::Filled</enum>
|
||||
</property>
|
||||
<property name="intValue" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -295,69 +258,129 @@
|
||||
<zorder>h_line</zorder>
|
||||
<zorder>h_line3</zorder>
|
||||
<zorder>h_slider</zorder>
|
||||
<zorder>verticalLayoutWidget</zorder>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<widget class="QMenuBar" name="menu_bar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>870</width>
|
||||
<width>861</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuProject">
|
||||
<widget class="QMenu" name="menu_project">
|
||||
<property name="title">
|
||||
<string>Projekt</string>
|
||||
</property>
|
||||
<addaction name="actionNowy"/>
|
||||
<addaction name="actionOtw_rz"/>
|
||||
<addaction name="actionZapisz"/>
|
||||
<addaction name="actionZapisz_jako"/>
|
||||
<addaction name="action_new"/>
|
||||
<addaction name="action_open"/>
|
||||
<addaction name="action_save"/>
|
||||
<addaction name="action_save_as"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionO_programie"/>
|
||||
<addaction name="actionUstawienia"/>
|
||||
<addaction name="action_settings"/>
|
||||
<addaction name="action_about"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionZako_cz"/>
|
||||
<addaction name="action_exit"/>
|
||||
</widget>
|
||||
<addaction name="menuProject"/>
|
||||
<addaction name="menu_project"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<action name="actionNowy">
|
||||
<widget class="QStatusBar" name="status_bar"/>
|
||||
<action name="action_new">
|
||||
<property name="text">
|
||||
<string>Nowy</string>
|
||||
<string>Nowy projekt</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby utwórzyć nowy projekt</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+N</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOtw_rz">
|
||||
<action name="action_open">
|
||||
<property name="text">
|
||||
<string>Otwórz</string>
|
||||
<string>Otwórz projekt</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby otworzyć istniejący projekt</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZapisz">
|
||||
<action name="action_save">
|
||||
<property name="text">
|
||||
<string>Zapisz</string>
|
||||
<string>Zapisz projekt</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby zapisać aktualny projekt</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZapisz_jako">
|
||||
<action name="action_save_as">
|
||||
<property name="text">
|
||||
<string>Zapisz jako</string>
|
||||
<string>Zapisz projekt jako</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby zapisać projekt jako</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZako_cz">
|
||||
<action name="action_exit">
|
||||
<property name="text">
|
||||
<string>Zakończ</string>
|
||||
<string>Zamknij program</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby zakończyć działanie programu</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+W</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionUstawienia">
|
||||
<action name="action_settings">
|
||||
<property name="text">
|
||||
<string>Ustawienia</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby przejść do ustawień programu</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+U</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionO_programie">
|
||||
<action name="action_about">
|
||||
<property name="text">
|
||||
<string>O programie</string>
|
||||
<string>O programie MagicPodcast</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+I</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>action_exit</sender>
|
||||
<signal>triggered()</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>close()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>430</x>
|
||||
<y>387</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
|
Loading…
Reference in New Issue
Block a user