media-controls.ui 8.1 KB

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