media-controls.ui 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MediaControls</class>
  4. <widget class="QWidget" name="MediaControls">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>888</width>
  10. <height>22</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  15. <horstretch>0</horstretch>
  16. <verstretch>0</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="minimumSize">
  20. <size>
  21. <width>0</width>
  22. <height>22</height>
  23. </size>
  24. </property>
  25. <property name="maximumSize">
  26. <size>
  27. <width>16777215</width>
  28. <height>22</height>
  29. </size>
  30. </property>
  31. <property name="windowTitle">
  32. <string notr="true">Form</string>
  33. </property>
  34. <layout class="QHBoxLayout" name="horizontalLayout">
  35. <property name="spacing">
  36. <number>0</number>
  37. </property>
  38. <property name="leftMargin">
  39. <number>0</number>
  40. </property>
  41. <property name="topMargin">
  42. <number>0</number>
  43. </property>
  44. <property name="rightMargin">
  45. <number>0</number>
  46. </property>
  47. <property name="bottomMargin">
  48. <number>0</number>
  49. </property>
  50. <item>
  51. <widget class="QPushButton" name="playPauseButton">
  52. <property name="sizePolicy">
  53. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  54. <horstretch>0</horstretch>
  55. <verstretch>0</verstretch>
  56. </sizepolicy>
  57. </property>
  58. <property name="minimumSize">
  59. <size>
  60. <width>22</width>
  61. <height>22</height>
  62. </size>
  63. </property>
  64. <property name="maximumSize">
  65. <size>
  66. <width>22</width>
  67. <height>22</height>
  68. </size>
  69. </property>
  70. <property name="toolTip">
  71. <string>ContextBar.MediaControls.RestartMedia</string>
  72. </property>
  73. <property name="text">
  74. <string/>
  75. </property>
  76. <property name="icon">
  77. <iconset resource="../obs.qrc">
  78. <normaloff>:/res/images/media/media_restart.svg</normaloff>:/res/images/media/media_restart.svg</iconset>
  79. </property>
  80. <property name="iconSize">
  81. <size>
  82. <width>20</width>
  83. <height>20</height>
  84. </size>
  85. </property>
  86. <property name="shortcut">
  87. <string>Space</string>
  88. </property>
  89. <property name="flat">
  90. <bool>true</bool>
  91. </property>
  92. </widget>
  93. </item>
  94. <item>
  95. <spacer name="horizontalSpacer">
  96. <property name="orientation">
  97. <enum>Qt::Horizontal</enum>
  98. </property>
  99. <property name="sizeType">
  100. <enum>QSizePolicy::Fixed</enum>
  101. </property>
  102. <property name="sizeHint" stdset="0">
  103. <size>
  104. <width>8</width>
  105. <height>20</height>
  106. </size>
  107. </property>
  108. </spacer>
  109. </item>
  110. <item>
  111. <widget class="QPushButton" name="previousButton">
  112. <property name="sizePolicy">
  113. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  114. <horstretch>0</horstretch>
  115. <verstretch>0</verstretch>
  116. </sizepolicy>
  117. </property>
  118. <property name="minimumSize">
  119. <size>
  120. <width>22</width>
  121. <height>22</height>
  122. </size>
  123. </property>
  124. <property name="maximumSize">
  125. <size>
  126. <width>22</width>
  127. <height>22</height>
  128. </size>
  129. </property>
  130. <property name="toolTip">
  131. <string>ContextBar.MediaControls.PlaylistPrevious</string>
  132. </property>
  133. <property name="text">
  134. <string/>
  135. </property>
  136. <property name="icon">
  137. <iconset resource="../obs.qrc">
  138. <normaloff>:/res/images/media/media_previous.svg</normaloff>:/res/images/media/media_previous.svg</iconset>
  139. </property>
  140. <property name="iconSize">
  141. <size>
  142. <width>20</width>
  143. <height>20</height>
  144. </size>
  145. </property>
  146. <property name="shortcut">
  147. <string>P</string>
  148. </property>
  149. <property name="flat">
  150. <bool>true</bool>
  151. </property>
  152. </widget>
  153. </item>
  154. <item>
  155. <widget class="QPushButton" name="stopButton">
  156. <property name="sizePolicy">
  157. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  158. <horstretch>0</horstretch>
  159. <verstretch>0</verstretch>
  160. </sizepolicy>
  161. </property>
  162. <property name="minimumSize">
  163. <size>
  164. <width>22</width>
  165. <height>22</height>
  166. </size>
  167. </property>
  168. <property name="maximumSize">
  169. <size>
  170. <width>22</width>
  171. <height>22</height>
  172. </size>
  173. </property>
  174. <property name="toolTip">
  175. <string>ContextBar.MediaControls.StopMedia</string>
  176. </property>
  177. <property name="text">
  178. <string/>
  179. </property>
  180. <property name="icon">
  181. <iconset resource="../obs.qrc">
  182. <normaloff>:/res/images/media/media_stop.svg</normaloff>:/res/images/media/media_stop.svg</iconset>
  183. </property>
  184. <property name="iconSize">
  185. <size>
  186. <width>20</width>
  187. <height>20</height>
  188. </size>
  189. </property>
  190. <property name="shortcut">
  191. <string>S</string>
  192. </property>
  193. <property name="flat">
  194. <bool>true</bool>
  195. </property>
  196. </widget>
  197. </item>
  198. <item>
  199. <widget class="QPushButton" name="nextButton">
  200. <property name="sizePolicy">
  201. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  202. <horstretch>0</horstretch>
  203. <verstretch>0</verstretch>
  204. </sizepolicy>
  205. </property>
  206. <property name="minimumSize">
  207. <size>
  208. <width>22</width>
  209. <height>22</height>
  210. </size>
  211. </property>
  212. <property name="maximumSize">
  213. <size>
  214. <width>22</width>
  215. <height>22</height>
  216. </size>
  217. </property>
  218. <property name="toolTip">
  219. <string>ContextBar.MediaControls.PlaylistNext</string>
  220. </property>
  221. <property name="text">
  222. <string/>
  223. </property>
  224. <property name="icon">
  225. <iconset resource="../obs.qrc">
  226. <normaloff>:/res/images/media/media_next.svg</normaloff>:/res/images/media/media_next.svg</iconset>
  227. </property>
  228. <property name="iconSize">
  229. <size>
  230. <width>20</width>
  231. <height>20</height>
  232. </size>
  233. </property>
  234. <property name="shortcut">
  235. <string>N</string>
  236. </property>
  237. <property name="flat">
  238. <bool>true</bool>
  239. </property>
  240. </widget>
  241. </item>
  242. <item>
  243. <widget class="MediaSlider" name="slider">
  244. <property name="minimumSize">
  245. <size>
  246. <width>0</width>
  247. <height>22</height>
  248. </size>
  249. </property>
  250. <property name="maximumSize">
  251. <size>
  252. <width>16777215</width>
  253. <height>22</height>
  254. </size>
  255. </property>
  256. <property name="accessibleName">
  257. <string>ContextBar.MediaControls.BlindSeek</string>
  258. </property>
  259. <property name="maximum">
  260. <number>1024</number>
  261. </property>
  262. <property name="tracking">
  263. <bool>false</bool>
  264. </property>
  265. <property name="orientation">
  266. <enum>Qt::Horizontal</enum>
  267. </property>
  268. </widget>
  269. </item>
  270. <item>
  271. <spacer name="horizontalSpacer_2">
  272. <property name="orientation">
  273. <enum>Qt::Horizontal</enum>
  274. </property>
  275. <property name="sizeType">
  276. <enum>QSizePolicy::Fixed</enum>
  277. </property>
  278. <property name="sizeHint" stdset="0">
  279. <size>
  280. <width>6</width>
  281. <height>20</height>
  282. </size>
  283. </property>
  284. </spacer>
  285. </item>
  286. <item>
  287. <widget class="QLabel" name="timerLabel">
  288. <property name="sizePolicy">
  289. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  290. <horstretch>0</horstretch>
  291. <verstretch>0</verstretch>
  292. </sizepolicy>
  293. </property>
  294. <property name="minimumSize">
  295. <size>
  296. <width>0</width>
  297. <height>22</height>
  298. </size>
  299. </property>
  300. <property name="maximumSize">
  301. <size>
  302. <width>16777215</width>
  303. <height>22</height>
  304. </size>
  305. </property>
  306. <property name="text">
  307. <string>--:--:--</string>
  308. </property>
  309. </widget>
  310. </item>
  311. <item>
  312. <spacer name="horizontalSpacer_3">
  313. <property name="orientation">
  314. <enum>Qt::Horizontal</enum>
  315. </property>
  316. <property name="sizeType">
  317. <enum>QSizePolicy::Fixed</enum>
  318. </property>
  319. <property name="sizeHint" stdset="0">
  320. <size>
  321. <width>4</width>
  322. <height>0</height>
  323. </size>
  324. </property>
  325. </spacer>
  326. </item>
  327. <item>
  328. <widget class="QLabel" name="label">
  329. <property name="sizePolicy">
  330. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  331. <horstretch>0</horstretch>
  332. <verstretch>0</verstretch>
  333. </sizepolicy>
  334. </property>
  335. <property name="minimumSize">
  336. <size>
  337. <width>0</width>
  338. <height>22</height>
  339. </size>
  340. </property>
  341. <property name="maximumSize">
  342. <size>
  343. <width>16777215</width>
  344. <height>22</height>
  345. </size>
  346. </property>
  347. <property name="text">
  348. <string>/</string>
  349. </property>
  350. </widget>
  351. </item>
  352. <item>
  353. <spacer name="horizontalSpacer_4">
  354. <property name="orientation">
  355. <enum>Qt::Horizontal</enum>
  356. </property>
  357. <property name="sizeType">
  358. <enum>QSizePolicy::Fixed</enum>
  359. </property>
  360. <property name="sizeHint" stdset="0">
  361. <size>
  362. <width>4</width>
  363. <height>0</height>
  364. </size>
  365. </property>
  366. </spacer>
  367. </item>
  368. <item>
  369. <widget class="ClickableLabel" name="durationLabel">
  370. <property name="sizePolicy">
  371. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  372. <horstretch>0</horstretch>
  373. <verstretch>0</verstretch>
  374. </sizepolicy>
  375. </property>
  376. <property name="minimumSize">
  377. <size>
  378. <width>0</width>
  379. <height>22</height>
  380. </size>
  381. </property>
  382. <property name="maximumSize">
  383. <size>
  384. <width>16777215</width>
  385. <height>22</height>
  386. </size>
  387. </property>
  388. <property name="text">
  389. <string>--:--:--</string>
  390. </property>
  391. </widget>
  392. </item>
  393. <item>
  394. <widget class="QWidget" name="emptySpaceAgain">
  395. <property name="sizePolicy">
  396. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  397. <horstretch>0</horstretch>
  398. <verstretch>0</verstretch>
  399. </sizepolicy>
  400. </property>
  401. </widget>
  402. </item>
  403. </layout>
  404. </widget>
  405. <customwidgets>
  406. <customwidget>
  407. <class>MediaSlider</class>
  408. <extends>QSlider</extends>
  409. <header>media-slider.hpp</header>
  410. </customwidget>
  411. <customwidget>
  412. <class>ClickableLabel</class>
  413. <extends>QLabel</extends>
  414. <header>clickable-label.hpp</header>
  415. </customwidget>
  416. </customwidgets>
  417. <resources>
  418. <include location="../obs.qrc"/>
  419. </resources>
  420. <connections/>
  421. </ui>