ui_MainWindow.py 17 KB

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