|
@@ -9,48 +9,67 @@
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
from PySide6.QtCore import (QCoreApplication, QMetaObject)
|
|
from PySide6.QtCore import (QCoreApplication, QMetaObject)
|
|
-from PySide6.QtWidgets import (QComboBox, QGridLayout, QGroupBox, QPushButton)
|
|
|
|
|
|
+from PySide6.QtWidgets import (
|
|
|
|
+ QComboBox, QPushButton, QTabWidget, QVBoxLayout, QWidget)
|
|
|
|
+from PropuskWidgets.PCamChecked import PCamChecked
|
|
|
|
|
|
|
|
|
|
class Ui_DialogSettingCam(object):
|
|
class Ui_DialogSettingCam(object):
|
|
def setupUi(self, DialogSettingCam):
|
|
def setupUi(self, DialogSettingCam):
|
|
if not DialogSettingCam.objectName():
|
|
if not DialogSettingCam.objectName():
|
|
DialogSettingCam.setObjectName(u"DialogSettingCam")
|
|
DialogSettingCam.setObjectName(u"DialogSettingCam")
|
|
|
|
+ DialogSettingCam.resize(794, 559)
|
|
|
|
+ self.verticalLayout_2 = QVBoxLayout(DialogSettingCam)
|
|
|
|
+ self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
|
|
|
+ self.tabWidget = QTabWidget(DialogSettingCam)
|
|
|
|
+ self.tabWidget.setObjectName(u"tabWidget")
|
|
|
|
+ self.tabWidget.setTabsClosable(False)
|
|
|
|
+ self.tabWidget.setMovable(False)
|
|
|
|
+ self.tabWidget.setTabBarAutoHide(False)
|
|
|
|
+ self.tab = QWidget()
|
|
|
|
+ self.tab.setObjectName(u"tab")
|
|
|
|
+ self.verticalLayout = QVBoxLayout(self.tab)
|
|
|
|
+ self.verticalLayout.setObjectName(u"verticalLayout")
|
|
|
|
|
|
- DialogSettingCam.resize(640, 480)
|
|
|
|
- self.gridLayout = QGridLayout(DialogSettingCam)
|
|
|
|
- self.gridLayout.setObjectName(u"gridLayout")
|
|
|
|
- self.groupBox = QGroupBox(DialogSettingCam)
|
|
|
|
- self.groupBox.setObjectName(u"groupBox")
|
|
|
|
- self.gridLayout_3 = QGridLayout(self.groupBox)
|
|
|
|
- self.gridLayout_3.setObjectName(u"gridLayout_3")
|
|
|
|
-
|
|
|
|
- self.mode_list = QComboBox(self.groupBox)
|
|
|
|
|
|
+ self.mode_list = QComboBox(self.tab)
|
|
self.mode_list.setObjectName(u'mode_list')
|
|
self.mode_list.setObjectName(u'mode_list')
|
|
- self.gridLayout_3.addWidget(self.mode_list, 0, 0, 1, 1)
|
|
|
|
|
|
+ self.verticalLayout.addWidget(self.mode_list)
|
|
|
|
+
|
|
|
|
+ self.tabWidget.addTab(self.tab, "")
|
|
|
|
+ self.tab_2 = QWidget()
|
|
|
|
+ self.tab_2.setObjectName(u"tab_2")
|
|
|
|
+
|
|
|
|
+ self.verticalLayout_3 = QVBoxLayout(self.tab_2)
|
|
|
|
+ self.verticalLayout_3.setObjectName('verticalLayout_3')
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ self.tabWidget.addTab(self.tab_2, "")
|
|
|
|
|
|
- self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
|
|
|
|
|
|
+ self.verticalLayout_2.addWidget(self.tabWidget)
|
|
|
|
|
|
self.save_setting_cam = QPushButton(DialogSettingCam)
|
|
self.save_setting_cam = QPushButton(DialogSettingCam)
|
|
self.save_setting_cam.setObjectName(u"save_setting_cam")
|
|
self.save_setting_cam.setObjectName(u"save_setting_cam")
|
|
|
|
|
|
- self.gridLayout.addWidget(self.save_setting_cam, 1, 0, 1, 1)
|
|
|
|
|
|
+ self.verticalLayout_2.addWidget(self.save_setting_cam)
|
|
|
|
|
|
self.retranslateUi(DialogSettingCam)
|
|
self.retranslateUi(DialogSettingCam)
|
|
|
|
|
|
|
|
+ self.tabWidget.setCurrentIndex(0)
|
|
|
|
+
|
|
QMetaObject.connectSlotsByName(DialogSettingCam)
|
|
QMetaObject.connectSlotsByName(DialogSettingCam)
|
|
# setupUi
|
|
# setupUi
|
|
|
|
|
|
def retranslateUi(self, DialogSettingCam):
|
|
def retranslateUi(self, DialogSettingCam):
|
|
-
|
|
|
|
DialogSettingCam.setWindowTitle(QCoreApplication.translate(
|
|
DialogSettingCam.setWindowTitle(QCoreApplication.translate(
|
|
- "DialogSettingCam", u"Настройка камеры", None))
|
|
|
|
|
|
+ "DialogSettingCam", u"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u0430\u043c\u0435\u0440\u044b", None))
|
|
|
|
|
|
self.mode_list.addItem('USB Camera', userData='video')
|
|
self.mode_list.addItem('USB Camera', userData='video')
|
|
self.mode_list.addItem('IP Camera', userData='snapshot')
|
|
self.mode_list.addItem('IP Camera', userData='snapshot')
|
|
-
|
|
|
|
- self.groupBox.setTitle(QCoreApplication.translate(
|
|
|
|
- "DialogSettingCam", u"\u0424\u043e\u0442\u043e \u043b\u0438\u0446\u0430", None))
|
|
|
|
|
|
+
|
|
|
|
+ self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate(
|
|
|
|
+ "DialogSettingCam", u"\u041A\u0430\u043C\u0435\u0440\u0430 \u0434\u043B\u044F \u043B\u0438\u0446\u0430", None))
|
|
|
|
+ self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate(
|
|
|
|
+ "DialogSettingCam", u"\u041A\u0430\u043C\u0435\u0440\u0430 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", None))
|
|
self.save_setting_cam.setText(QCoreApplication.translate(
|
|
self.save_setting_cam.setText(QCoreApplication.translate(
|
|
"DialogSettingCam", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438", None))
|
|
"DialogSettingCam", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438", None))
|
|
# retranslateUi
|
|
# retranslateUi
|