MainWindow.ui 13 KB

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