ui_MainWindow.py 17 KB

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