MainWindow.ui 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  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. </item>
  276. </layout>
  277. </item>
  278. <item>
  279. <layout class="QHBoxLayout" name="horizontalLayout_3">
  280. <item>
  281. <widget class="QLabel" name="label_4">
  282. <property name="text">
  283. <string>Действителене до:</string>
  284. </property>
  285. </widget>
  286. </item>
  287. <item>
  288. <widget class="QDateTimeEdit" name="date_to"/>
  289. </item>
  290. </layout>
  291. </item>
  292. <item>
  293. <layout class="QHBoxLayout" name="horizontalLayout_4">
  294. <item>
  295. <widget class="QLabel" name="label_3">
  296. <property name="text">
  297. <string>Выдал:</string>
  298. </property>
  299. </widget>
  300. </item>
  301. <item>
  302. <widget class="QComboBox" name="personal_combobox"/>
  303. </item>
  304. </layout>
  305. </item>
  306. <item>
  307. <layout class="QHBoxLayout" name="horizontalLayout_5">
  308. <item>
  309. <widget class="QLabel" name="label_5">
  310. <property name="text">
  311. <string>Место выдачи:</string>
  312. </property>
  313. </widget>
  314. </item>
  315. <item>
  316. <widget class="QComboBox" name="place_combobox"/>
  317. </item>
  318. </layout>
  319. </item>
  320. <item>
  321. <layout class="QVBoxLayout" name="verticalLayout">
  322. <item>
  323. <widget class="QLabel" name="label_6">
  324. <property name="text">
  325. <string>Принимающий:</string>
  326. </property>
  327. </widget>
  328. </item>
  329. <item>
  330. <widget class="QTextEdit" name="receiving_man"/>
  331. </item>
  332. </layout>
  333. </item>
  334. <item>
  335. <layout class="QVBoxLayout" name="verticalLayout_2">
  336. <item>
  337. <widget class="QLabel" name="label_7">
  338. <property name="text">
  339. <string>Цель визита:</string>
  340. </property>
  341. </widget>
  342. </item>
  343. <item>
  344. <widget class="QTextEdit" name="purpose_visite"/>
  345. </item>
  346. </layout>
  347. </item>
  348. </layout>
  349. </widget>
  350. </item>
  351. <item row="2" column="2">
  352. <widget class="QPushButton" name="btn_save">
  353. <property name="sizePolicy">
  354. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  355. <horstretch>0</horstretch>
  356. <verstretch>0</verstretch>
  357. </sizepolicy>
  358. </property>
  359. <property name="text">
  360. <string>Сохранить</string>
  361. </property>
  362. </widget>
  363. </item>
  364. <item row="2" column="0">
  365. <widget class="QPushButton" name="btn_clear">
  366. <property name="sizePolicy">
  367. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  368. <horstretch>0</horstretch>
  369. <verstretch>0</verstretch>
  370. </sizepolicy>
  371. </property>
  372. <property name="text">
  373. <string>Отчистить</string>
  374. </property>
  375. </widget>
  376. </item>
  377. </layout>
  378. </widget>
  379. <widget class="QMenuBar" name="menubar">
  380. <property name="geometry">
  381. <rect>
  382. <x>0</x>
  383. <y>0</y>
  384. <width>1228</width>
  385. <height>23</height>
  386. </rect>
  387. </property>
  388. <property name="mouseTracking">
  389. <bool>true</bool>
  390. </property>
  391. <property name="acceptDrops">
  392. <bool>true</bool>
  393. </property>
  394. <property name="nativeMenuBar">
  395. <bool>true</bool>
  396. </property>
  397. <widget class="QMenu" name="menuFile">
  398. <property name="title">
  399. <string>File</string>
  400. </property>
  401. <addaction name="separator"/>
  402. <addaction name="actionSave"/>
  403. <addaction name="actionLoad"/>
  404. <addaction name="separator"/>
  405. <addaction name="actionExit_2"/>
  406. </widget>
  407. <widget class="QMenu" name="menu">
  408. <property name="title">
  409. <string>Настроки</string>
  410. </property>
  411. <widget class="QMenu" name="menu_3">
  412. <property name="title">
  413. <string>Списки</string>
  414. </property>
  415. <addaction name="separator"/>
  416. <addaction name="separator"/>
  417. <addaction name="btn_show_personal_window"/>
  418. <addaction name="btn_show_place_window"/>
  419. <addaction name="separator"/>
  420. <addaction name="update_list"/>
  421. </widget>
  422. <addaction name="setting_cam"/>
  423. <addaction name="menu_3"/>
  424. </widget>
  425. <widget class="QMenu" name="menu_2">
  426. <property name="title">
  427. <string>История пропусков</string>
  428. </property>
  429. </widget>
  430. <addaction name="menuFile"/>
  431. <addaction name="menu"/>
  432. <addaction name="menu_2"/>
  433. </widget>
  434. <widget class="QStatusBar" name="statusbar"/>
  435. <action name="actionExit">
  436. <property name="text">
  437. <string>Exit</string>
  438. </property>
  439. </action>
  440. <action name="actionSave">
  441. <property name="text">
  442. <string>Save</string>
  443. </property>
  444. </action>
  445. <action name="actionLoad">
  446. <property name="text">
  447. <string>Load</string>
  448. </property>
  449. </action>
  450. <action name="actionExit_2">
  451. <property name="text">
  452. <string>Exit</string>
  453. </property>
  454. </action>
  455. <action name="setting_cam">
  456. <property name="text">
  457. <string>Настроки камеры</string>
  458. </property>
  459. </action>
  460. <action name="btn_show_personal_window">
  461. <property name="text">
  462. <string>Сотрудники</string>
  463. </property>
  464. </action>
  465. <action name="btn_show_place_window">
  466. <property name="text">
  467. <string>Место выдочи</string>
  468. </property>
  469. </action>
  470. <action name="update_list">
  471. <property name="text">
  472. <string>Обновить списки</string>
  473. </property>
  474. </action>
  475. </widget>
  476. <customwidgets>
  477. <customwidget>
  478. <class>QVideoWidget</class>
  479. <extends>QLabel</extends>
  480. <header>PySide6.QtMultimediaWidgets</header>
  481. </customwidget>
  482. </customwidgets>
  483. <resources/>
  484. <connections/>
  485. </ui>