MainWindow.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>1095</width>
  13. <height>584</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="Preferred" vsizetype="Preferred">
  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_6">
  48. <item>
  49. <layout class="QHBoxLayout" name="horizontalLayout_7">
  50. <item>
  51. <widget class="QGroupBox" name="groupBox">
  52. <property name="minimumSize">
  53. <size>
  54. <width>400</width>
  55. <height>0</height>
  56. </size>
  57. </property>
  58. <property name="maximumSize">
  59. <size>
  60. <width>600</width>
  61. <height>700</height>
  62. </size>
  63. </property>
  64. <property name="title">
  65. <string>Информация:</string>
  66. </property>
  67. <property name="alignment">
  68. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
  69. </property>
  70. <layout class="QVBoxLayout" name="verticalLayout_3">
  71. <item>
  72. <layout class="QHBoxLayout" name="horizontalLayout">
  73. <property name="spacing">
  74. <number>0</number>
  75. </property>
  76. <property name="sizeConstraint">
  77. <enum>QLayout::SetFixedSize</enum>
  78. </property>
  79. <item>
  80. <widget class="QLabel" name="label">
  81. <property name="sizePolicy">
  82. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  83. <horstretch>0</horstretch>
  84. <verstretch>0</verstretch>
  85. </sizepolicy>
  86. </property>
  87. <property name="text">
  88. <string>Временный пропуск №:</string>
  89. </property>
  90. </widget>
  91. </item>
  92. <item>
  93. <widget class="QLineEdit" name="number_propusk">
  94. <property name="inputMask">
  95. <string/>
  96. </property>
  97. <property name="text">
  98. <string/>
  99. </property>
  100. <property name="maxLength">
  101. <number>32767</number>
  102. </property>
  103. </widget>
  104. </item>
  105. </layout>
  106. </item>
  107. <item>
  108. <layout class="QHBoxLayout" name="horizontalLayout_2">
  109. <property name="spacing">
  110. <number>0</number>
  111. </property>
  112. <item>
  113. <widget class="QLabel" name="label_2">
  114. <property name="text">
  115. <string>Дата и время выдачи:</string>
  116. </property>
  117. </widget>
  118. </item>
  119. <item>
  120. <widget class="QDateTimeEdit" name="date_from">
  121. <property name="dateTime">
  122. <datetime>
  123. <hour>6</hour>
  124. <minute>0</minute>
  125. <second>0</second>
  126. <year>1999</year>
  127. <month>12</month>
  128. <day>31</day>
  129. </datetime>
  130. </property>
  131. <property name="timeSpec">
  132. <enum>Qt::UTC</enum>
  133. </property>
  134. </widget>
  135. </item>
  136. </layout>
  137. </item>
  138. <item>
  139. <layout class="QHBoxLayout" name="horizontalLayout_3">
  140. <item>
  141. <widget class="QLabel" name="label_4">
  142. <property name="text">
  143. <string>Действителене до:</string>
  144. </property>
  145. </widget>
  146. </item>
  147. <item>
  148. <widget class="QDateTimeEdit" name="date_to"/>
  149. </item>
  150. </layout>
  151. </item>
  152. <item>
  153. <layout class="QHBoxLayout" name="horizontalLayout_4">
  154. <item>
  155. <widget class="QLabel" name="label_3">
  156. <property name="text">
  157. <string>Выдал:</string>
  158. </property>
  159. </widget>
  160. </item>
  161. <item>
  162. <widget class="QComboBox" name="personal_combobox"/>
  163. </item>
  164. </layout>
  165. </item>
  166. <item>
  167. <layout class="QHBoxLayout" name="horizontalLayout_5">
  168. <item>
  169. <widget class="QLabel" name="label_5">
  170. <property name="text">
  171. <string>Место выдачи:</string>
  172. </property>
  173. </widget>
  174. </item>
  175. <item>
  176. <widget class="QComboBox" name="place_combobox"/>
  177. </item>
  178. </layout>
  179. </item>
  180. <item>
  181. <layout class="QVBoxLayout" name="verticalLayout">
  182. <item>
  183. <widget class="QLabel" name="label_6">
  184. <property name="text">
  185. <string>Принимающий:</string>
  186. </property>
  187. </widget>
  188. </item>
  189. <item>
  190. <widget class="QTextEdit" name="receiving_man"/>
  191. </item>
  192. </layout>
  193. </item>
  194. <item>
  195. <layout class="QVBoxLayout" name="verticalLayout_2">
  196. <item>
  197. <widget class="QLabel" name="label_7">
  198. <property name="text">
  199. <string>Цель визита:</string>
  200. </property>
  201. </widget>
  202. </item>
  203. <item>
  204. <widget class="QTextEdit" name="purpose_visite"/>
  205. </item>
  206. </layout>
  207. </item>
  208. <item>
  209. <spacer name="verticalSpacer">
  210. <property name="orientation">
  211. <enum>Qt::Vertical</enum>
  212. </property>
  213. <property name="sizeHint" stdset="0">
  214. <size>
  215. <width>20</width>
  216. <height>40</height>
  217. </size>
  218. </property>
  219. </spacer>
  220. </item>
  221. </layout>
  222. </widget>
  223. </item>
  224. <item>
  225. <layout class="QVBoxLayout" name="verticalLayout_5">
  226. <item>
  227. <widget class="QTabWidget" name="tabWidget">
  228. <property name="currentIndex">
  229. <number>1</number>
  230. </property>
  231. <widget class="QWidget" name="tab">
  232. <attribute name="title">
  233. <string>Tab 1</string>
  234. </attribute>
  235. <layout class="QGridLayout" name="gridLayout">
  236. <item row="0" column="0">
  237. <layout class="QVBoxLayout" name="verticalLayout_4">
  238. <item>
  239. <widget class="QStackedWidget" name="stacked_widget_photo">
  240. <property name="enabled">
  241. <bool>true</bool>
  242. </property>
  243. <property name="toolTip">
  244. <string notr="true"/>
  245. </property>
  246. <property name="statusTip">
  247. <string/>
  248. </property>
  249. <widget class="QWidget" name="page">
  250. <layout class="QGridLayout" name="gridLayout_3">
  251. <item row="0" column="0">
  252. <widget class="QLabel" name="imagePhoto">
  253. <property name="enabled">
  254. <bool>true</bool>
  255. </property>
  256. <property name="sizePolicy">
  257. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  258. <horstretch>0</horstretch>
  259. <verstretch>0</verstretch>
  260. </sizepolicy>
  261. </property>
  262. <property name="frameShape">
  263. <enum>QFrame::Box</enum>
  264. </property>
  265. <property name="frameShadow">
  266. <enum>QFrame::Raised</enum>
  267. </property>
  268. <property name="text">
  269. <string/>
  270. </property>
  271. <property name="wordWrap">
  272. <bool>false</bool>
  273. </property>
  274. </widget>
  275. </item>
  276. </layout>
  277. </widget>
  278. <widget class="QWidget" name="page_2">
  279. <layout class="QGridLayout" name="gridLayout_4">
  280. <item row="0" column="0">
  281. <widget class="QVideoWidget" name="face_video_widget">
  282. <property name="enabled">
  283. <bool>false</bool>
  284. </property>
  285. <property name="sizePolicy">
  286. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  287. <horstretch>0</horstretch>
  288. <verstretch>0</verstretch>
  289. </sizepolicy>
  290. </property>
  291. </widget>
  292. </item>
  293. </layout>
  294. </widget>
  295. </widget>
  296. </item>
  297. </layout>
  298. </item>
  299. </layout>
  300. </widget>
  301. <widget class="QWidget" name="tab_2">
  302. <attribute name="title">
  303. <string>Tab 2</string>
  304. </attribute>
  305. </widget>
  306. </widget>
  307. </item>
  308. <item>
  309. <layout class="QHBoxLayout" name="horizontalLayout_6">
  310. <item>
  311. <widget class="QPushButton" name="btn_start_cam">
  312. <property name="text">
  313. <string>Запустить камеру</string>
  314. </property>
  315. </widget>
  316. </item>
  317. <item>
  318. <widget class="QPushButton" name="capturePhoto">
  319. <property name="text">
  320. <string>Сфотографировать</string>
  321. </property>
  322. </widget>
  323. </item>
  324. </layout>
  325. </item>
  326. </layout>
  327. </item>
  328. </layout>
  329. </item>
  330. <item>
  331. <layout class="QHBoxLayout" name="horizontalLayout_8" stretch="0,0,0">
  332. <item>
  333. <widget class="QPushButton" name="btn_clear">
  334. <property name="sizePolicy">
  335. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  336. <horstretch>0</horstretch>
  337. <verstretch>0</verstretch>
  338. </sizepolicy>
  339. </property>
  340. <property name="maximumSize">
  341. <size>
  342. <width>16777215</width>
  343. <height>40</height>
  344. </size>
  345. </property>
  346. <property name="text">
  347. <string>Отчистить</string>
  348. </property>
  349. </widget>
  350. </item>
  351. <item>
  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="maximumSize">
  360. <size>
  361. <width>16777215</width>
  362. <height>40</height>
  363. </size>
  364. </property>
  365. <property name="text">
  366. <string>Сохранить</string>
  367. </property>
  368. </widget>
  369. </item>
  370. <item>
  371. <widget class="QPushButton" name="btn_print">
  372. <property name="sizePolicy">
  373. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  374. <horstretch>0</horstretch>
  375. <verstretch>0</verstretch>
  376. </sizepolicy>
  377. </property>
  378. <property name="maximumSize">
  379. <size>
  380. <width>16777215</width>
  381. <height>40</height>
  382. </size>
  383. </property>
  384. <property name="text">
  385. <string>Печать</string>
  386. </property>
  387. </widget>
  388. </item>
  389. </layout>
  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>1095</width>
  399. <height>22</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>