Update ui.

This commit is contained in:
Jarosław Wieczorek 2020-11-30 17:04:51 +01:00
parent f452125973
commit 8be0d139b2
2 changed files with 326 additions and 309 deletions

View File

@ -14,201 +14,195 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object): class Ui_MainWindow(object):
def setupUi(self, MainWindow): def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow") MainWindow.setObjectName("MainWindow")
MainWindow.resize(870, 566) MainWindow.resize(861, 775)
self.centralwidget = QtWidgets.QWidget(MainWindow) self.central_widget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget") self.central_widget.setMinimumSize(QtCore.QSize(700, 540))
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.central_widget.setObjectName("central_widget")
self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.central_widget)
self.h_layout_select_video = QtWidgets.QHBoxLayout() self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.h_layout_select_video.setObjectName("h_layout_select_video") self.verticalLayout_2.setObjectName("verticalLayout_2")
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)
self.h_layout_select_audio1 = QtWidgets.QHBoxLayout() self.h_layout_select_audio1 = QtWidgets.QHBoxLayout()
self.h_layout_select_audio1.setObjectName("h_layout_select_audio1") 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.setText("")
self.line_edit_audio1.setObjectName("line_edit_audio1") self.line_edit_audio1.setObjectName("line_edit_audio1")
self.h_layout_select_audio1.addWidget(self.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.setText("")
self.line_edit_name1.setObjectName("line_edit_name1") self.line_edit_name1.setObjectName("line_edit_name1")
self.h_layout_select_audio1.addWidget(self.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.push_button_audio1.setObjectName("push_button_audio1")
self.h_layout_select_audio1.addWidget(self.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 = QtWidgets.QHBoxLayout()
self.h_layout_select_audio2.setObjectName("h_layout_select_audio2") 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.setText("")
self.line_edit_audio2.setObjectName("line_edit_audio2") self.line_edit_audio2.setObjectName("line_edit_audio2")
self.h_layout_select_audio2.addWidget(self.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.setText("")
self.line_edit_name2.setObjectName("line_edit_name2") self.line_edit_name2.setObjectName("line_edit_name2")
self.h_layout_select_audio2.addWidget(self.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.push_button_audio2.setObjectName("push_button_audio2")
self.h_layout_select_audio2.addWidget(self.push_button_audio2) self.h_layout_select_audio2.addWidget(self.push_button_audio2)
self.verticalLayout.addLayout(self.h_layout_select_audio2) self.verticalLayout_2.addLayout(self.h_layout_select_audio2)
self.h_line3 = QtWidgets.QFrame(self.centralwidget) self.h_line3 = QtWidgets.QFrame(self.central_widget)
self.h_line3.setFrameShape(QtWidgets.QFrame.HLine) self.h_line3.setFrameShape(QtWidgets.QFrame.HLine)
self.h_line3.setFrameShadow(QtWidgets.QFrame.Sunken) self.h_line3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.h_line3.setObjectName("h_line3") self.h_line3.setObjectName("h_line3")
self.verticalLayout.addWidget(self.h_line3) self.verticalLayout_2.addWidget(self.h_line3)
self.h_layout_avatars1 = QtWidgets.QHBoxLayout() self.v_layout_avatars = QtWidgets.QVBoxLayout()
self.h_layout_avatars1.setObjectName("h_layout_avatars1") self.v_layout_avatars.setObjectName("v_layout_avatars")
self.label_image1 = QtWidgets.QLabel(self.centralwidget) self.h_layout_avatars_preview = QtWidgets.QHBoxLayout()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) self.h_layout_avatars_preview.setObjectName("h_layout_avatars_preview")
sizePolicy.setHorizontalStretch(0) self.label_avatar_1 = QtWidgets.QLabel(self.central_widget)
sizePolicy.setVerticalStretch(0) self.label_avatar_1.setMinimumSize(QtCore.QSize(100, 100))
sizePolicy.setHeightForWidth(self.label_image1.sizePolicy().hasHeightForWidth()) self.label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
self.label_image1.setSizePolicy(sizePolicy) self.label_avatar_1.setObjectName("label_avatar_1")
self.label_image1.setMinimumSize(QtCore.QSize(100, 100)) self.h_layout_avatars_preview.addWidget(self.label_avatar_1)
self.label_image1.setMaximumSize(QtCore.QSize(100, 100)) self.label_avatar_2 = QtWidgets.QLabel(self.central_widget)
self.label_image1.setSizeIncrement(QtCore.QSize(1, 1)) self.label_avatar_2.setMinimumSize(QtCore.QSize(100, 100))
self.label_image1.setBaseSize(QtCore.QSize(100, 100)) self.label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_image1.setFrameShape(QtWidgets.QFrame.Box) self.label_avatar_2.setObjectName("label_avatar_2")
self.label_image1.setFrameShadow(QtWidgets.QFrame.Plain) self.h_layout_avatars_preview.addWidget(self.label_avatar_2)
self.label_image1.setText("") self.v_layout_avatars.addLayout(self.h_layout_avatars_preview)
self.label_image1.setScaledContents(True) self.h_layout_avatars_buttons = QtWidgets.QHBoxLayout()
self.label_image1.setAlignment(QtCore.Qt.AlignCenter) self.h_layout_avatars_buttons.setObjectName("h_layout_avatars_buttons")
self.label_image1.setProperty("KeepAspectRatio", True) self.push_button_select_avatar1 = QtWidgets.QPushButton(self.central_widget)
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.push_button_select_avatar1.setObjectName("push_button_select_avatar1") self.push_button_select_avatar1.setObjectName("push_button_select_avatar1")
self.h_layout_avatars1.addWidget(self.push_button_select_avatar1) self.h_layout_avatars_buttons.addWidget(self.push_button_select_avatar1)
self.verticalLayout.addLayout(self.h_layout_avatars1) self.push_button_select_avatar2 = QtWidgets.QPushButton(self.central_widget)
self.h_layout_avatars2 = QtWidgets.QHBoxLayout() self.push_button_select_avatar2.setMinimumSize(QtCore.QSize(0, 0))
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.push_button_select_avatar2.setObjectName("push_button_select_avatar2") self.push_button_select_avatar2.setObjectName("push_button_select_avatar2")
self.h_layout_avatars2.addWidget(self.push_button_select_avatar2) self.h_layout_avatars_buttons.addWidget(self.push_button_select_avatar2)
self.verticalLayout.addLayout(self.h_layout_avatars2) self.v_layout_avatars.addLayout(self.h_layout_avatars_buttons)
self.h_line2 = QtWidgets.QFrame(self.centralwidget) 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.setFrameShape(QtWidgets.QFrame.HLine)
self.h_line2.setFrameShadow(QtWidgets.QFrame.Sunken) self.h_line2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.h_line2.setObjectName("h_line2") 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 = QtWidgets.QHBoxLayout()
self.h_layout_threshold.setObjectName("h_layout_threshold") 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.label_threshold_description.setObjectName("label_threshold_description")
self.h_layout_threshold.addWidget(self.label_threshold_description) self.h_layout_threshold.addWidget(self.label_threshold_description)
self.line_edit_threshold_value = QtWidgets.QLineEdit(self.centralwidget) self.lcd_number_of_threshold = QtWidgets.QLCDNumber(self.central_widget)
self.line_edit_threshold_value.setObjectName("line_edit_threshold_value") self.lcd_number_of_threshold.setMinimumSize(QtCore.QSize(100, 50))
self.h_layout_threshold.addWidget(self.line_edit_threshold_value) self.lcd_number_of_threshold.setMaximumSize(QtCore.QSize(100, 100))
self.verticalLayout.addLayout(self.h_layout_threshold) self.lcd_number_of_threshold.setFrameShape(QtWidgets.QFrame.Box)
self.h_slider = QtWidgets.QSlider(self.centralwidget) 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.setOrientation(QtCore.Qt.Horizontal)
self.h_slider.setObjectName("h_slider") self.h_slider.setObjectName("h_slider")
self.verticalLayout.addWidget(self.h_slider) self.verticalLayout_2.addWidget(self.h_slider)
self.h_line = QtWidgets.QFrame(self.centralwidget) self.h_line = QtWidgets.QFrame(self.central_widget)
self.h_line.setFrameShape(QtWidgets.QFrame.HLine) self.h_line.setFrameShape(QtWidgets.QFrame.HLine)
self.h_line.setFrameShadow(QtWidgets.QFrame.Sunken) self.h_line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.h_line.setObjectName("h_line") 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 = QtWidgets.QHBoxLayout()
self.h_layout_preview_or_generate.setObjectName("h_layout_preview_or_generate") 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.push_button_preview.setObjectName("push_button_preview")
self.h_layout_preview_or_generate.addWidget(self.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.push_button_generate.setObjectName("push_button_generate")
self.h_layout_preview_or_generate.addWidget(self.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_line2.raise_()
self.h_line.raise_() self.h_line.raise_()
self.h_line3.raise_() self.h_line3.raise_()
self.h_slider.raise_() self.h_slider.raise_()
MainWindow.setCentralWidget(self.centralwidget) MainWindow.setCentralWidget(self.central_widget)
self.menubar = QtWidgets.QMenuBar(MainWindow) self.menu_bar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 870, 32)) self.menu_bar.setGeometry(QtCore.QRect(0, 0, 861, 32))
self.menubar.setObjectName("menubar") self.menu_bar.setObjectName("menu_bar")
self.menuProject = QtWidgets.QMenu(self.menubar) self.menu_project = QtWidgets.QMenu(self.menu_bar)
self.menuProject.setObjectName("menuProject") self.menu_project.setObjectName("menu_project")
MainWindow.setMenuBar(self.menubar) MainWindow.setMenuBar(self.menu_bar)
self.statusbar = QtWidgets.QStatusBar(MainWindow) self.status_bar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar") self.status_bar.setObjectName("status_bar")
MainWindow.setStatusBar(self.statusbar) MainWindow.setStatusBar(self.status_bar)
self.actionNowy = QtWidgets.QAction(MainWindow) self.action_new = QtWidgets.QAction(MainWindow)
self.actionNowy.setObjectName("actionNowy") self.action_new.setObjectName("action_new")
self.actionOtw_rz = QtWidgets.QAction(MainWindow) self.action_open = QtWidgets.QAction(MainWindow)
self.actionOtw_rz.setObjectName("actionOtw_rz") self.action_open.setObjectName("action_open")
self.actionZapisz = QtWidgets.QAction(MainWindow) self.action_save = QtWidgets.QAction(MainWindow)
self.actionZapisz.setObjectName("actionZapisz") self.action_save.setObjectName("action_save")
self.actionZapisz_jako = QtWidgets.QAction(MainWindow) self.action_save_as = QtWidgets.QAction(MainWindow)
self.actionZapisz_jako.setObjectName("actionZapisz_jako") self.action_save_as.setObjectName("action_save_as")
self.actionZako_cz = QtWidgets.QAction(MainWindow) self.action_exit = QtWidgets.QAction(MainWindow)
self.actionZako_cz.setObjectName("actionZako_cz") self.action_exit.setObjectName("action_exit")
self.actionUstawienia = QtWidgets.QAction(MainWindow) self.action_settings = QtWidgets.QAction(MainWindow)
self.actionUstawienia.setObjectName("actionUstawienia") self.action_settings.setObjectName("action_settings")
self.actionO_programie = QtWidgets.QAction(MainWindow) self.action_about = QtWidgets.QAction(MainWindow)
self.actionO_programie.setObjectName("actionO_programie") self.action_about.setObjectName("action_about")
self.menuProject.addAction(self.actionNowy) self.menu_project.addAction(self.action_new)
self.menuProject.addAction(self.actionOtw_rz) self.menu_project.addAction(self.action_open)
self.menuProject.addAction(self.actionZapisz) self.menu_project.addAction(self.action_save)
self.menuProject.addAction(self.actionZapisz_jako) self.menu_project.addAction(self.action_save_as)
self.menuProject.addSeparator() self.menu_project.addSeparator()
self.menuProject.addAction(self.actionO_programie) self.menu_project.addAction(self.action_settings)
self.menuProject.addAction(self.actionUstawienia) self.menu_project.addAction(self.action_about)
self.menuProject.addSeparator() self.menu_project.addSeparator()
self.menuProject.addAction(self.actionZako_cz) self.menu_project.addAction(self.action_exit)
self.menubar.addAction(self.menuProject.menuAction()) self.menu_bar.addAction(self.menu_project.menuAction())
self.retranslateUi(MainWindow) self.retranslateUi(MainWindow)
self.action_exit.triggered.connect(MainWindow.close)
QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MagicPodcast")) 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_audio1.setPlaceholderText(_translate("MainWindow", "Plik audio pierwszego rozmówcy"))
self.line_edit_name1.setPlaceholderText(_translate("MainWindow", "Imię 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.push_button_audio1.setText(_translate("MainWindow", "Dodaj audio 1"))
self.line_edit_audio2.setPlaceholderText(_translate("MainWindow", "Plik audio drugiego rozmówcy")) self.line_edit_audio2.setPlaceholderText(_translate("MainWindow", "Plik audio drugiego rozmówcy"))
self.line_edit_name2.setPlaceholderText(_translate("MainWindow", "Imię drugieo 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_audio2.setText(_translate("MainWindow", "Dodaj audio 2"))
self.push_button_select_avatar1.setText(_translate("MainWindow", "Wybierz awatar pierwszego rozmówcy")) self.label_avatar_1.setText(_translate("MainWindow", "TextLabel"))
self.push_button_select_avatar2.setText(_translate("MainWindow", "Wybierz awatar drugiego rozmówcy")) 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.label_threshold_description.setText(_translate("MainWindow", "Poziom wykrywania głosu:"))
self.push_button_preview.setText(_translate("MainWindow", "Podgląd")) self.push_button_preview.setText(_translate("MainWindow", "Podgląd"))
self.push_button_generate.setText(_translate("MainWindow", "Wygeneruj podcast")) self.push_button_generate.setText(_translate("MainWindow", "Wygeneruj podcast"))
self.menuProject.setTitle(_translate("MainWindow", "Projekt")) self.menu_project.setTitle(_translate("MainWindow", "Projekt"))
self.actionNowy.setText(_translate("MainWindow", "Nowy")) self.action_new.setText(_translate("MainWindow", "Nowy projekt"))
self.actionOtw_rz.setText(_translate("MainWindow", "Otwórz")) self.action_new.setToolTip(_translate("MainWindow", "Kliknij, aby utwórzyć nowy projekt"))
self.actionZapisz.setText(_translate("MainWindow", "Zapisz")) self.action_new.setShortcut(_translate("MainWindow", "Ctrl+N"))
self.actionZapisz_jako.setText(_translate("MainWindow", "Zapisz jako")) self.action_open.setText(_translate("MainWindow", "Otwórz projekt"))
self.actionZako_cz.setText(_translate("MainWindow", "Zakończ")) self.action_open.setToolTip(_translate("MainWindow", "Kliknij, aby otworzyć istniejący projekt"))
self.actionUstawienia.setText(_translate("MainWindow", "Ustawienia")) self.action_open.setShortcut(_translate("MainWindow", "Ctrl+O"))
self.actionO_programie.setText(_translate("MainWindow", "O programie")) 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__": if __name__ == "__main__":

View File

@ -6,36 +6,24 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>870</width> <width>861</width>
<height>566</height> <height>775</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>MagicPodcast</string> <string>MagicPodcast</string>
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="central_widget">
<layout class="QVBoxLayout" name="verticalLayout"> <property name="minimumSize">
<item> <size>
<layout class="QHBoxLayout" name="h_layout_select_video"> <width>700</width>
<item> <height>540</height>
<widget class="QLineEdit" name="line_edit_video"> </size>
<property name="text"> </property>
<string/> <layout class="QVBoxLayout" name="verticalLayout_2">
</property> <property name="sizeConstraint">
<property name="placeholderText"> <enum>QLayout::SetDefaultConstraint</enum>
<string>Plik wideo</string> </property>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="push_button_wideo">
<property name="text">
<string>Dodaj wideo</string>
</property>
</widget>
</item>
</layout>
</item>
<item> <item>
<layout class="QHBoxLayout" name="h_layout_select_audio1"> <layout class="QHBoxLayout" name="h_layout_select_audio1">
<item> <item>
@ -106,134 +94,66 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="h_layout_avatars1"> <layout class="QVBoxLayout" name="v_layout_avatars">
<item> <item>
<widget class="QLabel" name="label_image1"> <layout class="QHBoxLayout" name="h_layout_avatars_preview">
<property name="sizePolicy"> <item>
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <widget class="QLabel" name="label_avatar_1">
<horstretch>0</horstretch> <property name="minimumSize">
<verstretch>0</verstretch> <size>
</sizepolicy> <width>100</width>
</property> <height>100</height>
<property name="minimumSize"> </size>
<size> </property>
<width>100</width> <property name="text">
<height>100</height> <string>TextLabel</string>
</size> </property>
</property> <property name="alignment">
<property name="maximumSize"> <set>Qt::AlignCenter</set>
<size> </property>
<width>100</width> </widget>
<height>100</height> </item>
</size> <item>
</property> <widget class="QLabel" name="label_avatar_2">
<property name="sizeIncrement"> <property name="minimumSize">
<size> <size>
<width>1</width> <width>100</width>
<height>1</height> <height>100</height>
</size> </size>
</property> </property>
<property name="baseSize"> <property name="text">
<size> <string>TextLabel</string>
<width>100</width> </property>
<height>100</height> <property name="alignment">
</size> <set>Qt::AlignCenter</set>
</property> </property>
<property name="frameShape"> </widget>
<enum>QFrame::Box</enum> </item>
</property> </layout>
<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>
<item> <item>
<widget class="QPushButton" name="push_button_select_avatar1"> <layout class="QHBoxLayout" name="h_layout_avatars_buttons">
<property name="minimumSize"> <item>
<size> <widget class="QPushButton" name="push_button_select_avatar1">
<width>0</width> <property name="text">
<height>0</height> <string>Wybierz grafikę dla pierwszego rozmówcy</string>
</size> </property>
</property> </widget>
<property name="text"> </item>
<string>Wybierz awatar pierwszego rozmówcy</string> <item>
</property> <widget class="QPushButton" name="push_button_select_avatar2">
</widget> <property name="minimumSize">
</item> <size>
</layout> <width>0</width>
</item> <height>0</height>
<item> </size>
<layout class="QHBoxLayout" name="h_layout_avatars2"> </property>
<item> <property name="text">
<widget class="QLabel" name="label_image2"> <string>Wybierz grafikę dla drugiego rozmówcy</string>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> </layout>
</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> </item>
</layout> </layout>
</item> </item>
@ -248,13 +168,56 @@
<layout class="QHBoxLayout" name="h_layout_threshold"> <layout class="QHBoxLayout" name="h_layout_threshold">
<item> <item>
<widget class="QLabel" name="label_threshold_description"> <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"> <property name="text">
<string>Poziom wykrywania głosu:</string> <string>Poziom wykrywania głosu:</string>
</property> </property>
</widget> </widget>
</item> </item>
<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> </item>
</layout> </layout>
</item> </item>
@ -295,69 +258,129 @@
<zorder>h_line</zorder> <zorder>h_line</zorder>
<zorder>h_line3</zorder> <zorder>h_line3</zorder>
<zorder>h_slider</zorder> <zorder>h_slider</zorder>
<zorder>verticalLayoutWidget</zorder>
</widget> </widget>
<widget class="QMenuBar" name="menubar"> <widget class="QMenuBar" name="menu_bar">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>870</width> <width>861</width>
<height>32</height> <height>32</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuProject"> <widget class="QMenu" name="menu_project">
<property name="title"> <property name="title">
<string>Projekt</string> <string>Projekt</string>
</property> </property>
<addaction name="actionNowy"/> <addaction name="action_new"/>
<addaction name="actionOtw_rz"/> <addaction name="action_open"/>
<addaction name="actionZapisz"/> <addaction name="action_save"/>
<addaction name="actionZapisz_jako"/> <addaction name="action_save_as"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionO_programie"/> <addaction name="action_settings"/>
<addaction name="actionUstawienia"/> <addaction name="action_about"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionZako_cz"/> <addaction name="action_exit"/>
</widget> </widget>
<addaction name="menuProject"/> <addaction name="menu_project"/>
</widget> </widget>
<widget class="QStatusBar" name="statusbar"/> <widget class="QStatusBar" name="status_bar"/>
<action name="actionNowy"> <action name="action_new">
<property name="text"> <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> </property>
</action> </action>
<action name="actionOtw_rz"> <action name="action_open">
<property name="text"> <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> </property>
</action> </action>
<action name="actionZapisz"> <action name="action_save">
<property name="text"> <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> </property>
</action> </action>
<action name="actionZapisz_jako"> <action name="action_save_as">
<property name="text"> <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> </property>
</action> </action>
<action name="actionZako_cz"> <action name="action_exit">
<property name="text"> <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> </property>
</action> </action>
<action name="actionUstawienia"> <action name="action_settings">
<property name="text"> <property name="text">
<string>Ustawienia</string> <string>Ustawienia</string>
</property> </property>
<property name="toolTip">
<string>Kliknij, aby przejść do ustawień programu</string>
</property>
<property name="shortcut">
<string>Ctrl+U</string>
</property>
</action> </action>
<action name="actionO_programie"> <action name="action_about">
<property name="text"> <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> </property>
</action> </action>
</widget> </widget>
<resources/> <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> </ui>