media-controls.ui 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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>6</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. <widget class="QPushButton" name="previousButton">
  87. <property name="sizePolicy">
  88. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  89. <horstretch>0</horstretch>
  90. <verstretch>0</verstretch>
  91. </sizepolicy>
  92. </property>
  93. <property name="minimumSize">
  94. <size>
  95. <width>22</width>
  96. <height>22</height>
  97. </size>
  98. </property>
  99. <property name="toolTip">
  100. <string>ContextBar.MediaControls.PlaylistPrevious</string>
  101. </property>
  102. <property name="text">
  103. <string/>
  104. </property>
  105. <property name="icon">
  106. <iconset resource="../obs.qrc">
  107. <normaloff>:/res/images/media/media_previous.svg</normaloff>:/res/images/media/media_previous.svg</iconset>
  108. </property>
  109. <property name="iconSize">
  110. <size>
  111. <width>20</width>
  112. <height>20</height>
  113. </size>
  114. </property>
  115. <property name="shortcut">
  116. <string>P</string>
  117. </property>
  118. <property name="flat">
  119. <bool>true</bool>
  120. </property>
  121. <property name="themeID2" stdset="0">
  122. <string notr="true">contextBarButton</string>
  123. </property>
  124. </widget>
  125. </item>
  126. <item>
  127. <widget class="QPushButton" name="stopButton">
  128. <property name="sizePolicy">
  129. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  130. <horstretch>0</horstretch>
  131. <verstretch>0</verstretch>
  132. </sizepolicy>
  133. </property>
  134. <property name="minimumSize">
  135. <size>
  136. <width>22</width>
  137. <height>22</height>
  138. </size>
  139. </property>
  140. <property name="toolTip">
  141. <string>ContextBar.MediaControls.StopMedia</string>
  142. </property>
  143. <property name="text">
  144. <string/>
  145. </property>
  146. <property name="icon">
  147. <iconset resource="../obs.qrc">
  148. <normaloff>:/res/images/media/media_stop.svg</normaloff>:/res/images/media/media_stop.svg</iconset>
  149. </property>
  150. <property name="iconSize">
  151. <size>
  152. <width>20</width>
  153. <height>20</height>
  154. </size>
  155. </property>
  156. <property name="shortcut">
  157. <string>S</string>
  158. </property>
  159. <property name="flat">
  160. <bool>true</bool>
  161. </property>
  162. <property name="themeID2" stdset="0">
  163. <string notr="true">contextBarButton</string>
  164. </property>
  165. </widget>
  166. </item>
  167. <item>
  168. <widget class="QPushButton" name="nextButton">
  169. <property name="sizePolicy">
  170. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  171. <horstretch>0</horstretch>
  172. <verstretch>0</verstretch>
  173. </sizepolicy>
  174. </property>
  175. <property name="minimumSize">
  176. <size>
  177. <width>22</width>
  178. <height>22</height>
  179. </size>
  180. </property>
  181. <property name="toolTip">
  182. <string>ContextBar.MediaControls.PlaylistNext</string>
  183. </property>
  184. <property name="text">
  185. <string/>
  186. </property>
  187. <property name="icon">
  188. <iconset resource="../obs.qrc">
  189. <normaloff>:/res/images/media/media_next.svg</normaloff>:/res/images/media/media_next.svg</iconset>
  190. </property>
  191. <property name="iconSize">
  192. <size>
  193. <width>20</width>
  194. <height>20</height>
  195. </size>
  196. </property>
  197. <property name="shortcut">
  198. <string>N</string>
  199. </property>
  200. <property name="flat">
  201. <bool>true</bool>
  202. </property>
  203. <property name="themeID2" stdset="0">
  204. <string notr="true">contextBarButton</string>
  205. </property>
  206. </widget>
  207. </item>
  208. <item>
  209. <widget class="MediaSlider" name="slider">
  210. <property name="minimumSize">
  211. <size>
  212. <width>0</width>
  213. <height>22</height>
  214. </size>
  215. </property>
  216. <property name="accessibleName">
  217. <string>ContextBar.MediaControls.BlindSeek</string>
  218. </property>
  219. <property name="maximum">
  220. <number>1024</number>
  221. </property>
  222. <property name="tracking">
  223. <bool>false</bool>
  224. </property>
  225. <property name="orientation">
  226. <enum>Qt::Horizontal</enum>
  227. </property>
  228. </widget>
  229. </item>
  230. <item>
  231. <widget class="QLabel" name="timerLabel">
  232. <property name="sizePolicy">
  233. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  234. <horstretch>0</horstretch>
  235. <verstretch>0</verstretch>
  236. </sizepolicy>
  237. </property>
  238. <property name="minimumSize">
  239. <size>
  240. <width>0</width>
  241. <height>22</height>
  242. </size>
  243. </property>
  244. <property name="text">
  245. <string>--:--:--</string>
  246. </property>
  247. </widget>
  248. </item>
  249. <item>
  250. <widget class="QLabel" name="label">
  251. <property name="sizePolicy">
  252. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  253. <horstretch>0</horstretch>
  254. <verstretch>0</verstretch>
  255. </sizepolicy>
  256. </property>
  257. <property name="minimumSize">
  258. <size>
  259. <width>0</width>
  260. <height>22</height>
  261. </size>
  262. </property>
  263. <property name="text">
  264. <string>/</string>
  265. </property>
  266. </widget>
  267. </item>
  268. <item>
  269. <widget class="ClickableLabel" name="durationLabel">
  270. <property name="sizePolicy">
  271. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  272. <horstretch>0</horstretch>
  273. <verstretch>0</verstretch>
  274. </sizepolicy>
  275. </property>
  276. <property name="minimumSize">
  277. <size>
  278. <width>0</width>
  279. <height>22</height>
  280. </size>
  281. </property>
  282. <property name="text">
  283. <string>--:--:--</string>
  284. </property>
  285. </widget>
  286. </item>
  287. <item>
  288. <widget class="QFrame" name="emptySpaceAgain">
  289. <property name="sizePolicy">
  290. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  291. <horstretch>0</horstretch>
  292. <verstretch>0</verstretch>
  293. </sizepolicy>
  294. </property>
  295. </widget>
  296. </item>
  297. </layout>
  298. </widget>
  299. <customwidgets>
  300. <customwidget>
  301. <class>MediaSlider</class>
  302. <extends>QSlider</extends>
  303. <header>media-slider.hpp</header>
  304. </customwidget>
  305. <customwidget>
  306. <class>ClickableLabel</class>
  307. <extends>QLabel</extends>
  308. <header>clickable-label.hpp</header>
  309. </customwidget>
  310. </customwidgets>
  311. <resources>
  312. <include location="../obs.qrc"/>
  313. </resources>
  314. <connections/>
  315. </ui>