ui_MainWindow.py 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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, QBrush, QColor, QConicalGradient,
  13. QCursor, QFont, QFontDatabase, QGradient,
  14. QIcon, QImage, QKeySequence, QLinearGradient,
  15. QPainter, QPalette, QPixmap, QRadialGradient,
  16. QTransform)
  17. from PySide6.QtMultimediaWidgets import QVideoWidget
  18. from PySide6.QtWidgets import (QApplication, QComboBox, QDateTimeEdit, QFrame,
  19. QGridLayout, QGroupBox, QHBoxLayout, QLabel,
  20. QLayout, QLineEdit, QMainWindow, QMenu,
  21. QMenuBar, QPushButton, QSizePolicy, QStackedWidget,
  22. QStatusBar, QTabWidget, QTextEdit, QVBoxLayout,
  23. QWidget)
  24. from widgets import PLineEdit, PStackedWidget
  25. class Ui_MainWindow(object):
  26. def setupUi(self, MainWindow):
  27. if not MainWindow.objectName():
  28. MainWindow.setObjectName(u"MainWindow")
  29. MainWindow.setWindowModality(Qt.WindowModal)
  30. MainWindow.resize(920, 588)
  31. sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
  32. sizePolicy.setHorizontalStretch(0)
  33. sizePolicy.setVerticalStretch(0)
  34. sizePolicy.setHeightForWidth(
  35. MainWindow.sizePolicy().hasHeightForWidth())
  36. MainWindow.setSizePolicy(sizePolicy)
  37. MainWindow.setBaseSize(QSize(864, 430))
  38. self.actionExit = QAction(MainWindow)
  39. self.actionExit.setObjectName(u"actionExit")
  40. self.actionSave = QAction(MainWindow)
  41. self.actionSave.setObjectName(u"actionSave")
  42. self.actionLoad = QAction(MainWindow)
  43. self.actionLoad.setObjectName(u"actionLoad")
  44. self.actionExit_2 = QAction(MainWindow)
  45. self.actionExit_2.setObjectName(u"actionExit_2")
  46. self.setting_cam = QAction(MainWindow)
  47. self.setting_cam.setObjectName(u"setting_cam")
  48. self.btn_show_personal_window = QAction(MainWindow)
  49. self.btn_show_personal_window.setObjectName(
  50. u"btn_show_personal_window")
  51. self.btn_show_place_window = QAction(MainWindow)
  52. self.btn_show_place_window.setObjectName(u"btn_show_place_window")
  53. self.update_list = QAction(MainWindow)
  54. self.update_list.setObjectName(u"update_list")
  55. self.btn_show_about = QAction(MainWindow)
  56. self.btn_show_about.setObjectName(u"btn_show_about")
  57. self.exit = QAction(MainWindow)
  58. self.exit.setObjectName(u"exit")
  59. self.action_open_history = QAction(MainWindow)
  60. self.action_open_history.setObjectName(u"action_open_history")
  61. self.centralwidget = QWidget(MainWindow)
  62. self.centralwidget.setObjectName(u"centralwidget")
  63. self.centralwidget.setEnabled(True)
  64. sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
  65. sizePolicy1.setHorizontalStretch(0)
  66. sizePolicy1.setVerticalStretch(0)
  67. sizePolicy1.setHeightForWidth(
  68. self.centralwidget.sizePolicy().hasHeightForWidth())
  69. self.centralwidget.setSizePolicy(sizePolicy1)
  70. self.centralwidget.setFocusPolicy(Qt.NoFocus)
  71. self.centralwidget.setAutoFillBackground(False)
  72. self.verticalLayout_6 = QVBoxLayout(self.centralwidget)
  73. self.verticalLayout_6.setObjectName(u"verticalLayout_6")
  74. self.horizontalLayout_7 = QHBoxLayout()
  75. self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
  76. self.groupBox = QGroupBox(self.centralwidget)
  77. self.groupBox.setObjectName(u"groupBox")
  78. self.groupBox.setMinimumSize(QSize(400, 0))
  79. self.groupBox.setMaximumWidth(600)
  80. self.verticalLayout_3 = QVBoxLayout(self.groupBox)
  81. self.verticalLayout_3.setObjectName(u"verticalLayout_3")
  82. self.horizontalLayout = QHBoxLayout()
  83. self.horizontalLayout.setSpacing(0)
  84. self.horizontalLayout.setObjectName(u"horizontalLayout")
  85. self.horizontalLayout.setSizeConstraint(QLayout.SetFixedSize)
  86. self.label = QLabel(self.groupBox)
  87. self.label.setObjectName(u"label")
  88. sizePolicy.setHeightForWidth(
  89. self.label.sizePolicy().hasHeightForWidth())
  90. self.label.setSizePolicy(sizePolicy)
  91. self.horizontalLayout.addWidget(self.label)
  92. self.number_propusk = PLineEdit(self.groupBox)
  93. self.number_propusk.setObjectName(u"number_propusk")
  94. self.horizontalLayout.addWidget(self.number_propusk)
  95. self.verticalLayout_3.addLayout(self.horizontalLayout)
  96. self.horizontalLayout_2 = QHBoxLayout()
  97. self.horizontalLayout_2.setSpacing(0)
  98. self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
  99. self.label_2 = QLabel(self.groupBox)
  100. self.label_2.setObjectName(u"label_2")
  101. self.horizontalLayout_2.addWidget(self.label_2)
  102. self.date_from = QDateTimeEdit(self.groupBox)
  103. self.date_from.setObjectName(u"date_from")
  104. # self.date_from.setDateTime(QDateTime(QDate(1999, 12, 31), QTime(9, 0, 0)))
  105. self.date_from.setTimeSpec(Qt.UTC)
  106. self.horizontalLayout_2.addWidget(self.date_from)
  107. self.verticalLayout_3.addLayout(self.horizontalLayout_2)
  108. self.horizontalLayout_3 = QHBoxLayout()
  109. self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
  110. self.label_4 = QLabel(self.groupBox)
  111. self.label_4.setObjectName(u"label_4")
  112. self.horizontalLayout_3.addWidget(self.label_4)
  113. self.date_to = QDateTimeEdit(self.groupBox)
  114. self.date_to.setObjectName(u"date_to")
  115. self.horizontalLayout_3.addWidget(self.date_to)
  116. self.verticalLayout_3.addLayout(self.horizontalLayout_3)
  117. self.horizontalLayout_4 = QHBoxLayout()
  118. self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
  119. self.label_3 = QLabel(self.groupBox)
  120. self.label_3.setObjectName(u"label_3")
  121. self.horizontalLayout_4.addWidget(self.label_3)
  122. self.personal_combobox = QComboBox(self.groupBox)
  123. self.personal_combobox.setObjectName(u"personal_combobox")
  124. self.horizontalLayout_4.addWidget(self.personal_combobox)
  125. self.verticalLayout_3.addLayout(self.horizontalLayout_4)
  126. self.horizontalLayout_5 = QHBoxLayout()
  127. self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
  128. self.label_5 = QLabel(self.groupBox)
  129. self.label_5.setObjectName(u"label_5")
  130. self.horizontalLayout_5.addWidget(self.label_5)
  131. self.place_combobox = QComboBox(self.groupBox)
  132. self.place_combobox.setObjectName(u"place_combobox")
  133. self.horizontalLayout_5.addWidget(self.place_combobox)
  134. self.verticalLayout_3.addLayout(self.horizontalLayout_5)
  135. self.verticalLayout = QVBoxLayout()
  136. self.verticalLayout.setObjectName(u"verticalLayout")
  137. self.label_6 = QLabel(self.groupBox)
  138. self.label_6.setObjectName(u"label_6")
  139. self.verticalLayout.addWidget(self.label_6)
  140. self.receiving_man = QTextEdit(self.groupBox)
  141. self.receiving_man.setObjectName(u"receiving_man")
  142. self.verticalLayout.addWidget(self.receiving_man)
  143. self.verticalLayout_3.addLayout(self.verticalLayout)
  144. self.verticalLayout_2 = QVBoxLayout()
  145. self.verticalLayout_2.setObjectName(u"verticalLayout_2")
  146. self.label_7 = QLabel(self.groupBox)
  147. self.label_7.setObjectName(u"label_7")
  148. self.verticalLayout_2.addWidget(self.label_7)
  149. self.purpose_visite = QTextEdit(self.groupBox)
  150. self.purpose_visite.setObjectName(u"purpose_visite")
  151. self.verticalLayout_2.addWidget(self.purpose_visite)
  152. self.verticalLayout_3.addLayout(self.verticalLayout_2)
  153. self.horizontalLayout_7.addWidget(self.groupBox, alignment=Qt.AlignTop)
  154. self.verticalLayout_5 = QVBoxLayout()
  155. self.verticalLayout_5.setObjectName(u"verticalLayout_5")
  156. self.tabWidget = QTabWidget(self.centralwidget)
  157. self.tabWidget.setObjectName(u"tabWidget")
  158. self.tab = QWidget()
  159. self.tab.setObjectName(u"tab")
  160. self.gridLayout = QGridLayout(self.tab)
  161. self.gridLayout.setObjectName(u"gridLayout")
  162. self.tabWidget.addTab(self.tab, "")
  163. self.tab_2 = QWidget()
  164. self.tab_2.setObjectName(u"tab_2")
  165. self.gridLayout_2 = QGridLayout(self.tab_2)
  166. self.gridLayout_2.setObjectName(u"gridLayout")
  167. self.stacked_document = PStackedWidget(self.tab_2)
  168. self.stacked_document.setObjectName(u'stacked_document')
  169. self.gridLayout_2.addWidget(self.stacked_document, 0, 0, 1, 1)
  170. self.tabWidget.addTab(self.tab_2, "")
  171. self.verticalLayout_5.addWidget(self.tabWidget)
  172. self.horizontalLayout_6 = QHBoxLayout()
  173. self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
  174. self.btn_start_cam = QPushButton(self.centralwidget)
  175. self.btn_start_cam.setObjectName(u"btn_start_cam")
  176. self.horizontalLayout_6.addWidget(self.btn_start_cam)
  177. self.capturePhoto = QPushButton(self.centralwidget)
  178. self.capturePhoto.setObjectName(u"capturePhoto")
  179. self.horizontalLayout_6.addWidget(self.capturePhoto)
  180. self.verticalLayout_5.addLayout(self.horizontalLayout_6)
  181. self.horizontalLayout_7.addLayout(self.verticalLayout_5)
  182. self.verticalLayout_6.addLayout(self.horizontalLayout_7)
  183. self.horizontalLayout_8 = QHBoxLayout()
  184. self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
  185. self.btn_clear = QPushButton(self.centralwidget)
  186. self.btn_clear.setObjectName(u"btn_clear")
  187. sizePolicy.setHeightForWidth(
  188. self.btn_clear.sizePolicy().hasHeightForWidth())
  189. self.btn_clear.setSizePolicy(sizePolicy)
  190. self.btn_clear.setMaximumSize(QSize(16777215, 25))
  191. self.horizontalLayout_8.addWidget(self.btn_clear)
  192. self.btn_save = QPushButton(self.centralwidget)
  193. self.btn_save.setObjectName(u"btn_save")
  194. sizePolicy.setHeightForWidth(
  195. self.btn_save.sizePolicy().hasHeightForWidth())
  196. self.btn_save.setSizePolicy(sizePolicy)
  197. self.btn_save.setMaximumSize(QSize(16777215, 25))
  198. self.horizontalLayout_8.addWidget(self.btn_save)
  199. self.btn_print = QPushButton(self.centralwidget)
  200. self.btn_print.setObjectName(u"btn_print")
  201. sizePolicy.setHeightForWidth(
  202. self.btn_print.sizePolicy().hasHeightForWidth())
  203. self.btn_print.setSizePolicy(sizePolicy)
  204. self.btn_print.setMaximumSize(QSize(16777215, 25))
  205. self.horizontalLayout_8.addWidget(self.btn_print)
  206. self.verticalLayout_6.addLayout(self.horizontalLayout_8)
  207. MainWindow.setCentralWidget(self.centralwidget)
  208. self.menubar = QMenuBar(MainWindow)
  209. self.menubar.setObjectName(u"menubar")
  210. self.menubar.setGeometry(QRect(0, 0, 920, 28))
  211. self.menubar.setMouseTracking(True)
  212. self.menubar.setAcceptDrops(True)
  213. self.menubar.setNativeMenuBar(True)
  214. self.menuFile = QMenu(self.menubar)
  215. self.menuFile.setObjectName(u"menuFile")
  216. self.menu = QMenu(self.menubar)
  217. self.menu.setObjectName(u"menu")
  218. self.menu_3 = QMenu(self.menu)
  219. self.menu_3.setObjectName(u"menu_3")
  220. self.menu_2 = QMenu(self.menubar)
  221. self.menu_2.setObjectName(u"menu_2")
  222. MainWindow.setMenuBar(self.menubar)
  223. self.statusbar = QStatusBar(MainWindow)
  224. self.statusbar.setObjectName(u"statusbar")
  225. MainWindow.setStatusBar(self.statusbar)
  226. self.menubar.addAction(self.menuFile.menuAction())
  227. self.menubar.addAction(self.menu.menuAction())
  228. self.menubar.addAction(self.menu_2.menuAction())
  229. self.menuFile.addSeparator()
  230. self.menuFile.addAction(self.actionSave)
  231. self.menuFile.addAction(self.actionLoad)
  232. self.menuFile.addAction(self.btn_show_about)
  233. self.menuFile.addSeparator()
  234. self.menuFile.addAction(self.exit)
  235. self.menu.addAction(self.setting_cam)
  236. self.menu.addAction(self.menu_3.menuAction())
  237. self.menu_3.addSeparator()
  238. self.menu_3.addSeparator()
  239. self.menu_3.addAction(self.btn_show_personal_window)
  240. self.menu_3.addAction(self.btn_show_place_window)
  241. self.menu_3.addSeparator()
  242. self.menu_3.addAction(self.update_list)
  243. self.menu_2.addAction(self.action_open_history)
  244. self.retranslateUi(MainWindow)
  245. QMetaObject.connectSlotsByName(MainWindow)
  246. # setupUi
  247. def retranslateUi(self, MainWindow):
  248. MainWindow.setWindowTitle(QCoreApplication.translate(
  249. "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a", None))
  250. self.actionExit.setText(
  251. QCoreApplication.translate("MainWindow", u"Exit", None))
  252. self.actionSave.setText(
  253. QCoreApplication.translate("MainWindow", u"Save", None))
  254. self.actionLoad.setText(
  255. QCoreApplication.translate("MainWindow", u"Load", None))
  256. self.actionExit_2.setText(
  257. QCoreApplication.translate("MainWindow", u"Exit", None))
  258. self.setting_cam.setText(QCoreApplication.translate(
  259. "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u043c\u0435\u0440\u044b", None))
  260. self.btn_show_personal_window.setText(QCoreApplication.translate(
  261. "MainWindow", u"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438", None))
  262. self.btn_show_place_window.setText(QCoreApplication.translate(
  263. "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438", None))
  264. self.update_list.setText(QCoreApplication.translate(
  265. "MainWindow", u"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438", None))
  266. self.btn_show_about.setText(QCoreApplication.translate(
  267. "MainWindow", u"\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435", None))
  268. self.exit.setText(QCoreApplication.translate(
  269. "MainWindow", u"Exit", None))
  270. self.action_open_history.setText(QCoreApplication.translate(
  271. "MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432", None))
  272. self.groupBox.setTitle(QCoreApplication.translate(
  273. "MainWindow", u"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:", None))
  274. self.label.setText(QCoreApplication.translate(
  275. "MainWindow", u"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u2116:", None))
  276. self.label_2.setText(QCoreApplication.translate(
  277. "MainWindow", u"\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0434\u0430\u0447\u0438:", None))
  278. self.label_4.setText(QCoreApplication.translate(
  279. "MainWindow", u"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d\u0435 \u0434\u043e:", None))
  280. self.label_3.setText(QCoreApplication.translate(
  281. "MainWindow", u"\u0412\u044b\u0434\u0430\u043b:", None))
  282. self.label_5.setText(QCoreApplication.translate(
  283. "MainWindow", u"\u041c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438:", None))
  284. self.label_6.setText(QCoreApplication.translate(
  285. "MainWindow", u"\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439:", None))
  286. self.label_7.setText(QCoreApplication.translate(
  287. "MainWindow", u"\u0426\u0435\u043b\u044c \u0432\u0438\u0437\u0438\u0442\u0430:", None))
  288. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate(
  289. "MainWindow", u"\u041A\u0430\u043C\u0435\u0440\u0430 \u0434\u043B\u044F \u043B\u0438\u0446\u0430", None))
  290. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate(
  291. "MainWindow", u"\u041A\u0430\u043C\u0435\u0440\u0430 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", None))
  292. self.btn_start_cam.setText(QCoreApplication.translate(
  293. "MainWindow", u"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443", None))
  294. self.capturePhoto.setText(QCoreApplication.translate(
  295. "MainWindow", u"\u0421\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u043e\u0432\u0430\u0442\u044c", None))
  296. self.btn_clear.setText(QCoreApplication.translate(
  297. "MainWindow", u"\u041e\u0442\u0447\u0438\u0441\u0442\u0438\u0442\u044c", None))
  298. self.btn_save.setText(QCoreApplication.translate(
  299. "MainWindow", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c", None))
  300. self.btn_print.setText(QCoreApplication.translate(
  301. "MainWindow", u"\u041f\u0435\u0447\u0430\u0442\u044c", None))
  302. self.menuFile.setTitle(
  303. QCoreApplication.translate("MainWindow", u"File", None))
  304. self.menu.setTitle(QCoreApplication.translate(
  305. "MainWindow", u"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438", None))
  306. self.menu_3.setTitle(QCoreApplication.translate(
  307. "MainWindow", u"\u0421\u043f\u0438\u0441\u043a\u0438", None))
  308. self.menu_2.setTitle(QCoreApplication.translate(
  309. "MainWindow", u"\u0418\u0441\u0442\u043e\u0440\u0438\u044f", None))
  310. # retranslateUi