ui_MainWindow.py 19 KB

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