MainWindow.ui 15 KB

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