Update mainwindow.ui and python classes. Hide unsed elements.

This commit is contained in:
Jarosław Wieczorek 2021-01-25 16:08:04 +01:00
parent 0404cf412f
commit a5d3602722
4 changed files with 369 additions and 445 deletions

View File

@ -6,14 +6,20 @@
<rect>
<x>0</x>
<y>0</y>
<width>554</width>
<height>807</height>
<width>501</width>
<height>740</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>500</width>
<height>740</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>800</width>
<height>16777215</height>
<width>600</width>
<height>800</height>
</size>
</property>
<property name="windowTitle">
@ -172,11 +178,9 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="w_layout_avatars_1_and_2">
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_1">
<item>
<widget class="QLabel" name="preview_label_avatar_1">
<layout class="QGridLayout" name="grid_layout">
<item row="2" column="1">
<widget class="QLabel" name="preview_label_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@ -185,13 +189,13 @@
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -199,7 +203,7 @@
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy aktywni</string>
<string>Podgląd - 2 rozmówca aktywny</string>
</property>
<property name="scaledContents">
<bool>true</bool>
@ -212,8 +216,8 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_1">
<item row="1" column="1">
<widget class="QPushButton" name="button_select_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@ -223,7 +227,7 @@
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
@ -233,7 +237,7 @@
</size>
</property>
<property name="text">
<string>Rozmówcy - aktywni</string>
<string>Rozmówcy - nieaktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
@ -241,27 +245,7 @@
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="h_spacer_1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>5</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_2">
<item>
<item row="0" column="1">
<widget class="QLabel" name="preview_label_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@ -271,13 +255,13 @@
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -298,8 +282,8 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_2">
<item row="0" column="0">
<widget class="QLabel" name="preview_label_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@ -309,7 +293,44 @@
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy aktywni</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="button_select_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
@ -319,7 +340,7 @@
</size>
</property>
<property name="text">
<string>Rozmówcy - nieaktywni</string>
<string>Rozmówcy - aktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
@ -327,31 +348,7 @@
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="v_spacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>5</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="w_layout_avatars_3_and_4">
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_3">
<item>
<item row="2" column="0">
<widget class="QLabel" name="preview_label_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@ -361,13 +358,13 @@
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -391,93 +388,7 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Pierwszy rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="h_spacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>5</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_4">
<item>
<widget class="QLabel" name="preview_label_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - 2 rozmówca aktywny</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<item row="3" column="1">
<widget class="QPushButton" name="button_select_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@ -488,7 +399,7 @@
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
@ -506,7 +417,34 @@
</property>
</widget>
</item>
</layout>
<item row="3" column="0">
<widget class="QPushButton" name="button_select_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Pierwszy rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
@ -639,17 +577,18 @@
<zorder>h_line_2</zorder>
<zorder>threshold_slider</zorder>
<zorder>h_line_3</zorder>
<zorder>v_spacer_1</zorder>
<zorder>check_box_connected_channels</zorder>
<zorder>progress_bar</zorder>
<zorder>log_label</zorder>
<zorder></zorder>
<zorder>gridLayoutWidget</zorder>
</widget>
<widget class="QMenuBar" name="menu_bar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>554</width>
<width>501</width>
<height>32</height>
</rect>
</property>

View File

@ -94,6 +94,8 @@ class MainWindow(QMainWindow, QApplication, Ui_MainWindow):
"""TODO: add names to images"""
self.line_edit_name_1.setDisabled(True)
self.line_edit_name_2.setDisabled(True)
self.line_edit_name_1.hide()
self.line_edit_name_2.hide()
def test_data(self, option=1):
"""Test data."""

View File

@ -79,6 +79,9 @@ class PreviewCreatorDialog(QDialog, Ui_PreviewCreatorDialog):
self.play_signal.connect(self.video_dialog.player.play)
self.setAcceptDrops(True)
self.log_label.hide()
self.progress_bar.hide()
def open_dialog(self):
""" Open video dialog """
if self.video_dialog.isHidden():

View File

@ -14,8 +14,9 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(554, 807)
MainWindow.setMaximumSize(QtCore.QSize(800, 16777215))
MainWindow.resize(501, 740)
MainWindow.setMinimumSize(QtCore.QSize(500, 740))
MainWindow.setMaximumSize(QtCore.QSize(600, 800))
self.central_widget = QtWidgets.QWidget(MainWindow)
self.central_widget.setMinimumSize(QtCore.QSize(0, 0))
self.central_widget.setObjectName("central_widget")
@ -87,131 +88,110 @@ class Ui_MainWindow(object):
self.h_line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.h_line.setObjectName("h_line")
self.verticalLayout.addWidget(self.h_line)
self.w_layout_avatars_1_and_2 = QtWidgets.QHBoxLayout()
self.w_layout_avatars_1_and_2.setObjectName("w_layout_avatars_1_and_2")
self.w_layout_avatar_1 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_1.setObjectName("w_layout_avatar_1")
self.preview_label_avatar_1 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_1.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_1.setSizePolicy(sizePolicy)
self.preview_label_avatar_1.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_1.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_1.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_1.setScaledContents(True)
self.preview_label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_1.setProperty("path", "")
self.preview_label_avatar_1.setObjectName("preview_label_avatar_1")
self.w_layout_avatar_1.addWidget(self.preview_label_avatar_1)
self.button_select_avatar_1 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_1.sizePolicy().hasHeightForWidth())
self.button_select_avatar_1.setSizePolicy(sizePolicy)
self.button_select_avatar_1.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_1.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_1.setIcon(icon)
self.button_select_avatar_1.setObjectName("button_select_avatar_1")
self.w_layout_avatar_1.addWidget(self.button_select_avatar_1)
self.w_layout_avatars_1_and_2.addLayout(self.w_layout_avatar_1)
spacerItem = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.w_layout_avatars_1_and_2.addItem(spacerItem)
self.w_layout_avatar_2 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_2.setObjectName("w_layout_avatar_2")
self.preview_label_avatar_2 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_2.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_2.setSizePolicy(sizePolicy)
self.preview_label_avatar_2.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_2.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_2.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_2.setScaledContents(True)
self.preview_label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_2.setProperty("path", "")
self.preview_label_avatar_2.setObjectName("preview_label_avatar_2")
self.w_layout_avatar_2.addWidget(self.preview_label_avatar_2)
self.button_select_avatar_2 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_2.sizePolicy().hasHeightForWidth())
self.button_select_avatar_2.setSizePolicy(sizePolicy)
self.button_select_avatar_2.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_2.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_2.setIcon(icon)
self.button_select_avatar_2.setObjectName("button_select_avatar_2")
self.w_layout_avatar_2.addWidget(self.button_select_avatar_2)
self.w_layout_avatars_1_and_2.addLayout(self.w_layout_avatar_2)
self.verticalLayout.addLayout(self.w_layout_avatars_1_and_2)
spacerItem1 = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.verticalLayout.addItem(spacerItem1)
self.w_layout_avatars_3_and_4 = QtWidgets.QHBoxLayout()
self.w_layout_avatars_3_and_4.setObjectName("w_layout_avatars_3_and_4")
self.w_layout_avatar_3 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_3.setObjectName("w_layout_avatar_3")
self.preview_label_avatar_3 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_3.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_3.setSizePolicy(sizePolicy)
self.preview_label_avatar_3.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_3.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_3.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_3.setTextFormat(QtCore.Qt.RichText)
self.preview_label_avatar_3.setScaledContents(True)
self.preview_label_avatar_3.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_3.setProperty("path", "")
self.preview_label_avatar_3.setObjectName("preview_label_avatar_3")
self.w_layout_avatar_3.addWidget(self.preview_label_avatar_3)
self.button_select_avatar_3 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_3.sizePolicy().hasHeightForWidth())
self.button_select_avatar_3.setSizePolicy(sizePolicy)
self.button_select_avatar_3.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_3.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_3.setIcon(icon)
self.button_select_avatar_3.setObjectName("button_select_avatar_3")
self.w_layout_avatar_3.addWidget(self.button_select_avatar_3)
self.w_layout_avatars_3_and_4.addLayout(self.w_layout_avatar_3)
spacerItem2 = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.w_layout_avatars_3_and_4.addItem(spacerItem2)
self.w_layout_avatar_4 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_4.setObjectName("w_layout_avatar_4")
self.grid_layout = QtWidgets.QGridLayout()
self.grid_layout.setObjectName("grid_layout")
self.preview_label_avatar_4 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_4.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_4.setSizePolicy(sizePolicy)
self.preview_label_avatar_4.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_4.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_4.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_4.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_4.setScaledContents(True)
self.preview_label_avatar_4.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_4.setProperty("path", "")
self.preview_label_avatar_4.setObjectName("preview_label_avatar_4")
self.w_layout_avatar_4.addWidget(self.preview_label_avatar_4)
self.grid_layout.addWidget(self.preview_label_avatar_4, 2, 1, 1, 1)
self.button_select_avatar_2 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_2.sizePolicy().hasHeightForWidth())
self.button_select_avatar_2.setSizePolicy(sizePolicy)
self.button_select_avatar_2.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_2.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_2.setIcon(icon)
self.button_select_avatar_2.setObjectName("button_select_avatar_2")
self.grid_layout.addWidget(self.button_select_avatar_2, 1, 1, 1, 1)
self.preview_label_avatar_2 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_2.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_2.setSizePolicy(sizePolicy)
self.preview_label_avatar_2.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_2.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_2.setScaledContents(True)
self.preview_label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_2.setProperty("path", "")
self.preview_label_avatar_2.setObjectName("preview_label_avatar_2")
self.grid_layout.addWidget(self.preview_label_avatar_2, 0, 1, 1, 1)
self.preview_label_avatar_1 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_1.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_1.setSizePolicy(sizePolicy)
self.preview_label_avatar_1.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_1.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_1.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_1.setScaledContents(True)
self.preview_label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_1.setProperty("path", "")
self.preview_label_avatar_1.setObjectName("preview_label_avatar_1")
self.grid_layout.addWidget(self.preview_label_avatar_1, 0, 0, 1, 1)
self.button_select_avatar_1 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_1.sizePolicy().hasHeightForWidth())
self.button_select_avatar_1.setSizePolicy(sizePolicy)
self.button_select_avatar_1.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_1.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_1.setIcon(icon)
self.button_select_avatar_1.setObjectName("button_select_avatar_1")
self.grid_layout.addWidget(self.button_select_avatar_1, 1, 0, 1, 1)
self.preview_label_avatar_3 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_3.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_3.setSizePolicy(sizePolicy)
self.preview_label_avatar_3.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_3.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_3.setTextFormat(QtCore.Qt.RichText)
self.preview_label_avatar_3.setScaledContents(True)
self.preview_label_avatar_3.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_3.setProperty("path", "")
self.preview_label_avatar_3.setObjectName("preview_label_avatar_3")
self.grid_layout.addWidget(self.preview_label_avatar_3, 2, 0, 1, 1)
self.button_select_avatar_4 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_4.sizePolicy().hasHeightForWidth())
self.button_select_avatar_4.setSizePolicy(sizePolicy)
self.button_select_avatar_4.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_4.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_4.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_4.setIcon(icon)
self.button_select_avatar_4.setObjectName("button_select_avatar_4")
self.w_layout_avatar_4.addWidget(self.button_select_avatar_4)
self.w_layout_avatars_3_and_4.addLayout(self.w_layout_avatar_4)
self.verticalLayout.addLayout(self.w_layout_avatars_3_and_4)
self.grid_layout.addWidget(self.button_select_avatar_4, 3, 1, 1, 1)
self.button_select_avatar_3 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_3.sizePolicy().hasHeightForWidth())
self.button_select_avatar_3.setSizePolicy(sizePolicy)
self.button_select_avatar_3.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_3.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_3.setIcon(icon)
self.button_select_avatar_3.setObjectName("button_select_avatar_3")
self.grid_layout.addWidget(self.button_select_avatar_3, 3, 0, 1, 1)
self.verticalLayout.addLayout(self.grid_layout)
self.h_line_2 = QtWidgets.QFrame(self.central_widget)
self.h_line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.h_line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
@ -279,7 +259,7 @@ class Ui_MainWindow(object):
self.log_label.raise_()
MainWindow.setCentralWidget(self.central_widget)
self.menu_bar = QtWidgets.QMenuBar(MainWindow)
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 554, 32))
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 501, 32))
self.menu_bar.setObjectName("menu_bar")
self.menu_project = QtWidgets.QMenu(self.menu_bar)
self.menu_project.setObjectName("menu_project")
@ -347,14 +327,14 @@ class Ui_MainWindow(object):
self.line_edit_name_2.setPlaceholderText(_translate("MainWindow", "Imię 2 rozmówcy"))
self.button_audio_2.setText(_translate("MainWindow", "Dodaj audio 2"))
self.check_box_connected_channels.setText(_translate("MainWindow", "Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu"))
self.preview_label_avatar_4.setText(_translate("MainWindow", "Podgląd - 2 rozmówca aktywny"))
self.button_select_avatar_2.setText(_translate("MainWindow", "Rozmówcy - nieaktywni"))
self.preview_label_avatar_2.setText(_translate("MainWindow", "Podgląd - rozmówcy nieaktywni"))
self.preview_label_avatar_1.setText(_translate("MainWindow", "Podgląd - rozmówcy aktywni"))
self.button_select_avatar_1.setText(_translate("MainWindow", "Rozmówcy - aktywni"))
self.preview_label_avatar_2.setText(_translate("MainWindow", "Podgląd - rozmówcy nieaktywni"))
self.button_select_avatar_2.setText(_translate("MainWindow", "Rozmówcy - nieaktywni"))
self.preview_label_avatar_3.setText(_translate("MainWindow", "Podgląd - 1 rozmówca aktywny"))
self.button_select_avatar_3.setText(_translate("MainWindow", "Pierwszy rozmówca - aktywny"))
self.preview_label_avatar_4.setText(_translate("MainWindow", "Podgląd - 2 rozmówca aktywny"))
self.button_select_avatar_4.setText(_translate("MainWindow", "Drugi rozmówca - aktywny"))
self.button_select_avatar_3.setText(_translate("MainWindow", "Pierwszy rozmówca - aktywny"))
self.label_threshold_description.setText(_translate("MainWindow", "Poziom wykrywania głosu:"))
self.button_preview.setText(_translate("MainWindow", "Podgląd"))
self.button_generate.setText(_translate("MainWindow", "Wygeneruj podcast"))