ui_MainWindow.py 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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, QMetaObject, QRect,
  10. QSize, Qt)
  11. from PySide6.QtGui import QAction
  12. from PySide6.QtMultimediaWidgets import QVideoWidget
  13. from PySide6.QtWidgets import (QComboBox, QDateTimeEdit, QFrame,
  14. QGridLayout, QGroupBox, QHBoxLayout, QLabel,
  15. QLineEdit, QMenu, QMenuBar,
  16. QPushButton, QSizePolicy, QSplitter, QStackedWidget,
  17. QStatusBar, QTextEdit, QVBoxLayout, QWidget)
  18. class Ui_MainWindow(object):
  19. def setupUi(self, MainWindow):
  20. if not MainWindow.objectName():
  21. MainWindow.setObjectName(u"MainWindow")
  22. MainWindow.setWindowModality(Qt.WindowModal)
  23. MainWindow.resize(1228, 533)
  24. sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
  25. sizePolicy.setHorizontalStretch(0)
  26. sizePolicy.setVerticalStretch(0)
  27. sizePolicy.setHeightForWidth(
  28. 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(
  43. u"btn_show_personal_window")
  44. self.btn_show_place_window = QAction(MainWindow)
  45. self.btn_show_place_window.setObjectName(u"btn_show_place_window")
  46. self.update_list = QAction(MainWindow)
  47. self.update_list.setObjectName(u"update_list")
  48. self.centralwidget = QWidget(MainWindow)
  49. self.centralwidget.setObjectName(u"centralwidget")
  50. self.centralwidget.setEnabled(True)
  51. sizePolicy.setHeightForWidth(
  52. self.centralwidget.sizePolicy().hasHeightForWidth())
  53. self.centralwidget.setSizePolicy(sizePolicy)
  54. self.centralwidget.setFocusPolicy(Qt.NoFocus)
  55. self.centralwidget.setAutoFillBackground(False)
  56. self.gridLayout = QGridLayout(self.centralwidget)
  57. self.gridLayout.setObjectName(u"gridLayout")
  58. self.groupBox_2 = QGroupBox(self.centralwidget)
  59. self.groupBox_2.setObjectName(u"groupBox_2")
  60. self.verticalLayout_4 = QVBoxLayout(self.groupBox_2)
  61. self.verticalLayout_4.setObjectName(u"verticalLayout_4")
  62. self.stacked_widget_photo = QStackedWidget(self.groupBox_2)
  63. self.stacked_widget_photo.setObjectName(u"stacked_widget_photo")
  64. self.stacked_widget_photo.setEnabled(True)
  65. # if QT_CONFIG(tooltip)
  66. self.stacked_widget_photo.setToolTip(u"")
  67. # endif // QT_CONFIG(tooltip)
  68. self.page = QWidget()
  69. self.page.setObjectName(u"page")
  70. self.gridLayout_2 = QGridLayout(self.page)
  71. self.gridLayout_2.setObjectName(u"gridLayout_2")
  72. self.imagePhoto = QLabel(self.page)
  73. self.imagePhoto.setObjectName(u"imagePhoto")
  74. self.imagePhoto.setEnabled(True)
  75. sizePolicy.setHeightForWidth(
  76. self.imagePhoto.sizePolicy().hasHeightForWidth())
  77. self.imagePhoto.setSizePolicy(sizePolicy)
  78. self.imagePhoto.setFrameShape(QFrame.Box)
  79. self.imagePhoto.setFrameShadow(QFrame.Raised)
  80. self.imagePhoto.setWordWrap(False)
  81. self.gridLayout_2.addWidget(self.imagePhoto, 0, 0, 1, 1)
  82. self.stacked_widget_photo.addWidget(self.page)
  83. self.page_2 = QWidget()
  84. self.page_2.setObjectName(u"page_2")
  85. self.gridLayout_4 = QGridLayout(self.page_2)
  86. self.gridLayout_4.setObjectName(u"gridLayout_4")
  87. self.face_video_widget = QVideoWidget(self.page_2)
  88. self.face_video_widget.setObjectName(u"face_video_widget")
  89. self.face_video_widget.setEnabled(False)
  90. sizePolicy.setHeightForWidth(
  91. self.face_video_widget.sizePolicy().hasHeightForWidth())
  92. self.face_video_widget.setSizePolicy(sizePolicy)
  93. self.gridLayout_4.addWidget(self.face_video_widget, 0, 0, 1, 1)
  94. self.stacked_widget_photo.addWidget(self.page_2)
  95. self.verticalLayout_4.addWidget(self.stacked_widget_photo)
  96. self.splitter = QSplitter(self.groupBox_2)
  97. self.splitter.setObjectName(u"splitter")
  98. self.splitter.setOrientation(Qt.Horizontal)
  99. self.btn_start_cam_photo = QPushButton(self.splitter)
  100. self.btn_start_cam_photo.setObjectName(u"btn_start_cam_photo")
  101. self.splitter.addWidget(self.btn_start_cam_photo)
  102. self.capturePhoto = QPushButton(self.splitter)
  103. self.capturePhoto.setObjectName(u"capturePhoto")
  104. self.splitter.addWidget(self.capturePhoto)
  105. self.verticalLayout_4.addWidget(self.splitter)
  106. self.gridLayout.addWidget(self.groupBox_2, 0, 2, 2, 1)
  107. self.btn_print = QPushButton(self.centralwidget)
  108. self.btn_print.setObjectName(u"btn_print")
  109. sizePolicy.setHeightForWidth(
  110. self.btn_print.sizePolicy().hasHeightForWidth())
  111. self.btn_print.setSizePolicy(sizePolicy)
  112. self.gridLayout.addWidget(self.btn_print, 2, 3, 1, 1)
  113. self.groupBox_3 = QGroupBox(self.centralwidget)
  114. self.groupBox_3.setObjectName(u"groupBox_3")
  115. self.verticalLayout_5 = QVBoxLayout(self.groupBox_3)
  116. self.verticalLayout_5.setObjectName(u"verticalLayout_5")
  117. self.stacked_widget_pasport = QStackedWidget(self.groupBox_3)
  118. self.stacked_widget_pasport.setObjectName(u"stacked_widget_pasport")
  119. self.stacked_widget_pasport.setEnabled(True)
  120. self.page_3 = QWidget()
  121. self.page_3.setObjectName(u"page_3")
  122. self.gridLayout_3 = QGridLayout(self.page_3)
  123. self.gridLayout_3.setObjectName(u"gridLayout_3")
  124. self.imagePasport = QLabel(self.page_3)
  125. self.imagePasport.setObjectName(u"imagePasport")
  126. self.imagePasport.setEnabled(True)
  127. sizePolicy.setHeightForWidth(
  128. self.imagePasport.sizePolicy().hasHeightForWidth())
  129. self.imagePasport.setSizePolicy(sizePolicy)
  130. self.imagePasport.setFrameShape(QFrame.Box)
  131. self.imagePasport.setFrameShadow(QFrame.Raised)
  132. self.gridLayout_3.addWidget(self.imagePasport, 0, 0, 1, 1)
  133. self.stacked_widget_pasport.addWidget(self.page_3)
  134. self.page_4 = QWidget()
  135. self.page_4.setObjectName(u"page_4")
  136. self.gridLayout_5 = QGridLayout(self.page_4)
  137. self.gridLayout_5.setObjectName(u"gridLayout_5")
  138. self.pasport_video_widget = QVideoWidget(self.page_4)
  139. self.pasport_video_widget.setObjectName(u"pasport_video_widget")
  140. sizePolicy.setHeightForWidth(
  141. self.pasport_video_widget.sizePolicy().hasHeightForWidth())
  142. self.pasport_video_widget.setSizePolicy(sizePolicy)
  143. self.gridLayout_5.addWidget(self.pasport_video_widget, 0, 0, 1, 1)
  144. self.stacked_widget_pasport.addWidget(self.page_4)
  145. self.verticalLayout_5.addWidget(self.stacked_widget_pasport)
  146. self.splitter_2 = QSplitter(self.groupBox_3)
  147. self.splitter_2.setObjectName(u"splitter_2")
  148. self.splitter_2.setOrientation(Qt.Horizontal)
  149. self.btn_start_cam_pasport = QPushButton(self.splitter_2)
  150. self.btn_start_cam_pasport.setObjectName(u"btn_start_cam_pasport")
  151. self.splitter_2.addWidget(self.btn_start_cam_pasport)
  152. self.capturePasport = QPushButton(self.splitter_2)
  153. self.capturePasport.setObjectName(u"capturePasport")
  154. self.splitter_2.addWidget(self.capturePasport)
  155. self.verticalLayout_5.addWidget(self.splitter_2)
  156. self.gridLayout.addWidget(self.groupBox_3, 0, 3, 2, 1)
  157. self.groupBox = QGroupBox(self.centralwidget)
  158. self.groupBox.setObjectName(u"groupBox")
  159. self.groupBox.setMinimumSize(QSize(400, 0))
  160. self.verticalLayout_3 = QVBoxLayout(self.groupBox)
  161. self.verticalLayout_3.setObjectName(u"verticalLayout_3")
  162. self.horizontalLayout = QHBoxLayout()
  163. self.horizontalLayout.setObjectName(u"horizontalLayout")
  164. self.label = QLabel(self.groupBox)
  165. self.label.setObjectName(u"label")
  166. sizePolicy.setHeightForWidth(
  167. self.label.sizePolicy().hasHeightForWidth())
  168. self.label.setSizePolicy(sizePolicy)
  169. self.horizontalLayout.addWidget(self.label)
  170. self.number_propusk = QLineEdit(self.groupBox)
  171. self.number_propusk.setObjectName(u"number_propusk")
  172. self.horizontalLayout.addWidget(self.number_propusk)
  173. self.verticalLayout_3.addLayout(self.horizontalLayout)
  174. self.horizontalLayout_2 = QHBoxLayout()
  175. self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
  176. self.label_2 = QLabel(self.groupBox)
  177. self.label_2.setObjectName(u"label_2")
  178. self.horizontalLayout_2.addWidget(self.label_2)
  179. self.date_from = QDateTimeEdit(self.groupBox)
  180. self.date_from.setObjectName(u"date_from")
  181. self.horizontalLayout_2.addWidget(self.date_from)
  182. self.verticalLayout_3.addLayout(self.horizontalLayout_2)
  183. self.horizontalLayout_3 = QHBoxLayout()
  184. self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
  185. self.label_4 = QLabel(self.groupBox)
  186. self.label_4.setObjectName(u"label_4")
  187. self.horizontalLayout_3.addWidget(self.label_4)
  188. self.date_to = QDateTimeEdit(self.groupBox)
  189. self.date_to.setObjectName(u"date_to")
  190. self.horizontalLayout_3.addWidget(self.date_to)
  191. self.verticalLayout_3.addLayout(self.horizontalLayout_3)
  192. self.horizontalLayout_4 = QHBoxLayout()
  193. self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
  194. self.label_3 = QLabel(self.groupBox)
  195. self.label_3.setObjectName(u"label_3")
  196. self.horizontalLayout_4.addWidget(self.label_3)
  197. self.personal_combobox = QComboBox(self.groupBox)
  198. self.personal_combobox.setObjectName(u"personal_combobox")
  199. self.horizontalLayout_4.addWidget(self.personal_combobox)
  200. self.verticalLayout_3.addLayout(self.horizontalLayout_4)
  201. self.horizontalLayout_5 = QHBoxLayout()
  202. self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
  203. self.label_5 = QLabel(self.groupBox)
  204. self.label_5.setObjectName(u"label_5")
  205. self.horizontalLayout_5.addWidget(self.label_5)
  206. self.place_combobox = QComboBox(self.groupBox)
  207. self.place_combobox.setObjectName(u"place_combobox")
  208. self.horizontalLayout_5.addWidget(self.place_combobox)
  209. self.verticalLayout_3.addLayout(self.horizontalLayout_5)
  210. self.verticalLayout = QVBoxLayout()
  211. self.verticalLayout.setObjectName(u"verticalLayout")
  212. self.label_6 = QLabel(self.groupBox)
  213. self.label_6.setObjectName(u"label_6")
  214. self.verticalLayout.addWidget(self.label_6)
  215. self.receiving_man = QTextEdit(self.groupBox)
  216. self.receiving_man.setObjectName(u"receiving_man")
  217. self.verticalLayout.addWidget(self.receiving_man)
  218. self.verticalLayout_3.addLayout(self.verticalLayout)
  219. self.verticalLayout_2 = QVBoxLayout()
  220. self.verticalLayout_2.setObjectName(u"verticalLayout_2")
  221. self.label_7 = QLabel(self.groupBox)
  222. self.label_7.setObjectName(u"label_7")
  223. self.verticalLayout_2.addWidget(self.label_7)
  224. self.purpose_visite = QTextEdit(self.groupBox)
  225. self.purpose_visite.setObjectName(u"purpose_visite")
  226. self.verticalLayout_2.addWidget(self.purpose_visite)
  227. self.verticalLayout_3.addLayout(self.verticalLayout_2)
  228. self.gridLayout.addWidget(self.groupBox, 0, 0, 2, 2)
  229. self.btn_save = QPushButton(self.centralwidget)
  230. self.btn_save.setObjectName(u"btn_save")
  231. sizePolicy.setHeightForWidth(
  232. self.btn_save.sizePolicy().hasHeightForWidth())
  233. self.btn_save.setSizePolicy(sizePolicy)
  234. self.gridLayout.addWidget(self.btn_save, 2, 2, 1, 1)
  235. self.btn_clear = QPushButton(self.centralwidget)
  236. self.btn_clear.setObjectName(u"btn_clear")
  237. sizePolicy.setHeightForWidth(
  238. self.btn_clear.sizePolicy().hasHeightForWidth())
  239. self.btn_clear.setSizePolicy(sizePolicy)
  240. self.gridLayout.addWidget(self.btn_clear, 2, 0, 1, 1)
  241. MainWindow.setCentralWidget(self.centralwidget)
  242. self.menubar = QMenuBar(MainWindow)
  243. self.menubar.setObjectName(u"menubar")
  244. self.menubar.setGeometry(QRect(0, 0, 1228, 23))
  245. self.menubar.setMouseTracking(True)
  246. self.menubar.setAcceptDrops(True)
  247. self.menubar.setNativeMenuBar(True)
  248. self.menuFile = QMenu(self.menubar)
  249. self.menuFile.setObjectName(u"menuFile")
  250. self.menu = QMenu(self.menubar)
  251. self.menu.setObjectName(u"menu")
  252. self.menu_3 = QMenu(self.menu)
  253. self.menu_3.setObjectName(u"menu_3")
  254. self.menu_2 = QMenu(self.menubar)
  255. self.menu_2.setObjectName(u"menu_2")
  256. MainWindow.setMenuBar(self.menubar)
  257. self.statusbar = QStatusBar(MainWindow)
  258. self.statusbar.setObjectName(u"statusbar")
  259. MainWindow.setStatusBar(self.statusbar)
  260. self.menubar.addAction(self.menuFile.menuAction())
  261. self.menubar.addAction(self.menu.menuAction())
  262. self.menubar.addAction(self.menu_2.menuAction())
  263. self.menuFile.addSeparator()
  264. self.menuFile.addAction(self.actionSave)
  265. self.menuFile.addAction(self.actionLoad)
  266. self.menuFile.addSeparator()
  267. self.menuFile.addAction(self.actionExit_2)
  268. self.menu.addAction(self.setting_cam)
  269. self.menu.addAction(self.menu_3.menuAction())
  270. self.menu_3.addSeparator()
  271. self.menu_3.addSeparator()
  272. self.menu_3.addAction(self.btn_show_personal_window)
  273. self.menu_3.addAction(self.btn_show_place_window)
  274. self.menu_3.addSeparator()
  275. self.menu_3.addAction(self.update_list)
  276. self.retranslateUi(MainWindow)
  277. self.stacked_widget_pasport.setCurrentIndex(0)
  278. QMetaObject.connectSlotsByName(MainWindow)
  279. # setupUi
  280. def retranslateUi(self, MainWindow):
  281. MainWindow.setWindowTitle(QCoreApplication.translate(
  282. "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a", None))
  283. self.actionExit.setText(
  284. QCoreApplication.translate("MainWindow", u"Exit", None))
  285. self.actionSave.setText(
  286. QCoreApplication.translate("MainWindow", u"Save", None))
  287. self.actionLoad.setText(
  288. QCoreApplication.translate("MainWindow", u"Load", None))
  289. self.actionExit_2.setText(
  290. QCoreApplication.translate("MainWindow", u"Exit", None))
  291. self.setting_cam.setText(QCoreApplication.translate(
  292. "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u043c\u0435\u0440\u044b", None))
  293. self.btn_show_personal_window.setText(QCoreApplication.translate(
  294. "MainWindow", u"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438", None))
  295. self.btn_show_place_window.setText(QCoreApplication.translate(
  296. "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u043e\u0447\u0438", None))
  297. self.update_list.setText(QCoreApplication.translate(
  298. "MainWindow", u"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438", None))
  299. self.groupBox_2.setTitle(QCoreApplication.translate(
  300. "MainWindow", u"\u0424\u043e\u0442\u043e", None))
  301. # if QT_CONFIG(statustip)
  302. self.stacked_widget_photo.setStatusTip("")
  303. # endif // QT_CONFIG(statustip)
  304. self.imagePhoto.setText("")
  305. self.btn_start_cam_photo.setText(QCoreApplication.translate(
  306. "MainWindow", u"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443", None))
  307. self.capturePhoto.setText(QCoreApplication.translate(
  308. "MainWindow", u"\u0421\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u043e\u0432\u0430\u0442\u044c", None))
  309. self.btn_print.setText(QCoreApplication.translate(
  310. "MainWindow", u"\u041f\u0435\u0447\u0430\u0442\u044c", None))
  311. self.groupBox_3.setTitle(QCoreApplication.translate(
  312. "MainWindow", u"\u0424\u043e\u0442\u043e \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u0430", None))
  313. self.imagePasport.setText("")
  314. self.btn_start_cam_pasport.setText(QCoreApplication.translate(
  315. "MainWindow", u"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443", None))
  316. self.capturePasport.setText(QCoreApplication.translate(
  317. "MainWindow", u"\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u0430", None))
  318. self.groupBox.setTitle(QCoreApplication.translate(
  319. "MainWindow", u"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:", None))
  320. self.label.setText(QCoreApplication.translate(
  321. "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u2116:", None))
  322. self.number_propusk.setInputMask("")
  323. self.label_2.setText(QCoreApplication.translate(
  324. "MainWindow", u"\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0434\u0430\u0447\u0438:", None))
  325. self.label_4.setText(QCoreApplication.translate(
  326. "MainWindow", u"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d\u0435 \u0434\u043e:", None))
  327. self.label_3.setText(QCoreApplication.translate(
  328. "MainWindow", u"\u0412\u044b\u0434\u0430\u043b:", None))
  329. self.label_5.setText(QCoreApplication.translate(
  330. "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438:", None))
  331. self.label_6.setText(QCoreApplication.translate(
  332. "MainWindow", u"\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439:", None))
  333. self.label_7.setText(QCoreApplication.translate(
  334. "MainWindow", u"\u0426\u0435\u043b\u044c \u0432\u0438\u0437\u0438\u0442\u0430:", None))
  335. self.btn_save.setText(QCoreApplication.translate(
  336. "MainWindow", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c", None))
  337. self.btn_clear.setText(QCoreApplication.translate(
  338. "MainWindow", u"\u041e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c", None))
  339. self.menuFile.setTitle(
  340. QCoreApplication.translate("MainWindow", u"File", None))
  341. self.menu.setTitle(QCoreApplication.translate(
  342. "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u043a\u0438", None))
  343. self.menu_3.setTitle(QCoreApplication.translate(
  344. "MainWindow", u"\u0421\u043f\u0438\u0441\u043a\u0438", None))
  345. self.menu_2.setTitle(QCoreApplication.translate(
  346. "MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432", None))
  347. # retranslateUi