123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- # -*- coding: utf-8 -*-
- ################################################################################
- # Form generated from reading UI file 'MainWindow.ui'
- ##
- # Created by: Qt User Interface Compiler version 6.4.1
- ##
- # WARNING! All changes made in this file will be lost when recompiling UI file!
- ################################################################################
- from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
- QMetaObject, QObject, QPoint, QRect,
- QSize, QTime, QUrl, Qt)
- from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
- QCursor, QFont, QFontDatabase, QGradient,
- QIcon, QImage, QKeySequence, QLinearGradient,
- QPainter, QPalette, QPixmap, QRadialGradient,
- QTransform)
- from PySide6.QtMultimediaWidgets import QVideoWidget
- from PySide6.QtWidgets import (QApplication, QComboBox, QDateTimeEdit, QFrame,
- QGridLayout, QGroupBox, QHBoxLayout, QLabel,
- QLayout, QLineEdit, QMainWindow, QMenu,
- QMenuBar, QPushButton, QSizePolicy, QStackedWidget,
- QStatusBar, QTabWidget, QTextEdit, QVBoxLayout,
- QWidget)
- from widgets import PLineEdit, PStackedWidget
- class Ui_MainWindow(object):
- def setupUi(self, MainWindow):
- if not MainWindow.objectName():
- MainWindow.setObjectName(u"MainWindow")
- MainWindow.setWindowModality(Qt.WindowModal)
- MainWindow.resize(920, 588)
- sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(
- MainWindow.sizePolicy().hasHeightForWidth())
- MainWindow.setSizePolicy(sizePolicy)
- MainWindow.setBaseSize(QSize(864, 430))
- self.actionExit = QAction(MainWindow)
- self.actionExit.setObjectName(u"actionExit")
- self.actionSave = QAction(MainWindow)
- self.actionSave.setObjectName(u"actionSave")
- self.actionLoad = QAction(MainWindow)
- self.actionLoad.setObjectName(u"actionLoad")
- self.actionExit_2 = QAction(MainWindow)
- self.actionExit_2.setObjectName(u"actionExit_2")
- self.setting_cam = QAction(MainWindow)
- self.setting_cam.setObjectName(u"setting_cam")
- self.btn_show_personal_window = QAction(MainWindow)
- self.btn_show_personal_window.setObjectName(
- u"btn_show_personal_window")
- self.btn_show_place_window = QAction(MainWindow)
- self.btn_show_place_window.setObjectName(u"btn_show_place_window")
- self.update_list = QAction(MainWindow)
- self.update_list.setObjectName(u"update_list")
- self.btn_show_about = QAction(MainWindow)
- self.btn_show_about.setObjectName(u"btn_show_about")
- self.exit = QAction(MainWindow)
- self.exit.setObjectName(u"exit")
- self.action_open_history = QAction(MainWindow)
- self.action_open_history.setObjectName(u"action_open_history")
- self.centralwidget = QWidget(MainWindow)
- self.centralwidget.setObjectName(u"centralwidget")
- self.centralwidget.setEnabled(True)
- sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
- sizePolicy1.setHorizontalStretch(0)
- sizePolicy1.setVerticalStretch(0)
- sizePolicy1.setHeightForWidth(
- self.centralwidget.sizePolicy().hasHeightForWidth())
- self.centralwidget.setSizePolicy(sizePolicy1)
- self.centralwidget.setFocusPolicy(Qt.NoFocus)
- self.centralwidget.setAutoFillBackground(False)
- self.verticalLayout_6 = QVBoxLayout(self.centralwidget)
- self.verticalLayout_6.setObjectName(u"verticalLayout_6")
- self.horizontalLayout_7 = QHBoxLayout()
- self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
- self.groupBox = QGroupBox(self.centralwidget)
- self.groupBox.setObjectName(u"groupBox")
- self.groupBox.setMinimumSize(QSize(400, 0))
- self.groupBox.setMaximumWidth(600)
- self.verticalLayout_3 = QVBoxLayout(self.groupBox)
- self.verticalLayout_3.setObjectName(u"verticalLayout_3")
- self.horizontalLayout = QHBoxLayout()
- self.horizontalLayout.setSpacing(0)
- self.horizontalLayout.setObjectName(u"horizontalLayout")
- self.horizontalLayout.setSizeConstraint(QLayout.SetFixedSize)
- self.label = QLabel(self.groupBox)
- self.label.setObjectName(u"label")
- sizePolicy.setHeightForWidth(
- self.label.sizePolicy().hasHeightForWidth())
- self.label.setSizePolicy(sizePolicy)
- self.horizontalLayout.addWidget(self.label)
- self.number_propusk = PLineEdit(self.groupBox)
- self.number_propusk.setObjectName(u"number_propusk")
- self.horizontalLayout.addWidget(self.number_propusk)
- self.verticalLayout_3.addLayout(self.horizontalLayout)
- self.horizontalLayout_2 = QHBoxLayout()
- self.horizontalLayout_2.setSpacing(0)
- self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
- self.label_2 = QLabel(self.groupBox)
- self.label_2.setObjectName(u"label_2")
- self.horizontalLayout_2.addWidget(self.label_2)
- self.date_from = QDateTimeEdit(self.groupBox)
- self.date_from.setObjectName(u"date_from")
- # self.date_from.setDateTime(QDateTime(QDate(1999, 12, 31), QTime(9, 0, 0)))
- self.date_from.setTimeSpec(Qt.UTC)
- self.horizontalLayout_2.addWidget(self.date_from)
- self.verticalLayout_3.addLayout(self.horizontalLayout_2)
- self.horizontalLayout_3 = QHBoxLayout()
- self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
- self.label_4 = QLabel(self.groupBox)
- self.label_4.setObjectName(u"label_4")
- self.horizontalLayout_3.addWidget(self.label_4)
- self.date_to = QDateTimeEdit(self.groupBox)
- self.date_to.setObjectName(u"date_to")
- self.horizontalLayout_3.addWidget(self.date_to)
- self.verticalLayout_3.addLayout(self.horizontalLayout_3)
- self.horizontalLayout_4 = QHBoxLayout()
- self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
- self.label_3 = QLabel(self.groupBox)
- self.label_3.setObjectName(u"label_3")
- self.horizontalLayout_4.addWidget(self.label_3)
- self.personal_combobox = QComboBox(self.groupBox)
- self.personal_combobox.setObjectName(u"personal_combobox")
- self.horizontalLayout_4.addWidget(self.personal_combobox)
- self.verticalLayout_3.addLayout(self.horizontalLayout_4)
- self.horizontalLayout_5 = QHBoxLayout()
- self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
- self.label_5 = QLabel(self.groupBox)
- self.label_5.setObjectName(u"label_5")
- self.horizontalLayout_5.addWidget(self.label_5)
- self.place_combobox = QComboBox(self.groupBox)
- self.place_combobox.setObjectName(u"place_combobox")
- self.horizontalLayout_5.addWidget(self.place_combobox)
- self.verticalLayout_3.addLayout(self.horizontalLayout_5)
- self.verticalLayout = QVBoxLayout()
- self.verticalLayout.setObjectName(u"verticalLayout")
- self.label_6 = QLabel(self.groupBox)
- self.label_6.setObjectName(u"label_6")
- self.verticalLayout.addWidget(self.label_6)
- self.receiving_man = QTextEdit(self.groupBox)
- self.receiving_man.setObjectName(u"receiving_man")
- self.verticalLayout.addWidget(self.receiving_man)
- self.verticalLayout_3.addLayout(self.verticalLayout)
- self.verticalLayout_2 = QVBoxLayout()
- self.verticalLayout_2.setObjectName(u"verticalLayout_2")
- self.label_7 = QLabel(self.groupBox)
- self.label_7.setObjectName(u"label_7")
- self.verticalLayout_2.addWidget(self.label_7)
- self.purpose_visite = QTextEdit(self.groupBox)
- self.purpose_visite.setObjectName(u"purpose_visite")
- self.verticalLayout_2.addWidget(self.purpose_visite)
- self.verticalLayout_3.addLayout(self.verticalLayout_2)
- self.horizontalLayout_7.addWidget(self.groupBox, alignment=Qt.AlignTop)
- self.verticalLayout_5 = QVBoxLayout()
- self.verticalLayout_5.setObjectName(u"verticalLayout_5")
- self.tabWidget = QTabWidget(self.centralwidget)
- self.tabWidget.setObjectName(u"tabWidget")
- self.tab = QWidget()
- self.tab.setObjectName(u"tab")
- self.gridLayout = QGridLayout(self.tab)
- self.gridLayout.setObjectName(u"gridLayout")
- self.tabWidget.addTab(self.tab, "")
- self.tab_2 = QWidget()
- self.tab_2.setObjectName(u"tab_2")
- self.gridLayout_2 = QGridLayout(self.tab_2)
- self.gridLayout_2.setObjectName(u"gridLayout")
- self.stacked_document = PStackedWidget(self.tab_2)
- self.stacked_document.setObjectName(u'stacked_document')
- self.gridLayout_2.addWidget(self.stacked_document, 0, 0, 1, 1)
- self.tabWidget.addTab(self.tab_2, "")
- self.verticalLayout_5.addWidget(self.tabWidget)
- self.horizontalLayout_6 = QHBoxLayout()
- self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
- self.btn_start_cam = QPushButton(self.centralwidget)
- self.btn_start_cam.setObjectName(u"btn_start_cam")
- self.horizontalLayout_6.addWidget(self.btn_start_cam)
- self.capturePhoto = QPushButton(self.centralwidget)
- self.capturePhoto.setObjectName(u"capturePhoto")
- self.horizontalLayout_6.addWidget(self.capturePhoto)
- self.verticalLayout_5.addLayout(self.horizontalLayout_6)
- self.horizontalLayout_7.addLayout(self.verticalLayout_5)
- self.verticalLayout_6.addLayout(self.horizontalLayout_7)
- self.horizontalLayout_8 = QHBoxLayout()
- self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
- self.btn_clear = QPushButton(self.centralwidget)
- self.btn_clear.setObjectName(u"btn_clear")
- sizePolicy.setHeightForWidth(
- self.btn_clear.sizePolicy().hasHeightForWidth())
- self.btn_clear.setSizePolicy(sizePolicy)
- self.btn_clear.setMaximumSize(QSize(16777215, 25))
- self.horizontalLayout_8.addWidget(self.btn_clear)
- self.btn_save = QPushButton(self.centralwidget)
- self.btn_save.setObjectName(u"btn_save")
- sizePolicy.setHeightForWidth(
- self.btn_save.sizePolicy().hasHeightForWidth())
- self.btn_save.setSizePolicy(sizePolicy)
- self.btn_save.setMaximumSize(QSize(16777215, 25))
- self.horizontalLayout_8.addWidget(self.btn_save)
- self.btn_print = QPushButton(self.centralwidget)
- self.btn_print.setObjectName(u"btn_print")
- sizePolicy.setHeightForWidth(
- self.btn_print.sizePolicy().hasHeightForWidth())
- self.btn_print.setSizePolicy(sizePolicy)
- self.btn_print.setMaximumSize(QSize(16777215, 25))
- self.horizontalLayout_8.addWidget(self.btn_print)
- self.verticalLayout_6.addLayout(self.horizontalLayout_8)
- MainWindow.setCentralWidget(self.centralwidget)
- self.menubar = QMenuBar(MainWindow)
- self.menubar.setObjectName(u"menubar")
- self.menubar.setGeometry(QRect(0, 0, 920, 28))
- self.menubar.setMouseTracking(True)
- self.menubar.setAcceptDrops(True)
- self.menubar.setNativeMenuBar(True)
- self.menuFile = QMenu(self.menubar)
- self.menuFile.setObjectName(u"menuFile")
- self.menu = QMenu(self.menubar)
- self.menu.setObjectName(u"menu")
- self.menu_3 = QMenu(self.menu)
- self.menu_3.setObjectName(u"menu_3")
- self.menu_2 = QMenu(self.menubar)
- self.menu_2.setObjectName(u"menu_2")
- MainWindow.setMenuBar(self.menubar)
- self.statusbar = QStatusBar(MainWindow)
- self.statusbar.setObjectName(u"statusbar")
- MainWindow.setStatusBar(self.statusbar)
- self.menubar.addAction(self.menuFile.menuAction())
- self.menubar.addAction(self.menu.menuAction())
- self.menubar.addAction(self.menu_2.menuAction())
- self.menuFile.addSeparator()
- self.menuFile.addAction(self.actionSave)
- self.menuFile.addAction(self.actionLoad)
- self.menuFile.addAction(self.btn_show_about)
- self.menuFile.addSeparator()
- self.menuFile.addAction(self.exit)
- self.menu.addAction(self.setting_cam)
- self.menu.addAction(self.menu_3.menuAction())
- self.menu_3.addSeparator()
- self.menu_3.addSeparator()
- self.menu_3.addAction(self.btn_show_personal_window)
- self.menu_3.addAction(self.btn_show_place_window)
- self.menu_3.addSeparator()
- self.menu_3.addAction(self.update_list)
- self.menu_2.addAction(self.action_open_history)
- self.retranslateUi(MainWindow)
- QMetaObject.connectSlotsByName(MainWindow)
- # setupUi
- def retranslateUi(self, MainWindow):
- MainWindow.setWindowTitle(QCoreApplication.translate(
- "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a", None))
- self.actionExit.setText(
- QCoreApplication.translate("MainWindow", u"Exit", None))
- self.actionSave.setText(
- QCoreApplication.translate("MainWindow", u"Save", None))
- self.actionLoad.setText(
- QCoreApplication.translate("MainWindow", u"Load", None))
- self.actionExit_2.setText(
- QCoreApplication.translate("MainWindow", u"Exit", None))
- self.setting_cam.setText(QCoreApplication.translate(
- "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u043c\u0435\u0440\u044b", None))
- self.btn_show_personal_window.setText(QCoreApplication.translate(
- "MainWindow", u"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438", None))
- self.btn_show_place_window.setText(QCoreApplication.translate(
- "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438", None))
- self.update_list.setText(QCoreApplication.translate(
- "MainWindow", u"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438", None))
- self.btn_show_about.setText(QCoreApplication.translate(
- "MainWindow", u"\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435", None))
- self.exit.setText(QCoreApplication.translate(
- "MainWindow", u"Exit", None))
- self.action_open_history.setText(QCoreApplication.translate(
- "MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432", None))
- self.groupBox.setTitle(QCoreApplication.translate(
- "MainWindow", u"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:", None))
- self.label.setText(QCoreApplication.translate(
- "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u2116:", None))
- self.label_2.setText(QCoreApplication.translate(
- "MainWindow", u"\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0434\u0430\u0447\u0438:", None))
- self.label_4.setText(QCoreApplication.translate(
- "MainWindow", u"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d\u0435 \u0434\u043e:", None))
- self.label_3.setText(QCoreApplication.translate(
- "MainWindow", u"\u0412\u044b\u0434\u0430\u043b:", None))
- self.label_5.setText(QCoreApplication.translate(
- "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438:", None))
- self.label_6.setText(QCoreApplication.translate(
- "MainWindow", u"\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439:", None))
- self.label_7.setText(QCoreApplication.translate(
- "MainWindow", u"\u0426\u0435\u043b\u044c \u0432\u0438\u0437\u0438\u0442\u0430:", None))
- self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate(
- "MainWindow", 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(
- "MainWindow", u"\u041A\u0430\u043C\u0435\u0440\u0430 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", None))
- self.btn_start_cam.setText(QCoreApplication.translate(
- "MainWindow", u"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443", None))
- self.capturePhoto.setText(QCoreApplication.translate(
- "MainWindow", u"\u0421\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u043e\u0432\u0430\u0442\u044c", None))
- self.btn_clear.setText(QCoreApplication.translate(
- "MainWindow", u"\u041e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c", None))
- self.btn_save.setText(QCoreApplication.translate(
- "MainWindow", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c", None))
- self.btn_print.setText(QCoreApplication.translate(
- "MainWindow", u"\u041f\u0435\u0447\u0430\u0442\u044c", None))
- self.menuFile.setTitle(
- QCoreApplication.translate("MainWindow", u"File", None))
- self.menu.setTitle(QCoreApplication.translate(
- "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438", None))
- self.menu_3.setTitle(QCoreApplication.translate(
- "MainWindow", u"\u0421\u043f\u0438\u0441\u043a\u0438", None))
- self.menu_2.setTitle(QCoreApplication.translate(
- "MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f", None))
- # retranslateUi
|