mainwindow.ui 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>406</width>
  10. <height>428</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>M3uPlayer PodCaster</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset resource="resources.qrc">
  18. <normaloff>:/icons/projecticon.svg</normaloff>:/icons/projecticon.svg</iconset>
  19. </property>
  20. <widget class="QWidget" name="centralwidget">
  21. <layout class="QVBoxLayout" name="verticalLayout_3" stretch="0,1,0">
  22. <item>
  23. <layout class="QHBoxLayout" name="horizontalLayout"/>
  24. </item>
  25. <item>
  26. <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="1,0">
  27. <item>
  28. <widget class="QDeclarativeView" name="qmlView"/>
  29. </item>
  30. <item>
  31. <widget class="QGroupBox" name="volumeWidget_2">
  32. <property name="title">
  33. <string/>
  34. </property>
  35. <layout class="QVBoxLayout" name="verticalLayout_2">
  36. <item>
  37. <widget class="QLabel" name="label">
  38. <property name="text">
  39. <string/>
  40. </property>
  41. <property name="pixmap">
  42. <pixmap resource="resources.qrc">:/icons/volume.png</pixmap>
  43. </property>
  44. </widget>
  45. </item>
  46. <item>
  47. <widget class="QSlider" name="volumeSlider">
  48. <property name="sizePolicy">
  49. <sizepolicy hsizetype="Ignored" vsizetype="Preferred">
  50. <horstretch>0</horstretch>
  51. <verstretch>1</verstretch>
  52. </sizepolicy>
  53. </property>
  54. <property name="toolTip">
  55. <string>Volume</string>
  56. </property>
  57. <property name="statusTip">
  58. <string>Volume</string>
  59. </property>
  60. <property name="orientation">
  61. <enum>Qt::Vertical</enum>
  62. </property>
  63. </widget>
  64. </item>
  65. </layout>
  66. </widget>
  67. </item>
  68. </layout>
  69. </item>
  70. <item>
  71. <widget class="QFrame" name="controlsWidget">
  72. <layout class="QVBoxLayout" name="verticalLayout">
  73. <property name="spacing">
  74. <number>1</number>
  75. </property>
  76. <property name="margin">
  77. <number>1</number>
  78. </property>
  79. <item>
  80. <layout class="QHBoxLayout" name="horizontalLayout_2">
  81. <property name="spacing">
  82. <number>1</number>
  83. </property>
  84. <property name="sizeConstraint">
  85. <enum>QLayout::SetDefaultConstraint</enum>
  86. </property>
  87. <item>
  88. <widget class="QSlider" name="seekSlider">
  89. <property name="sizePolicy">
  90. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  91. <horstretch>0</horstretch>
  92. <verstretch>0</verstretch>
  93. </sizepolicy>
  94. </property>
  95. <property name="minimumSize">
  96. <size>
  97. <width>0</width>
  98. <height>35</height>
  99. </size>
  100. </property>
  101. <property name="focusPolicy">
  102. <enum>Qt::NoFocus</enum>
  103. </property>
  104. <property name="toolTip">
  105. <string>Seek Slider</string>
  106. </property>
  107. <property name="statusTip">
  108. <string>Seek Slider</string>
  109. </property>
  110. <property name="autoFillBackground">
  111. <bool>false</bool>
  112. </property>
  113. <property name="orientation">
  114. <enum>Qt::Horizontal</enum>
  115. </property>
  116. </widget>
  117. </item>
  118. <item>
  119. <widget class="QPushButton" name="durationButton">
  120. <property name="sizePolicy">
  121. <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
  122. <horstretch>0</horstretch>
  123. <verstretch>0</verstretch>
  124. </sizepolicy>
  125. </property>
  126. <property name="minimumSize">
  127. <size>
  128. <width>50</width>
  129. <height>0</height>
  130. </size>
  131. </property>
  132. <property name="toolTip">
  133. <string>Click to toggle elapsed/remaining</string>
  134. </property>
  135. <property name="text">
  136. <string>0:00</string>
  137. </property>
  138. <property name="checkable">
  139. <bool>true</bool>
  140. </property>
  141. </widget>
  142. </item>
  143. </layout>
  144. </item>
  145. <item>
  146. <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,3,0">
  147. <property name="spacing">
  148. <number>0</number>
  149. </property>
  150. <item>
  151. <widget class="QToolButton" name="previousButton">
  152. <property name="sizePolicy">
  153. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  154. <horstretch>0</horstretch>
  155. <verstretch>0</verstretch>
  156. </sizepolicy>
  157. </property>
  158. <property name="minimumSize">
  159. <size>
  160. <width>50</width>
  161. <height>0</height>
  162. </size>
  163. </property>
  164. <property name="focusPolicy">
  165. <enum>Qt::NoFocus</enum>
  166. </property>
  167. <property name="toolTip">
  168. <string>Previous Track</string>
  169. </property>
  170. <property name="text">
  171. <string>Prev</string>
  172. </property>
  173. <property name="icon">
  174. <iconset resource="resources.qrc">
  175. <normaloff>:/icons/prev.png</normaloff>
  176. <normalon>:/icons/rew.png</normalon>:/icons/prev.png</iconset>
  177. </property>
  178. <property name="iconSize">
  179. <size>
  180. <width>32</width>
  181. <height>32</height>
  182. </size>
  183. </property>
  184. </widget>
  185. </item>
  186. <item>
  187. <widget class="QToolButton" name="playButton">
  188. <property name="sizePolicy">
  189. <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
  190. <horstretch>100</horstretch>
  191. <verstretch>0</verstretch>
  192. </sizepolicy>
  193. </property>
  194. <property name="minimumSize">
  195. <size>
  196. <width>75</width>
  197. <height>45</height>
  198. </size>
  199. </property>
  200. <property name="focusPolicy">
  201. <enum>Qt::NoFocus</enum>
  202. </property>
  203. <property name="toolTip">
  204. <string>Play / Pause</string>
  205. </property>
  206. <property name="text">
  207. <string>Play</string>
  208. </property>
  209. <property name="icon">
  210. <iconset resource="resources.qrc">
  211. <normaloff>:/icons/play.png</normaloff>
  212. <normalon>:/icons/pause.png</normalon>:/icons/play.png</iconset>
  213. </property>
  214. <property name="iconSize">
  215. <size>
  216. <width>32</width>
  217. <height>32</height>
  218. </size>
  219. </property>
  220. <property name="checkable">
  221. <bool>true</bool>
  222. </property>
  223. </widget>
  224. </item>
  225. <item>
  226. <widget class="QToolButton" name="nextButton">
  227. <property name="sizePolicy">
  228. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  229. <horstretch>0</horstretch>
  230. <verstretch>0</verstretch>
  231. </sizepolicy>
  232. </property>
  233. <property name="minimumSize">
  234. <size>
  235. <width>50</width>
  236. <height>40</height>
  237. </size>
  238. </property>
  239. <property name="focusPolicy">
  240. <enum>Qt::NoFocus</enum>
  241. </property>
  242. <property name="toolTip">
  243. <string>Next Track</string>
  244. </property>
  245. <property name="text">
  246. <string>Next</string>
  247. </property>
  248. <property name="icon">
  249. <iconset resource="resources.qrc">
  250. <normaloff>:/icons/next.png</normaloff>
  251. <normalon>:/icons/ff.png</normalon>:/icons/next.png</iconset>
  252. </property>
  253. <property name="iconSize">
  254. <size>
  255. <width>32</width>
  256. <height>32</height>
  257. </size>
  258. </property>
  259. </widget>
  260. </item>
  261. </layout>
  262. </item>
  263. </layout>
  264. </widget>
  265. </item>
  266. </layout>
  267. </widget>
  268. <widget class="QMenuBar" name="menubar">
  269. <property name="geometry">
  270. <rect>
  271. <x>0</x>
  272. <y>0</y>
  273. <width>406</width>
  274. <height>25</height>
  275. </rect>
  276. </property>
  277. <widget class="QMenu" name="menuOpen">
  278. <property name="title">
  279. <string>&amp;Player</string>
  280. </property>
  281. <addaction name="actionOpen"/>
  282. <addaction name="actionPlay_Pause"/>
  283. <addaction name="actionNextTrack"/>
  284. <addaction name="actionPreviousTrack"/>
  285. <addaction name="actionQuit"/>
  286. </widget>
  287. <widget class="QMenu" name="menuView">
  288. <property name="title">
  289. <string>&amp;View</string>
  290. </property>
  291. <addaction name="actionVolumeToggle"/>
  292. <addaction name="actionControls"/>
  293. </widget>
  294. <widget class="QMenu" name="menu_Help">
  295. <property name="title">
  296. <string>&amp;Help</string>
  297. </property>
  298. <addaction name="actionHelp"/>
  299. <addaction name="actionAbout"/>
  300. <addaction name="actionAboutQt"/>
  301. </widget>
  302. <widget class="QMenu" name="menuOptions">
  303. <property name="title">
  304. <string>&amp;Options</string>
  305. </property>
  306. <addaction name="actionAdd_Playlist_Dir"/>
  307. <addaction name="actionAdd_Song_Dir"/>
  308. <addaction name="actionVolumeUp"/>
  309. <addaction name="actionVolumeDown"/>
  310. <addaction name="actionSet_Podcast_Dir"/>
  311. <addaction name="actionClear_Settings"/>
  312. </widget>
  313. <addaction name="menuOpen"/>
  314. <addaction name="menuView"/>
  315. <addaction name="menuOptions"/>
  316. <addaction name="menu_Help"/>
  317. </widget>
  318. <widget class="QStatusBar" name="statusbar"/>
  319. <action name="actionOpen">
  320. <property name="text">
  321. <string>&amp;Open</string>
  322. </property>
  323. <property name="toolTip">
  324. <string>Open Files or Playlist</string>
  325. </property>
  326. <property name="statusTip">
  327. <string>Open Files or Playlist</string>
  328. </property>
  329. <property name="shortcut">
  330. <string>Ctrl+O</string>
  331. </property>
  332. </action>
  333. <action name="actionQuit">
  334. <property name="icon">
  335. <iconset resource="resources.qrc">
  336. <normaloff>:/icons/delete.png</normaloff>:/icons/delete.png</iconset>
  337. </property>
  338. <property name="text">
  339. <string>&amp;Quit</string>
  340. </property>
  341. <property name="shortcut">
  342. <string>Ctrl+Q</string>
  343. </property>
  344. </action>
  345. <action name="actionPlay_Pause">
  346. <property name="icon">
  347. <iconset resource="resources.qrc">
  348. <normaloff>:/icons/play.png</normaloff>
  349. <normalon>:/icons/pause.png</normalon>:/icons/play.png</iconset>
  350. </property>
  351. <property name="text">
  352. <string>&amp;Play/Pause</string>
  353. </property>
  354. <property name="shortcut">
  355. <string>Space</string>
  356. </property>
  357. </action>
  358. <action name="actionAbout">
  359. <property name="icon">
  360. <iconset resource="resources.qrc">
  361. <normaloff>:/icons/projecticon.png</normaloff>:/icons/projecticon.png</iconset>
  362. </property>
  363. <property name="text">
  364. <string>&amp;About M3uPlayer</string>
  365. </property>
  366. <property name="menuRole">
  367. <enum>QAction::AboutRole</enum>
  368. </property>
  369. </action>
  370. <action name="actionAboutQt">
  371. <property name="icon">
  372. <iconset resource="resources.qrc">
  373. <normaloff>:/icons/qt_icon.png</normaloff>:/icons/qt_icon.png</iconset>
  374. </property>
  375. <property name="text">
  376. <string>About &amp;Qt</string>
  377. </property>
  378. <property name="menuRole">
  379. <enum>QAction::AboutQtRole</enum>
  380. </property>
  381. </action>
  382. <action name="actionVolumeToggle">
  383. <property name="checkable">
  384. <bool>true</bool>
  385. </property>
  386. <property name="checked">
  387. <bool>true</bool>
  388. </property>
  389. <property name="icon">
  390. <iconset resource="resources.qrc">
  391. <normaloff>:/icons/volume.png</normaloff>:/icons/volume.png</iconset>
  392. </property>
  393. <property name="text">
  394. <string>&amp;Volume Slider</string>
  395. </property>
  396. <property name="shortcut">
  397. <string>Ctrl+V</string>
  398. </property>
  399. </action>
  400. <action name="actionVolumeUp">
  401. <property name="text">
  402. <string>Volume &amp;Up</string>
  403. </property>
  404. <property name="shortcut">
  405. <string>Alt+Up</string>
  406. </property>
  407. </action>
  408. <action name="actionVolumeDown">
  409. <property name="icon">
  410. <iconset resource="resources.qrc">
  411. <normaloff>:/icons/player-volume.png</normaloff>:/icons/player-volume.png</iconset>
  412. </property>
  413. <property name="text">
  414. <string>Volume &amp;Down</string>
  415. </property>
  416. <property name="shortcut">
  417. <string>Alt+Down</string>
  418. </property>
  419. </action>
  420. <action name="actionNextTrack">
  421. <property name="icon">
  422. <iconset resource="resources.qrc">
  423. <normaloff>:/icons/next.png</normaloff>:/icons/next.png</iconset>
  424. </property>
  425. <property name="text">
  426. <string>&amp;Next Track</string>
  427. </property>
  428. <property name="shortcut">
  429. <string>Ctrl+N</string>
  430. </property>
  431. </action>
  432. <action name="actionPreviousTrack">
  433. <property name="icon">
  434. <iconset resource="resources.qrc">
  435. <normaloff>:/icons/prev.png</normaloff>:/icons/prev.png</iconset>
  436. </property>
  437. <property name="text">
  438. <string>Pre&amp;vious Track</string>
  439. </property>
  440. <property name="shortcut">
  441. <string>Ctrl+P</string>
  442. </property>
  443. </action>
  444. <action name="actionAdd_Playlist_Dir">
  445. <property name="text">
  446. <string>&amp;Add Playlist Dir</string>
  447. </property>
  448. </action>
  449. <action name="actionAdd_Song_Dir">
  450. <property name="text">
  451. <string>Add &amp;Tracks Dir</string>
  452. </property>
  453. </action>
  454. <action name="actionClear_Settings">
  455. <property name="text">
  456. <string>&amp;Clear Settings</string>
  457. </property>
  458. </action>
  459. <action name="actionClose_Playlist">
  460. <property name="text">
  461. <string>&amp;Close Playlist</string>
  462. </property>
  463. <property name="shortcut">
  464. <string>Ctrl+W</string>
  465. </property>
  466. </action>
  467. <action name="actionShuffle">
  468. <property name="icon">
  469. <iconset resource="resources.qrc">
  470. <normaloff>:/icons/shuffle.png</normaloff>:/icons/shuffle.png</iconset>
  471. </property>
  472. <property name="text">
  473. <string>Shu&amp;ffle</string>
  474. </property>
  475. <property name="shortcut">
  476. <string>Alt+S</string>
  477. </property>
  478. </action>
  479. <action name="actionControls">
  480. <property name="checkable">
  481. <bool>true</bool>
  482. </property>
  483. <property name="checked">
  484. <bool>true</bool>
  485. </property>
  486. <property name="icon">
  487. <iconset resource="resources.qrc">
  488. <normaloff>:/icons/menu.png</normaloff>:/icons/menu.png</iconset>
  489. </property>
  490. <property name="text">
  491. <string>&amp;Controls</string>
  492. </property>
  493. <property name="toolTip">
  494. <string>View Player Controls</string>
  495. </property>
  496. </action>
  497. <action name="actionSet_Podcast_Dir">
  498. <property name="text">
  499. <string>Set &amp;Podcast Dir</string>
  500. </property>
  501. </action>
  502. <action name="actionViewPodcasts">
  503. <property name="text">
  504. <string>Podcasts</string>
  505. </property>
  506. </action>
  507. <action name="actionViewTracks">
  508. <property name="text">
  509. <string>Tracks</string>
  510. </property>
  511. </action>
  512. <action name="actionViewPlaylists">
  513. <property name="text">
  514. <string>Playlists</string>
  515. </property>
  516. </action>
  517. <action name="actionSort_Playlist">
  518. <property name="icon">
  519. <iconset resource="resources.qrc">
  520. <normaloff>:/icons/sort.png</normaloff>:/icons/sort.png</iconset>
  521. </property>
  522. <property name="text">
  523. <string>&amp;Sort Playlist</string>
  524. </property>
  525. </action>
  526. <action name="actionToggleView">
  527. <property name="text">
  528. <string>Parents / Tracks</string>
  529. </property>
  530. <property name="shortcut">
  531. <string>Ctrl+L</string>
  532. </property>
  533. </action>
  534. <action name="actionAddFeed">
  535. <property name="icon">
  536. <iconset>
  537. <normaloff>:/icons/rss.jpg</normaloff>:/icons/rss.jpg</iconset>
  538. </property>
  539. <property name="text">
  540. <string>Add Podcast Feed</string>
  541. </property>
  542. <property name="shortcut">
  543. <string>Ctrl+A</string>
  544. </property>
  545. </action>
  546. <action name="actionElapsed_Remaining">
  547. <property name="text">
  548. <string>Elapsed/Remaining</string>
  549. </property>
  550. </action>
  551. <action name="actionHelp">
  552. <property name="text">
  553. <string>M3uPlayer Help</string>
  554. </property>
  555. <property name="shortcut">
  556. <string>F1</string>
  557. </property>
  558. </action>
  559. </widget>
  560. <customwidgets>
  561. <customwidget>
  562. <class>QDeclarativeView</class>
  563. <extends>QGraphicsView</extends>
  564. <header>QtDeclarative/QDeclarativeView</header>
  565. <container>1</container>
  566. </customwidget>
  567. </customwidgets>
  568. <resources>
  569. <include location="resources.qrc"/>
  570. </resources>
  571. <connections>
  572. <connection>
  573. <sender>actionControls</sender>
  574. <signal>toggled(bool)</signal>
  575. <receiver>controlsWidget</receiver>
  576. <slot>setVisible(bool)</slot>
  577. <hints>
  578. <hint type="sourcelabel">
  579. <x>-1</x>
  580. <y>-1</y>
  581. </hint>
  582. <hint type="destinationlabel">
  583. <x>176</x>
  584. <y>361</y>
  585. </hint>
  586. </hints>
  587. </connection>
  588. </connections>
  589. <slots>
  590. <slot>on_actionSort_Playlist_triggered()</slot>
  591. </slots>
  592. </ui>