ui_MainWindow.py 16 KB

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