media-controls.ui 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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>28</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>0</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="minimumSize">
  47. <size>
  48. <width>24</width>
  49. <height>24</height>
  50. </size>
  51. </property>
  52. <property name="maximumSize">
  53. <size>
  54. <width>24</width>
  55. <height>24</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. </widget>
  81. </item>
  82. <item>
  83. <spacer name="horizontalSpacer">
  84. <property name="orientation">
  85. <enum>Qt::Horizontal</enum>
  86. </property>
  87. <property name="sizeType">
  88. <enum>QSizePolicy::Fixed</enum>
  89. </property>
  90. <property name="sizeHint" stdset="0">
  91. <size>
  92. <width>8</width>
  93. <height>20</height>
  94. </size>
  95. </property>
  96. </spacer>
  97. </item>
  98. <item>
  99. <widget class="QPushButton" name="previousButton">
  100. <property name="minimumSize">
  101. <size>
  102. <width>24</width>
  103. <height>24</height>
  104. </size>
  105. </property>
  106. <property name="maximumSize">
  107. <size>
  108. <width>24</width>
  109. <height>24</height>
  110. </size>
  111. </property>
  112. <property name="toolTip">
  113. <string>ContextBar.MediaControls.PlaylistPrevious</string>
  114. </property>
  115. <property name="text">
  116. <string/>
  117. </property>
  118. <property name="icon">
  119. <iconset resource="../obs.qrc">
  120. <normaloff>:/res/images/media/media_previous.svg</normaloff>:/res/images/media/media_previous.svg</iconset>
  121. </property>
  122. <property name="iconSize">
  123. <size>
  124. <width>20</width>
  125. <height>20</height>
  126. </size>
  127. </property>
  128. <property name="shortcut">
  129. <string>P</string>
  130. </property>
  131. <property name="flat">
  132. <bool>true</bool>
  133. </property>
  134. </widget>
  135. </item>
  136. <item>
  137. <widget class="QPushButton" name="stopButton">
  138. <property name="sizePolicy">
  139. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  140. <horstretch>0</horstretch>
  141. <verstretch>0</verstretch>
  142. </sizepolicy>
  143. </property>
  144. <property name="minimumSize">
  145. <size>
  146. <width>24</width>
  147. <height>24</height>
  148. </size>
  149. </property>
  150. <property name="maximumSize">
  151. <size>
  152. <width>24</width>
  153. <height>24</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. </widget>
  179. </item>
  180. <item>
  181. <widget class="QPushButton" name="nextButton">
  182. <property name="sizePolicy">
  183. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  184. <horstretch>0</horstretch>
  185. <verstretch>0</verstretch>
  186. </sizepolicy>
  187. </property>
  188. <property name="minimumSize">
  189. <size>
  190. <width>24</width>
  191. <height>24</height>
  192. </size>
  193. </property>
  194. <property name="maximumSize">
  195. <size>
  196. <width>24</width>
  197. <height>24</height>
  198. </size>
  199. </property>
  200. <property name="toolTip">
  201. <string>ContextBar.MediaControls.PlaylistNext</string>
  202. </property>
  203. <property name="text">
  204. <string/>
  205. </property>
  206. <property name="icon">
  207. <iconset resource="../obs.qrc">
  208. <normaloff>:/res/images/media/media_next.svg</normaloff>:/res/images/media/media_next.svg</iconset>
  209. </property>
  210. <property name="iconSize">
  211. <size>
  212. <width>20</width>
  213. <height>20</height>
  214. </size>
  215. </property>
  216. <property name="shortcut">
  217. <string>N</string>
  218. </property>
  219. <property name="flat">
  220. <bool>true</bool>
  221. </property>
  222. </widget>
  223. </item>
  224. <item>
  225. <widget class="MediaSlider" name="slider">
  226. <property name="accessibleName">
  227. <string>ContextBar.MediaControls.BlindSeek</string>
  228. </property>
  229. <property name="maximum">
  230. <number>1024</number>
  231. </property>
  232. <property name="tracking">
  233. <bool>false</bool>
  234. </property>
  235. <property name="orientation">
  236. <enum>Qt::Horizontal</enum>
  237. </property>
  238. </widget>
  239. </item>
  240. <item>
  241. <spacer name="horizontalSpacer_2">
  242. <property name="orientation">
  243. <enum>Qt::Horizontal</enum>
  244. </property>
  245. <property name="sizeType">
  246. <enum>QSizePolicy::Fixed</enum>
  247. </property>
  248. <property name="sizeHint" stdset="0">
  249. <size>
  250. <width>6</width>
  251. <height>20</height>
  252. </size>
  253. </property>
  254. </spacer>
  255. </item>
  256. <item>
  257. <widget class="QLabel" name="timerLabel">
  258. <property name="text">
  259. <string>--:--:--</string>
  260. </property>
  261. </widget>
  262. </item>
  263. <item>
  264. <widget class="QLabel" name="label">
  265. <property name="text">
  266. <string>/</string>
  267. </property>
  268. </widget>
  269. </item>
  270. <item>
  271. <widget class="ClickableLabel" name="durationLabel">
  272. <property name="text">
  273. <string>--:--:--</string>
  274. </property>
  275. </widget>
  276. </item>
  277. <item>
  278. <widget class="QWidget" name="emptySpaceAgain" native="true">
  279. <property name="sizePolicy">
  280. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  281. <horstretch>0</horstretch>
  282. <verstretch>0</verstretch>
  283. </sizepolicy>
  284. </property>
  285. </widget>
  286. </item>
  287. </layout>
  288. </widget>
  289. <customwidgets>
  290. <customwidget>
  291. <class>MediaSlider</class>
  292. <extends>QSlider</extends>
  293. <header>media-slider.hpp</header>
  294. </customwidget>
  295. <customwidget>
  296. <class>ClickableLabel</class>
  297. <extends>QLabel</extends>
  298. <header>clickable-label.hpp</header>
  299. </customwidget>
  300. </customwidgets>
  301. <resources>
  302. <include location="../obs.qrc"/>
  303. </resources>
  304. <connections/>
  305. </ui>