OBSBasic.ui 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <author>Jim</author>
  4. <class>OBSBasic</class>
  5. <widget class="QMainWindow" name="OBSBasic">
  6. <property name="geometry">
  7. <rect>
  8. <x>0</x>
  9. <y>0</y>
  10. <width>927</width>
  11. <height>700</height>
  12. </rect>
  13. </property>
  14. <property name="sizePolicy">
  15. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  16. <horstretch>0</horstretch>
  17. <verstretch>0</verstretch>
  18. </sizepolicy>
  19. </property>
  20. <property name="minimumSize">
  21. <size>
  22. <width>0</width>
  23. <height>0</height>
  24. </size>
  25. </property>
  26. <property name="windowTitle">
  27. <string>MainWindow</string>
  28. </property>
  29. <widget class="QWidget" name="centralwidget">
  30. <layout class="QVBoxLayout" name="verticalLayout">
  31. <item>
  32. <widget class="OBSQTDisplay" name="preview" native="true">
  33. <property name="sizePolicy">
  34. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  35. <horstretch>0</horstretch>
  36. <verstretch>0</verstretch>
  37. </sizepolicy>
  38. </property>
  39. <property name="minimumSize">
  40. <size>
  41. <width>32</width>
  42. <height>32</height>
  43. </size>
  44. </property>
  45. </widget>
  46. </item>
  47. <item alignment="Qt::AlignHCenter|Qt::AlignVCenter">
  48. <widget class="QWidget" name="widget" native="true">
  49. <property name="sizePolicy">
  50. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  51. <horstretch>0</horstretch>
  52. <verstretch>0</verstretch>
  53. </sizepolicy>
  54. </property>
  55. <property name="minimumSize">
  56. <size>
  57. <width>620</width>
  58. <height>0</height>
  59. </size>
  60. </property>
  61. <property name="maximumSize">
  62. <size>
  63. <width>16777215</width>
  64. <height>154</height>
  65. </size>
  66. </property>
  67. <layout class="QHBoxLayout" name="horizontalLayout_2">
  68. <property name="leftMargin">
  69. <number>0</number>
  70. </property>
  71. <property name="topMargin">
  72. <number>0</number>
  73. </property>
  74. <property name="rightMargin">
  75. <number>0</number>
  76. </property>
  77. <property name="bottomMargin">
  78. <number>0</number>
  79. </property>
  80. <item>
  81. <layout class="QVBoxLayout" name="verticalLayout_2">
  82. <item>
  83. <widget class="QLabel" name="label">
  84. <property name="text">
  85. <string>Scenes</string>
  86. </property>
  87. </widget>
  88. </item>
  89. <item>
  90. <widget class="QFrame" name="frame_2">
  91. <property name="sizePolicy">
  92. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  93. <horstretch>0</horstretch>
  94. <verstretch>0</verstretch>
  95. </sizepolicy>
  96. </property>
  97. <property name="frameShape">
  98. <enum>QFrame::StyledPanel</enum>
  99. </property>
  100. <property name="frameShadow">
  101. <enum>QFrame::Sunken</enum>
  102. </property>
  103. <layout class="QVBoxLayout" name="verticalLayout_3">
  104. <property name="spacing">
  105. <number>0</number>
  106. </property>
  107. <property name="leftMargin">
  108. <number>0</number>
  109. </property>
  110. <property name="topMargin">
  111. <number>0</number>
  112. </property>
  113. <property name="rightMargin">
  114. <number>0</number>
  115. </property>
  116. <property name="bottomMargin">
  117. <number>0</number>
  118. </property>
  119. <item>
  120. <widget class="QListWidget" name="scenes">
  121. <property name="enabled">
  122. <bool>true</bool>
  123. </property>
  124. <property name="sizePolicy">
  125. <sizepolicy hsizetype="Ignored" vsizetype="Expanding">
  126. <horstretch>0</horstretch>
  127. <verstretch>0</verstretch>
  128. </sizepolicy>
  129. </property>
  130. <property name="frameShape">
  131. <enum>QFrame::NoFrame</enum>
  132. </property>
  133. <property name="frameShadow">
  134. <enum>QFrame::Plain</enum>
  135. </property>
  136. </widget>
  137. </item>
  138. <item>
  139. <widget class="QToolBar" name="toolBar">
  140. <property name="iconSize">
  141. <size>
  142. <width>16</width>
  143. <height>16</height>
  144. </size>
  145. </property>
  146. <property name="floatable">
  147. <bool>false</bool>
  148. </property>
  149. <addaction name="actionAddScene"/>
  150. <addaction name="actionRemoveScene"/>
  151. <addaction name="actionSceneProperties"/>
  152. <addaction name="separator"/>
  153. <addaction name="actionSceneUp"/>
  154. <addaction name="actionSceneDown"/>
  155. </widget>
  156. </item>
  157. </layout>
  158. </widget>
  159. </item>
  160. </layout>
  161. </item>
  162. <item>
  163. <layout class="QVBoxLayout" name="verticalLayout_5">
  164. <item>
  165. <widget class="QLabel" name="label_2">
  166. <property name="text">
  167. <string>Sources</string>
  168. </property>
  169. </widget>
  170. </item>
  171. <item>
  172. <widget class="QFrame" name="frame_3">
  173. <property name="sizePolicy">
  174. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  175. <horstretch>0</horstretch>
  176. <verstretch>0</verstretch>
  177. </sizepolicy>
  178. </property>
  179. <property name="frameShape">
  180. <enum>QFrame::StyledPanel</enum>
  181. </property>
  182. <property name="frameShadow">
  183. <enum>QFrame::Sunken</enum>
  184. </property>
  185. <layout class="QVBoxLayout" name="verticalLayout_4">
  186. <property name="spacing">
  187. <number>0</number>
  188. </property>
  189. <property name="leftMargin">
  190. <number>0</number>
  191. </property>
  192. <property name="topMargin">
  193. <number>0</number>
  194. </property>
  195. <property name="rightMargin">
  196. <number>0</number>
  197. </property>
  198. <property name="bottomMargin">
  199. <number>0</number>
  200. </property>
  201. <item>
  202. <widget class="QListWidget" name="sources">
  203. <property name="sizePolicy">
  204. <sizepolicy hsizetype="Ignored" vsizetype="Expanding">
  205. <horstretch>0</horstretch>
  206. <verstretch>0</verstretch>
  207. </sizepolicy>
  208. </property>
  209. <property name="frameShape">
  210. <enum>QFrame::NoFrame</enum>
  211. </property>
  212. </widget>
  213. </item>
  214. <item>
  215. <widget class="QToolBar" name="toolBar_2">
  216. <property name="iconSize">
  217. <size>
  218. <width>16</width>
  219. <height>16</height>
  220. </size>
  221. </property>
  222. <property name="floatable">
  223. <bool>false</bool>
  224. </property>
  225. <addaction name="actionAddSource"/>
  226. <addaction name="actionRemoveSource"/>
  227. <addaction name="actionSourceProperties"/>
  228. <addaction name="separator"/>
  229. <addaction name="actionSourceUp"/>
  230. <addaction name="actionSourceDown"/>
  231. </widget>
  232. </item>
  233. </layout>
  234. </widget>
  235. </item>
  236. </layout>
  237. </item>
  238. <item>
  239. <layout class="QVBoxLayout" name="verticalLayout_9">
  240. <item>
  241. <widget class="QLabel" name="label_3">
  242. <property name="text">
  243. <string>Volume</string>
  244. </property>
  245. </widget>
  246. </item>
  247. <item>
  248. <widget class="QScrollArea" name="scrollArea">
  249. <property name="sizePolicy">
  250. <sizepolicy hsizetype="Ignored" vsizetype="Expanding">
  251. <horstretch>0</horstretch>
  252. <verstretch>0</verstretch>
  253. </sizepolicy>
  254. </property>
  255. <property name="widgetResizable">
  256. <bool>true</bool>
  257. </property>
  258. <widget class="QWidget" name="volumeWidgets">
  259. <property name="geometry">
  260. <rect>
  261. <x>0</x>
  262. <y>0</y>
  263. <width>147</width>
  264. <height>131</height>
  265. </rect>
  266. </property>
  267. <layout class="QVBoxLayout" name="verticalLayout_6">
  268. <property name="spacing">
  269. <number>6</number>
  270. </property>
  271. <property name="leftMargin">
  272. <number>2</number>
  273. </property>
  274. <property name="topMargin">
  275. <number>2</number>
  276. </property>
  277. <property name="rightMargin">
  278. <number>2</number>
  279. </property>
  280. <property name="bottomMargin">
  281. <number>2</number>
  282. </property>
  283. </layout>
  284. </widget>
  285. </widget>
  286. </item>
  287. </layout>
  288. </item>
  289. <item alignment="Qt::AlignTop">
  290. <widget class="QWidget" name="widget_2" native="true">
  291. <property name="sizePolicy">
  292. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  293. <horstretch>0</horstretch>
  294. <verstretch>0</verstretch>
  295. </sizepolicy>
  296. </property>
  297. <property name="minimumSize">
  298. <size>
  299. <width>0</width>
  300. <height>0</height>
  301. </size>
  302. </property>
  303. <layout class="QVBoxLayout" name="verticalLayout_10">
  304. <property name="spacing">
  305. <number>5</number>
  306. </property>
  307. <property name="leftMargin">
  308. <number>0</number>
  309. </property>
  310. <property name="topMargin">
  311. <number>0</number>
  312. </property>
  313. <property name="rightMargin">
  314. <number>0</number>
  315. </property>
  316. <property name="bottomMargin">
  317. <number>0</number>
  318. </property>
  319. <item>
  320. <widget class="QPushButton" name="streamButton">
  321. <property name="enabled">
  322. <bool>true</bool>
  323. </property>
  324. <property name="text">
  325. <string>Start Streaming</string>
  326. </property>
  327. <property name="checkable">
  328. <bool>false</bool>
  329. </property>
  330. </widget>
  331. </item>
  332. <item>
  333. <widget class="QPushButton" name="recordButton">
  334. <property name="enabled">
  335. <bool>false</bool>
  336. </property>
  337. <property name="text">
  338. <string>Start Recording</string>
  339. </property>
  340. </widget>
  341. </item>
  342. <item>
  343. <widget class="QPushButton" name="settingsButton">
  344. <property name="text">
  345. <string>Settings</string>
  346. </property>
  347. </widget>
  348. </item>
  349. <item>
  350. <widget class="QPushButton" name="exitButton">
  351. <property name="text">
  352. <string>Exit</string>
  353. </property>
  354. </widget>
  355. </item>
  356. </layout>
  357. </widget>
  358. </item>
  359. </layout>
  360. </widget>
  361. </item>
  362. </layout>
  363. </widget>
  364. <widget class="QMenuBar" name="menubar">
  365. <property name="geometry">
  366. <rect>
  367. <x>0</x>
  368. <y>0</y>
  369. <width>927</width>
  370. <height>24</height>
  371. </rect>
  372. </property>
  373. <widget class="QMenu" name="menu_File">
  374. <property name="title">
  375. <string>&amp;File</string>
  376. </property>
  377. <addaction name="action_New"/>
  378. <addaction name="action_Open"/>
  379. <addaction name="action_Save"/>
  380. <addaction name="separator"/>
  381. <addaction name="action_Settings"/>
  382. <addaction name="separator"/>
  383. <addaction name="actionE_xit"/>
  384. </widget>
  385. <addaction name="menu_File"/>
  386. </widget>
  387. <widget class="QStatusBar" name="statusbar"/>
  388. <action name="actionAddScene">
  389. <property name="icon">
  390. <iconset resource="obs.qrc">
  391. <normaloff>:/res/images/add.ico</normaloff>:/res/images/add.ico</iconset>
  392. </property>
  393. <property name="text">
  394. <string>AddScene</string>
  395. </property>
  396. </action>
  397. <action name="actionAddSource">
  398. <property name="icon">
  399. <iconset resource="obs.qrc">
  400. <normaloff>:/res/images/add.ico</normaloff>:/res/images/add.ico</iconset>
  401. </property>
  402. <property name="text">
  403. <string>AddSource</string>
  404. </property>
  405. </action>
  406. <action name="actionRemoveScene">
  407. <property name="icon">
  408. <iconset resource="obs.qrc">
  409. <normaloff>:/res/images/list_remove.png</normaloff>:/res/images/list_remove.png</iconset>
  410. </property>
  411. <property name="text">
  412. <string>RemoveScene</string>
  413. </property>
  414. </action>
  415. <action name="actionRemoveSource">
  416. <property name="icon">
  417. <iconset resource="obs.qrc">
  418. <normaloff>:/res/images/list_remove.png</normaloff>:/res/images/list_remove.png</iconset>
  419. </property>
  420. <property name="text">
  421. <string>RemoveSource</string>
  422. </property>
  423. </action>
  424. <action name="actionSceneProperties">
  425. <property name="enabled">
  426. <bool>false</bool>
  427. </property>
  428. <property name="icon">
  429. <iconset resource="obs.qrc">
  430. <normaloff>:/res/images/properties.ico</normaloff>:/res/images/properties.ico</iconset>
  431. </property>
  432. <property name="text">
  433. <string>SceneProperties</string>
  434. </property>
  435. </action>
  436. <action name="actionSourceProperties">
  437. <property name="enabled">
  438. <bool>true</bool>
  439. </property>
  440. <property name="icon">
  441. <iconset resource="obs.qrc">
  442. <normaloff>:/res/images/properties.ico</normaloff>:/res/images/properties.ico</iconset>
  443. </property>
  444. <property name="text">
  445. <string>SourceProperties</string>
  446. </property>
  447. </action>
  448. <action name="actionSceneUp">
  449. <property name="icon">
  450. <iconset resource="obs.qrc">
  451. <normaloff>:/res/images/up.ico</normaloff>:/res/images/up.ico</iconset>
  452. </property>
  453. <property name="text">
  454. <string>SceneMoveUp</string>
  455. </property>
  456. </action>
  457. <action name="actionSourceUp">
  458. <property name="icon">
  459. <iconset resource="obs.qrc">
  460. <normaloff>:/res/images/up.ico</normaloff>:/res/images/up.ico</iconset>
  461. </property>
  462. <property name="text">
  463. <string>SourceMoveUp</string>
  464. </property>
  465. </action>
  466. <action name="actionSceneDown">
  467. <property name="icon">
  468. <iconset resource="obs.qrc">
  469. <normaloff>:/res/images/down.ico</normaloff>:/res/images/down.ico</iconset>
  470. </property>
  471. <property name="text">
  472. <string>SceneMoveDown</string>
  473. </property>
  474. </action>
  475. <action name="actionSourceDown">
  476. <property name="icon">
  477. <iconset resource="obs.qrc">
  478. <normaloff>:/res/images/down.ico</normaloff>:/res/images/down.ico</iconset>
  479. </property>
  480. <property name="text">
  481. <string>SourceMoveDown</string>
  482. </property>
  483. </action>
  484. <action name="action_New">
  485. <property name="text">
  486. <string>&amp;New</string>
  487. </property>
  488. </action>
  489. <action name="action_Open">
  490. <property name="text">
  491. <string>&amp;Open</string>
  492. </property>
  493. </action>
  494. <action name="action_Save">
  495. <property name="text">
  496. <string>&amp;Save</string>
  497. </property>
  498. </action>
  499. <action name="action_Settings">
  500. <property name="text">
  501. <string>Settings</string>
  502. </property>
  503. </action>
  504. <action name="actionE_xit">
  505. <property name="text">
  506. <string>E&amp;xit</string>
  507. </property>
  508. </action>
  509. </widget>
  510. <customwidgets>
  511. <customwidget>
  512. <class>OBSQTDisplay</class>
  513. <extends>QWidget</extends>
  514. <header>qt-display.hpp</header>
  515. <container>1</container>
  516. </customwidget>
  517. </customwidgets>
  518. <resources>
  519. <include location="obs.qrc"/>
  520. </resources>
  521. <connections>
  522. <connection>
  523. <sender>actionE_xit</sender>
  524. <signal>triggered()</signal>
  525. <receiver>OBSBasic</receiver>
  526. <slot>close()</slot>
  527. <hints>
  528. <hint type="sourcelabel">
  529. <x>-1</x>
  530. <y>-1</y>
  531. </hint>
  532. <hint type="destinationlabel">
  533. <x>463</x>
  534. <y>351</y>
  535. </hint>
  536. </hints>
  537. </connection>
  538. <connection>
  539. <sender>exitButton</sender>
  540. <signal>clicked()</signal>
  541. <receiver>OBSBasic</receiver>
  542. <slot>close()</slot>
  543. <hints>
  544. <hint type="sourcelabel">
  545. <x>697</x>
  546. <y>615</y>
  547. </hint>
  548. <hint type="destinationlabel">
  549. <x>463</x>
  550. <y>351</y>
  551. </hint>
  552. </hints>
  553. </connection>
  554. </connections>
  555. </ui>