MainWindow_back.ui 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="windowModality">
  6. <enum>Qt::WindowModal</enum>
  7. </property>
  8. <property name="geometry">
  9. <rect>
  10. <x>0</x>
  11. <y>0</y>
  12. <width>1228</width>
  13. <height>533</height>
  14. </rect>
  15. </property>
  16. <property name="sizePolicy">
  17. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  18. <horstretch>0</horstretch>
  19. <verstretch>0</verstretch>
  20. </sizepolicy>
  21. </property>
  22. <property name="baseSize">
  23. <size>
  24. <width>864</width>
  25. <height>430</height>
  26. </size>
  27. </property>
  28. <property name="windowTitle">
  29. <string>Временный пропуск</string>
  30. </property>
  31. <widget class="QWidget" name="centralwidget">
  32. <property name="enabled">
  33. <bool>true</bool>
  34. </property>
  35. <property name="sizePolicy">
  36. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  37. <horstretch>0</horstretch>
  38. <verstretch>0</verstretch>
  39. </sizepolicy>
  40. </property>
  41. <property name="focusPolicy">
  42. <enum>Qt::NoFocus</enum>
  43. </property>
  44. <property name="autoFillBackground">
  45. <bool>false</bool>
  46. </property>
  47. <layout class="QGridLayout" name="gridLayout">
  48. <item row="0" column="2" rowspan="2">
  49. <widget class="QGroupBox" name="groupBox_2">
  50. <property name="title">
  51. <string>Фото</string>
  52. </property>
  53. <layout class="QVBoxLayout" name="verticalLayout_4">
  54. <item>
  55. <widget class="QStackedWidget" name="stacked_widget_photo">
  56. <property name="enabled">
  57. <bool>true</bool>
  58. </property>
  59. <property name="toolTip">
  60. <string notr="true"/>
  61. </property>
  62. <property name="statusTip">
  63. <string/>
  64. </property>
  65. <widget class="QWidget" name="page">
  66. <layout class="QGridLayout" name="gridLayout_2">
  67. <item row="0" column="0">
  68. <widget class="QLabel" name="imagePhoto">
  69. <property name="enabled">
  70. <bool>true</bool>
  71. </property>
  72. <property name="sizePolicy">
  73. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  74. <horstretch>0</horstretch>
  75. <verstretch>0</verstretch>
  76. </sizepolicy>
  77. </property>
  78. <property name="frameShape">
  79. <enum>QFrame::Box</enum>
  80. </property>
  81. <property name="frameShadow">
  82. <enum>QFrame::Raised</enum>
  83. </property>
  84. <property name="text">
  85. <string/>
  86. </property>
  87. <property name="wordWrap">
  88. <bool>false</bool>
  89. </property>
  90. </widget>
  91. </item>
  92. </layout>
  93. </widget>
  94. <widget class="QWidget" name="page_2">
  95. <layout class="QGridLayout" name="gridLayout_4">
  96. <item row="0" column="0">
  97. <widget class="QVideoWidget" name="face_video_widget">
  98. <property name="enabled">
  99. <bool>false</bool>
  100. </property>
  101. <property name="sizePolicy">
  102. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  103. <horstretch>0</horstretch>
  104. <verstretch>0</verstretch>
  105. </sizepolicy>
  106. </property>
  107. </widget>
  108. </item>
  109. </layout>
  110. </widget>
  111. </widget>
  112. </item>
  113. <item>
  114. <widget class="QSplitter" name="splitter">
  115. <property name="orientation">
  116. <enum>Qt::Horizontal</enum>
  117. </property>
  118. <widget class="QPushButton" name="btn_start_cam_photo">
  119. <property name="text">
  120. <string>Запустить камеру</string>
  121. </property>
  122. </widget>
  123. <widget class="QPushButton" name="capturePhoto">
  124. <property name="text">
  125. <string>Сфотографировать</string>
  126. </property>
  127. </widget>
  128. </widget>
  129. </item>
  130. </layout>
  131. </widget>
  132. </item>
  133. <item row="2" column="3">
  134. <widget class="QPushButton" name="btn_print">
  135. <property name="sizePolicy">
  136. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  137. <horstretch>0</horstretch>
  138. <verstretch>0</verstretch>
  139. </sizepolicy>
  140. </property>
  141. <property name="text">
  142. <string>Печать</string>
  143. </property>
  144. </widget>
  145. </item>
  146. <item row="0" column="3" rowspan="2">
  147. <widget class="QGroupBox" name="groupBox_3">
  148. <property name="title">
  149. <string>Фото паспорта</string>
  150. </property>
  151. <layout class="QVBoxLayout" name="verticalLayout_5">
  152. <item>
  153. <widget class="QStackedWidget" name="stacked_widget_pasport">
  154. <property name="enabled">
  155. <bool>true</bool>
  156. </property>
  157. <property name="currentIndex">
  158. <number>0</number>
  159. </property>
  160. <widget class="QWidget" name="page_3">
  161. <layout class="QGridLayout" name="gridLayout_3">
  162. <item row="0" column="0">
  163. <widget class="QLabel" name="imagePasport">
  164. <property name="enabled">
  165. <bool>true</bool>
  166. </property>
  167. <property name="sizePolicy">
  168. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  169. <horstretch>0</horstretch>
  170. <verstretch>0</verstretch>
  171. </sizepolicy>
  172. </property>
  173. <property name="frameShape">
  174. <enum>QFrame::Box</enum>
  175. </property>
  176. <property name="frameShadow">
  177. <enum>QFrame::Raised</enum>
  178. </property>
  179. <property name="text">
  180. <string/>
  181. </property>
  182. </widget>
  183. </item>
  184. </layout>
  185. </widget>
  186. <widget class="QWidget" name="page_4">
  187. <layout class="QGridLayout" name="gridLayout_5">
  188. <item row="0" column="0">
  189. <widget class="QVideoWidget" name="pasport_video_widget">
  190. <property name="sizePolicy">
  191. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  192. <horstretch>0</horstretch>
  193. <verstretch>0</verstretch>
  194. </sizepolicy>
  195. </property>
  196. </widget>
  197. </item>
  198. </layout>
  199. </widget>
  200. </widget>
  201. </item>
  202. <item>
  203. <widget class="QSplitter" name="splitter_2">
  204. <property name="orientation">
  205. <enum>Qt::Horizontal</enum>
  206. </property>
  207. <widget class="QPushButton" name="btn_start_cam_pasport">
  208. <property name="text">
  209. <string>Запустить камеру</string>
  210. </property>
  211. </widget>
  212. <widget class="QPushButton" name="capturePasport">
  213. <property name="text">
  214. <string>Сделать снимок паспорта</string>
  215. </property>
  216. </widget>
  217. </widget>
  218. </item>
  219. </layout>
  220. </widget>
  221. </item>
  222. <item row="0" column="0" rowspan="2" colspan="2">
  223. <widget class="QGroupBox" name="groupBox">
  224. <property name="minimumSize">
  225. <size>
  226. <width>400</width>
  227. <height>0</height>
  228. </size>
  229. </property>
  230. <property name="title">
  231. <string>Информация:</string>
  232. </property>
  233. <layout class="QVBoxLayout" name="verticalLayout_3">
  234. <item>
  235. <layout class="QHBoxLayout" name="horizontalLayout">
  236. <item>
  237. <widget class="QLabel" name="label">
  238. <property name="sizePolicy">
  239. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  240. <horstretch>0</horstretch>
  241. <verstretch>0</verstretch>
  242. </sizepolicy>
  243. </property>
  244. <property name="text">
  245. <string>Временный пропуск №:</string>
  246. </property>
  247. </widget>
  248. </item>
  249. <item>
  250. <widget class="QLineEdit" name="number_propusk">
  251. <property name="inputMask">
  252. <string/>
  253. </property>
  254. <property name="text">
  255. <string/>
  256. </property>
  257. <property name="maxLength">
  258. <number>32767</number>
  259. </property>
  260. </widget>
  261. </item>
  262. </layout>
  263. </item>
  264. <item>
  265. <layout class="QHBoxLayout" name="horizontalLayout_2">
  266. <item>
  267. <widget class="QLabel" name="label_2">
  268. <property name="text">
  269. <string>Дата и время выдачи:</string>
  270. </property>
  271. </widget>
  272. </item>
  273. <item>
  274. <widget class="QDateTimeEdit" name="date_from">
  275. <property name="dateTime">
  276. <datetime>
  277. <hour>0</hour>
  278. <minute>0</minute>
  279. <second>0</second>
  280. <year>2000</year>
  281. <month>1</month>
  282. <day>1</day>
  283. </datetime>
  284. </property>
  285. <property name="timeSpec">
  286. <enum>Qt::UTC</enum>
  287. </property>
  288. </widget>
  289. </item>
  290. </layout>
  291. </item>
  292. <item>
  293. <layout class="QHBoxLayout" name="horizontalLayout_3">
  294. <item>
  295. <widget class="QLabel" name="label_4">
  296. <property name="text">
  297. <string>Действителене до:</string>
  298. </property>
  299. </widget>
  300. </item>
  301. <item>
  302. <widget class="QDateTimeEdit" name="date_to"/>
  303. </item>
  304. </layout>
  305. </item>
  306. <item>
  307. <layout class="QHBoxLayout" name="horizontalLayout_4">
  308. <item>
  309. <widget class="QLabel" name="label_3">
  310. <property name="text">
  311. <string>Выдал:</string>
  312. </property>
  313. </widget>
  314. </item>
  315. <item>
  316. <widget class="QComboBox" name="personal_combobox"/>
  317. </item>
  318. </layout>
  319. </item>
  320. <item>
  321. <layout class="QHBoxLayout" name="horizontalLayout_5">
  322. <item>
  323. <widget class="QLabel" name="label_5">
  324. <property name="text">
  325. <string>Место выдачи:</string>
  326. </property>
  327. </widget>
  328. </item>
  329. <item>
  330. <widget class="QComboBox" name="place_combobox"/>
  331. </item>
  332. </layout>
  333. </item>
  334. <item>
  335. <layout class="QVBoxLayout" name="verticalLayout">
  336. <item>
  337. <widget class="QLabel" name="label_6">
  338. <property name="text">
  339. <string>Принимающий:</string>
  340. </property>
  341. </widget>
  342. </item>
  343. <item>
  344. <widget class="QTextEdit" name="receiving_man"/>
  345. </item>
  346. </layout>
  347. </item>
  348. <item>
  349. <layout class="QVBoxLayout" name="verticalLayout_2">
  350. <item>
  351. <widget class="QLabel" name="label_7">
  352. <property name="text">
  353. <string>Цель визита:</string>
  354. </property>
  355. </widget>
  356. </item>
  357. <item>
  358. <widget class="QTextEdit" name="purpose_visite"/>
  359. </item>
  360. </layout>
  361. </item>
  362. </layout>
  363. </widget>
  364. </item>
  365. <item row="2" column="2">
  366. <widget class="QPushButton" name="btn_save">
  367. <property name="sizePolicy">
  368. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  369. <horstretch>0</horstretch>
  370. <verstretch>0</verstretch>
  371. </sizepolicy>
  372. </property>
  373. <property name="text">
  374. <string>Сохранить</string>
  375. </property>
  376. </widget>
  377. </item>
  378. <item row="2" column="0">
  379. <widget class="QPushButton" name="btn_clear">
  380. <property name="sizePolicy">
  381. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  382. <horstretch>0</horstretch>
  383. <verstretch>0</verstretch>
  384. </sizepolicy>
  385. </property>
  386. <property name="text">
  387. <string>Отчистить</string>
  388. </property>
  389. </widget>
  390. </item>
  391. </layout>
  392. </widget>
  393. <widget class="QMenuBar" name="menubar">
  394. <property name="geometry">
  395. <rect>
  396. <x>0</x>
  397. <y>0</y>
  398. <width>1228</width>
  399. <height>23</height>
  400. </rect>
  401. </property>
  402. <property name="mouseTracking">
  403. <bool>true</bool>
  404. </property>
  405. <property name="acceptDrops">
  406. <bool>true</bool>
  407. </property>
  408. <property name="nativeMenuBar">
  409. <bool>true</bool>
  410. </property>
  411. <widget class="QMenu" name="menuFile">
  412. <property name="title">
  413. <string>File</string>
  414. </property>
  415. <addaction name="separator"/>
  416. <addaction name="actionSave"/>
  417. <addaction name="actionLoad"/>
  418. <addaction name="btn_show_about"/>
  419. <addaction name="separator"/>
  420. <addaction name="exit"/>
  421. </widget>
  422. <widget class="QMenu" name="menu">
  423. <property name="title">
  424. <string>Настроки</string>
  425. </property>
  426. <widget class="QMenu" name="menu_3">
  427. <property name="title">
  428. <string>Списки</string>
  429. </property>
  430. <addaction name="separator"/>
  431. <addaction name="separator"/>
  432. <addaction name="btn_show_personal_window"/>
  433. <addaction name="btn_show_place_window"/>
  434. <addaction name="separator"/>
  435. <addaction name="update_list"/>
  436. </widget>
  437. <addaction name="setting_cam"/>
  438. <addaction name="menu_3"/>
  439. </widget>
  440. <widget class="QMenu" name="menu_2">
  441. <property name="title">
  442. <string>История</string>
  443. </property>
  444. <addaction name="action_open_history"/>
  445. </widget>
  446. <addaction name="menuFile"/>
  447. <addaction name="menu"/>
  448. <addaction name="menu_2"/>
  449. </widget>
  450. <widget class="QStatusBar" name="statusbar"/>
  451. <action name="actionExit">
  452. <property name="text">
  453. <string>Exit</string>
  454. </property>
  455. </action>
  456. <action name="actionSave">
  457. <property name="text">
  458. <string>Save</string>
  459. </property>
  460. </action>
  461. <action name="actionLoad">
  462. <property name="text">
  463. <string>Load</string>
  464. </property>
  465. </action>
  466. <action name="actionExit_2">
  467. <property name="text">
  468. <string>Exit</string>
  469. </property>
  470. </action>
  471. <action name="setting_cam">
  472. <property name="text">
  473. <string>Настроки камеры</string>
  474. </property>
  475. </action>
  476. <action name="btn_show_personal_window">
  477. <property name="text">
  478. <string>Сотрудники</string>
  479. </property>
  480. </action>
  481. <action name="btn_show_place_window">
  482. <property name="text">
  483. <string>Место выдочи</string>
  484. </property>
  485. </action>
  486. <action name="update_list">
  487. <property name="text">
  488. <string>Обновить списки</string>
  489. </property>
  490. </action>
  491. <action name="btn_show_about">
  492. <property name="text">
  493. <string>О программе</string>
  494. </property>
  495. </action>
  496. <action name="exit">
  497. <property name="text">
  498. <string>Exit</string>
  499. </property>
  500. </action>
  501. <action name="action_open_history">
  502. <property name="text">
  503. <string>История пропусков</string>
  504. </property>
  505. </action>
  506. </widget>
  507. <customwidgets>
  508. <customwidget>
  509. <class>QVideoWidget</class>
  510. <extends>QLabel</extends>
  511. <header>PySide6.QtMultimediaWidgets</header>
  512. </customwidget>
  513. </customwidgets>
  514. <resources/>
  515. <connections/>
  516. </ui>