media-controls.ui 9.7 KB

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