ui_MainWindow_back.py 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. # -*- coding: utf-8 -*-
  2. ################################################################################
  3. ## Form generated from reading UI file 'MainWindow.ui'
  4. ##
  5. ## Created by: Qt User Interface Compiler version 6.4.1
  6. ##
  7. ## WARNING! All changes made in this file will be lost when recompiling UI file!
  8. ################################################################################
  9. from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
  10. QMetaObject, QRect,
  11. QSize, QTime, Qt)
  12. from PySide6.QtGui import (QAction)
  13. from PySide6.QtMultimediaWidgets import QVideoWidget
  14. from PySide6.QtWidgets import (QComboBox, QDateTimeEdit, QFrame,
  15. QGridLayout, QGroupBox, QHBoxLayout, QLabel, QMenu, QMenuBar,
  16. QPushButton, QSizePolicy, QSplitter, QStackedWidget,
  17. QStatusBar, QTextEdit, QVBoxLayout, QWidget)
  18. from PropuskWidgets.PLineEdit import PLineEdit
  19. class Ui_MainWindow(object):
  20. def setupUi(self, MainWindow):
  21. if not MainWindow.objectName():
  22. MainWindow.setObjectName(u"MainWindow")
  23. MainWindow.setWindowModality(Qt.WindowModal)
  24. MainWindow.resize(920, 511)
  25. sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
  26. sizePolicy.setHorizontalStretch(0)
  27. sizePolicy.setVerticalStretch(0)
  28. sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
  29. MainWindow.setSizePolicy(sizePolicy)
  30. MainWindow.setBaseSize(QSize(864, 430))
  31. self.actionExit = QAction(MainWindow)
  32. self.actionExit.setObjectName(u"actionExit")
  33. self.actionSave = QAction(MainWindow)
  34. self.actionSave.setObjectName(u"actionSave")
  35. self.actionLoad = QAction(MainWindow)
  36. self.actionLoad.setObjectName(u"actionLoad")
  37. self.actionExit_2 = QAction(MainWindow)
  38. self.actionExit_2.setObjectName(u"actionExit_2")
  39. self.setting_cam = QAction(MainWindow)
  40. self.setting_cam.setObjectName(u"setting_cam")
  41. self.btn_show_personal_window = QAction(MainWindow)
  42. self.btn_show_personal_window.setObjectName(u"btn_show_personal_window")
  43. self.btn_show_place_window = QAction(MainWindow)
  44. self.btn_show_place_window.setObjectName(u"btn_show_place_window")
  45. self.update_list = QAction(MainWindow)
  46. self.update_list.setObjectName(u"update_list")
  47. self.btn_show_about = QAction(MainWindow)
  48. self.btn_show_about.setObjectName(u"btn_show_about")
  49. self.exit = QAction(MainWindow)
  50. self.exit.setObjectName(u"exit")
  51. self.action_open_history = QAction(MainWindow)
  52. self.action_open_history.setObjectName(u"action_open_history")
  53. self.centralwidget = QWidget(MainWindow)
  54. self.centralwidget.setObjectName(u"centralwidget")
  55. self.centralwidget.setEnabled(True)
  56. sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
  57. self.centralwidget.setSizePolicy(sizePolicy)
  58. self.centralwidget.setFocusPolicy(Qt.NoFocus)
  59. self.centralwidget.setAutoFillBackground(False)
  60. self.gridLayout = QGridLayout(self.centralwidget)
  61. self.gridLayout.setObjectName(u"gridLayout")
  62. self.groupBox = QGroupBox(self.centralwidget)
  63. self.groupBox.setObjectName(u"groupBox")
  64. self.groupBox.setMinimumSize(QSize(400, 0))
  65. self.verticalLayout_3 = QVBoxLayout(self.groupBox)
  66. self.verticalLayout_3.setObjectName(u"verticalLayout_3")
  67. self.horizontalLayout = QHBoxLayout()
  68. self.horizontalLayout.setObjectName(u"horizontalLayout")
  69. self.label = QLabel(self.groupBox)
  70. self.label.setObjectName(u"label")
  71. sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
  72. self.label.setSizePolicy(sizePolicy)
  73. self.horizontalLayout.addWidget(self.label)
  74. self.number_propusk = PLineEdit(self.groupBox)
  75. self.number_propusk.setObjectName(u"number_propusk")
  76. self.number_propusk.setMaxLength(32767)
  77. self.horizontalLayout.addWidget(self.number_propusk)
  78. self.verticalLayout_3.addLayout(self.horizontalLayout)
  79. self.horizontalLayout_2 = QHBoxLayout()
  80. self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
  81. self.label_2 = QLabel(self.groupBox)
  82. self.label_2.setObjectName(u"label_2")
  83. self.horizontalLayout_2.addWidget(self.label_2)
  84. self.date_from = QDateTimeEdit(self.groupBox)
  85. self.date_from.setObjectName(u"date_from")
  86. self.date_from.setDateTime(QDateTime(QDate(1999, 12, 31), QTime(21, 0, 0)))
  87. self.date_from.setTimeSpec(Qt.UTC)
  88. self.horizontalLayout_2.addWidget(self.date_from)
  89. self.verticalLayout_3.addLayout(self.horizontalLayout_2)
  90. self.horizontalLayout_3 = QHBoxLayout()
  91. self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
  92. self.label_4 = QLabel(self.groupBox)
  93. self.label_4.setObjectName(u"label_4")
  94. self.horizontalLayout_3.addWidget(self.label_4)
  95. self.date_to = QDateTimeEdit(self.groupBox)
  96. self.date_to.setObjectName(u"date_to")
  97. self.horizontalLayout_3.addWidget(self.date_to)
  98. self.verticalLayout_3.addLayout(self.horizontalLayout_3)
  99. self.horizontalLayout_4 = QHBoxLayout()
  100. self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
  101. self.label_3 = QLabel(self.groupBox)
  102. self.label_3.setObjectName(u"label_3")
  103. self.horizontalLayout_4.addWidget(self.label_3)
  104. self.personal_combobox = QComboBox(self.groupBox)
  105. self.personal_combobox.setObjectName(u"personal_combobox")
  106. self.horizontalLayout_4.addWidget(self.personal_combobox)
  107. self.verticalLayout_3.addLayout(self.horizontalLayout_4)
  108. self.horizontalLayout_5 = QHBoxLayout()
  109. self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
  110. self.label_5 = QLabel(self.groupBox)
  111. self.label_5.setObjectName(u"label_5")
  112. self.horizontalLayout_5.addWidget(self.label_5)
  113. self.place_combobox = QComboBox(self.groupBox)
  114. self.place_combobox.setObjectName(u"place_combobox")
  115. self.horizontalLayout_5.addWidget(self.place_combobox)
  116. self.verticalLayout_3.addLayout(self.horizontalLayout_5)
  117. self.verticalLayout = QVBoxLayout()
  118. self.verticalLayout.setObjectName(u"verticalLayout")
  119. self.label_6 = QLabel(self.groupBox)
  120. self.label_6.setObjectName(u"label_6")
  121. self.verticalLayout.addWidget(self.label_6)
  122. self.receiving_man = QTextEdit(self.groupBox)
  123. self.receiving_man.setObjectName(u"receiving_man")
  124. self.verticalLayout.addWidget(self.receiving_man)
  125. self.verticalLayout_3.addLayout(self.verticalLayout)
  126. self.verticalLayout_2 = QVBoxLayout()
  127. self.verticalLayout_2.setObjectName(u"verticalLayout_2")
  128. self.label_7 = QLabel(self.groupBox)
  129. self.label_7.setObjectName(u"label_7")
  130. self.verticalLayout_2.addWidget(self.label_7)
  131. self.purpose_visite = QTextEdit(self.groupBox)
  132. self.purpose_visite.setObjectName(u"purpose_visite")
  133. self.verticalLayout_2.addWidget(self.purpose_visite)
  134. self.verticalLayout_3.addLayout(self.verticalLayout_2)
  135. self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
  136. self.groupBox_2 = QGroupBox(self.centralwidget)
  137. self.groupBox_2.setObjectName(u"groupBox_2")
  138. self.verticalLayout_4 = QVBoxLayout(self.groupBox_2)
  139. self.verticalLayout_4.setObjectName(u"verticalLayout_4")
  140. self.stacked_widget_photo = QStackedWidget(self.groupBox_2)
  141. self.stacked_widget_photo.setObjectName(u"stacked_widget_photo")
  142. self.stacked_widget_photo.setEnabled(True)
  143. #if QT_CONFIG(tooltip)
  144. self.stacked_widget_photo.setToolTip(u"")
  145. #endif // QT_CONFIG(tooltip)
  146. self.page = QWidget()
  147. self.page.setObjectName(u"page")
  148. self.gridLayout_2 = QGridLayout(self.page)
  149. self.gridLayout_2.setObjectName(u"gridLayout_2")
  150. self.imagePhoto = QLabel(self.page)
  151. self.imagePhoto.setObjectName(u"imagePhoto")
  152. self.imagePhoto.setEnabled(True)
  153. sizePolicy.setHeightForWidth(self.imagePhoto.sizePolicy().hasHeightForWidth())
  154. self.imagePhoto.setSizePolicy(sizePolicy)
  155. self.imagePhoto.setFrameShape(QFrame.Box)
  156. self.imagePhoto.setFrameShadow(QFrame.Raised)
  157. self.imagePhoto.setWordWrap(False)
  158. self.gridLayout_2.addWidget(self.imagePhoto, 0, 0, 1, 1)
  159. self.stacked_widget_photo.addWidget(self.page)
  160. self.page_2 = QWidget()
  161. self.page_2.setObjectName(u"page_2")
  162. self.gridLayout_4 = QGridLayout(self.page_2)
  163. self.gridLayout_4.setObjectName(u"gridLayout_4")
  164. self.face_video_widget = QVideoWidget(self.page_2)
  165. self.face_video_widget.setObjectName(u"face_video_widget")
  166. self.face_video_widget.setEnabled(False)
  167. sizePolicy.setHeightForWidth(self.face_video_widget.sizePolicy().hasHeightForWidth())
  168. self.face_video_widget.setSizePolicy(sizePolicy)
  169. self.gridLayout_4.addWidget(self.face_video_widget, 0, 0, 1, 1)
  170. self.stacked_widget_photo.addWidget(self.page_2)
  171. self.verticalLayout_4.addWidget(self.stacked_widget_photo)
  172. self.splitter = QSplitter(self.groupBox_2)
  173. self.splitter.setObjectName(u"splitter")
  174. self.splitter.setOrientation(Qt.Horizontal)
  175. self.btn_start_cam_photo = QPushButton(self.splitter)
  176. self.btn_start_cam_photo.setObjectName(u"btn_start_cam_photo")
  177. self.splitter.addWidget(self.btn_start_cam_photo)
  178. self.capturePhoto = QPushButton(self.splitter)
  179. self.capturePhoto.setObjectName(u"capturePhoto")
  180. self.splitter.addWidget(self.capturePhoto)
  181. self.verticalLayout_4.addWidget(self.splitter)
  182. self.gridLayout.addWidget(self.groupBox_2, 0, 1, 1, 2)
  183. self.btn_clear = QPushButton(self.centralwidget)
  184. self.btn_clear.setObjectName(u"btn_clear")
  185. sizePolicy.setHeightForWidth(self.btn_clear.sizePolicy().hasHeightForWidth())
  186. self.btn_clear.setSizePolicy(sizePolicy)
  187. self.gridLayout.addWidget(self.btn_clear, 1, 0, 1, 1)
  188. self.btn_save = QPushButton(self.centralwidget)
  189. self.btn_save.setObjectName(u"btn_save")
  190. sizePolicy.setHeightForWidth(self.btn_save.sizePolicy().hasHeightForWidth())
  191. self.btn_save.setSizePolicy(sizePolicy)
  192. self.gridLayout.addWidget(self.btn_save, 1, 1, 1, 1)
  193. self.btn_print = QPushButton(self.centralwidget)
  194. self.btn_print.setObjectName(u"btn_print")
  195. sizePolicy.setHeightForWidth(self.btn_print.sizePolicy().hasHeightForWidth())
  196. self.btn_print.setSizePolicy(sizePolicy)
  197. self.gridLayout.addWidget(self.btn_print, 1, 2, 1, 1)
  198. MainWindow.setCentralWidget(self.centralwidget)
  199. self.menubar = QMenuBar(MainWindow)
  200. self.menubar.setObjectName(u"menubar")
  201. self.menubar.setGeometry(QRect(0, 0, 920, 23))
  202. self.menubar.setMouseTracking(True)
  203. self.menubar.setAcceptDrops(True)
  204. self.menubar.setNativeMenuBar(True)
  205. self.menuFile = QMenu(self.menubar)
  206. self.menuFile.setObjectName(u"menuFile")
  207. self.menu = QMenu(self.menubar)
  208. self.menu.setObjectName(u"menu")
  209. self.menu_3 = QMenu(self.menu)
  210. self.menu_3.setObjectName(u"menu_3")
  211. self.menu_2 = QMenu(self.menubar)
  212. self.menu_2.setObjectName(u"menu_2")
  213. MainWindow.setMenuBar(self.menubar)
  214. self.statusbar = QStatusBar(MainWindow)
  215. self.statusbar.setObjectName(u"statusbar")
  216. MainWindow.setStatusBar(self.statusbar)
  217. self.menubar.addAction(self.menuFile.menuAction())
  218. self.menubar.addAction(self.menu.menuAction())
  219. self.menubar.addAction(self.menu_2.menuAction())
  220. self.menuFile.addSeparator()
  221. self.menuFile.addAction(self.actionSave)
  222. self.menuFile.addAction(self.actionLoad)
  223. self.menuFile.addAction(self.btn_show_about)
  224. self.menuFile.addSeparator()
  225. self.menuFile.addAction(self.exit)
  226. self.menu.addAction(self.setting_cam)
  227. self.menu.addAction(self.menu_3.menuAction())
  228. self.menu_3.addSeparator()
  229. self.menu_3.addSeparator()
  230. self.menu_3.addAction(self.btn_show_personal_window)
  231. self.menu_3.addAction(self.btn_show_place_window)
  232. self.menu_3.addSeparator()
  233. self.menu_3.addAction(self.update_list)
  234. self.menu_2.addAction(self.action_open_history)
  235. self.retranslateUi(MainWindow)
  236. QMetaObject.connectSlotsByName(MainWindow)
  237. # setupUi
  238. def retranslateUi(self, MainWindow):
  239. MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a", None))
  240. self.actionExit.setText(QCoreApplication.translate("MainWindow", u"Exit", None))
  241. self.actionSave.setText(QCoreApplication.translate("MainWindow", u"Save", None))
  242. self.actionLoad.setText(QCoreApplication.translate("MainWindow", u"Load", None))
  243. self.actionExit_2.setText(QCoreApplication.translate("MainWindow", u"Exit", None))
  244. self.setting_cam.setText(QCoreApplication.translate("MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u043c\u0435\u0440\u044b", None))
  245. self.btn_show_personal_window.setText(QCoreApplication.translate("MainWindow", u"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438", None))
  246. self.btn_show_place_window.setText(QCoreApplication.translate("MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u043e\u0447\u0438", None))
  247. self.update_list.setText(QCoreApplication.translate("MainWindow", u"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438", None))
  248. self.btn_show_about.setText(QCoreApplication.translate("MainWindow", u"\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435", None))
  249. self.exit.setText(QCoreApplication.translate("MainWindow", u"Exit", None))
  250. 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))
  251. self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:", None))
  252. 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))
  253. 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))
  254. self.label_4.setText(QCoreApplication.translate("MainWindow", u"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d\u0435 \u0434\u043e:", None))
  255. self.label_3.setText(QCoreApplication.translate("MainWindow", u"\u0412\u044b\u0434\u0430\u043b:", None))
  256. self.label_5.setText(QCoreApplication.translate("MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438:", None))
  257. self.label_6.setText(QCoreApplication.translate("MainWindow", u"\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439:", None))
  258. self.label_7.setText(QCoreApplication.translate("MainWindow", u"\u0426\u0435\u043b\u044c \u0432\u0438\u0437\u0438\u0442\u0430:", None))
  259. self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow", u"\u0424\u043e\u0442\u043e", None))
  260. #if QT_CONFIG(statustip)
  261. self.stacked_widget_photo.setStatusTip("")
  262. #endif // QT_CONFIG(statustip)
  263. self.imagePhoto.setText("")
  264. self.btn_start_cam_photo.setText(QCoreApplication.translate("MainWindow", u"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443", None))
  265. self.capturePhoto.setText(QCoreApplication.translate("MainWindow", u"\u0421\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u043e\u0432\u0430\u0442\u044c", None))
  266. self.btn_clear.setText(QCoreApplication.translate("MainWindow", u"\u041e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c", None))
  267. self.btn_save.setText(QCoreApplication.translate("MainWindow", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c", None))
  268. self.btn_print.setText(QCoreApplication.translate("MainWindow", u"\u041f\u0435\u0447\u0430\u0442\u044c", None))
  269. self.menuFile.setTitle(QCoreApplication.translate("MainWindow", u"File", None))
  270. self.menu.setTitle(QCoreApplication.translate("MainWindow", u"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438", None))
  271. self.menu_3.setTitle(QCoreApplication.translate("MainWindow", u"\u0421\u043f\u0438\u0441\u043a\u0438", None))
  272. self.menu_2.setTitle(QCoreApplication.translate("MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f", None))
  273. # retranslateUi