/src/stackedsettingsdialog.ui

http://github.com/tomahawk-player/tomahawk · Unknown · 732 lines · 732 code · 0 blank · 0 comment · 0 complexity · 594ad6e498b337dcac1f5cd7f8d42883 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>StackedSettingsDialog</class>
  4. <widget class="QDialog" name="StackedSettingsDialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>641</width>
  10. <height>393</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Tomahawk Settings</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout_12">
  17. <property name="margin">
  18. <number>0</number>
  19. </property>
  20. <item>
  21. <layout class="QHBoxLayout" name="horizontalLayout">
  22. <item>
  23. <layout class="QVBoxLayout" name="verticalLayout">
  24. <item>
  25. <widget class="QListWidget" name="listWidget">
  26. <property name="focusPolicy">
  27. <enum>Qt::NoFocus</enum>
  28. </property>
  29. <property name="frameShape">
  30. <enum>QFrame::StyledPanel</enum>
  31. </property>
  32. <property name="frameShadow">
  33. <enum>QFrame::Sunken</enum>
  34. </property>
  35. <property name="verticalScrollBarPolicy">
  36. <enum>Qt::ScrollBarAlwaysOff</enum>
  37. </property>
  38. <property name="horizontalScrollBarPolicy">
  39. <enum>Qt::ScrollBarAlwaysOff</enum>
  40. </property>
  41. <property name="autoScroll">
  42. <bool>true</bool>
  43. </property>
  44. <property name="iconSize">
  45. <size>
  46. <width>32</width>
  47. <height>32</height>
  48. </size>
  49. </property>
  50. <property name="movement">
  51. <enum>QListView::Static</enum>
  52. </property>
  53. <property name="resizeMode">
  54. <enum>QListView::Adjust</enum>
  55. </property>
  56. <property name="layoutMode">
  57. <enum>QListView::Batched</enum>
  58. </property>
  59. <property name="spacing">
  60. <number>1</number>
  61. </property>
  62. <property name="viewMode">
  63. <enum>QListView::IconMode</enum>
  64. </property>
  65. </widget>
  66. </item>
  67. <item>
  68. <spacer name="verticalSpacer_3">
  69. <property name="orientation">
  70. <enum>Qt::Vertical</enum>
  71. </property>
  72. <property name="sizeType">
  73. <enum>QSizePolicy::Fixed</enum>
  74. </property>
  75. <property name="sizeHint" stdset="0">
  76. <size>
  77. <width>1</width>
  78. <height>4</height>
  79. </size>
  80. </property>
  81. </spacer>
  82. </item>
  83. </layout>
  84. </item>
  85. <item>
  86. <widget class="QStackedWidget" name="stackedWidget">
  87. <property name="currentIndex">
  88. <number>0</number>
  89. </property>
  90. <widget class="QWidget" name="accountsPage">
  91. <layout class="QVBoxLayout" name="verticalLayout_11">
  92. <property name="margin">
  93. <number>0</number>
  94. </property>
  95. <item>
  96. <widget class="QGroupBox" name="groupBox_4">
  97. <property name="title">
  98. <string>Accounts</string>
  99. </property>
  100. <layout class="QVBoxLayout" name="verticalLayout_14">
  101. <property name="margin">
  102. <number>2</number>
  103. </property>
  104. <item>
  105. <widget class="QLabel" name="label_2">
  106. <property name="text">
  107. <string>Connect to your friends with Google Chat, Twitter, and more.</string>
  108. </property>
  109. </widget>
  110. </item>
  111. <item>
  112. <layout class="QHBoxLayout" name="horizontalLayout_2">
  113. <item>
  114. <widget class="QTreeView" name="accountsView">
  115. <property name="indentation">
  116. <number>0</number>
  117. </property>
  118. <property name="rootIsDecorated">
  119. <bool>false</bool>
  120. </property>
  121. <property name="uniformRowHeights">
  122. <bool>false</bool>
  123. </property>
  124. <property name="animated">
  125. <bool>true</bool>
  126. </property>
  127. <property name="headerHidden">
  128. <bool>true</bool>
  129. </property>
  130. <property name="expandsOnDoubleClick">
  131. <bool>false</bool>
  132. </property>
  133. </widget>
  134. </item>
  135. <item>
  136. <layout class="QVBoxLayout" name="addSipLayout">
  137. <item>
  138. <widget class="QToolButton" name="addSipButton">
  139. <property name="text">
  140. <string>...</string>
  141. </property>
  142. <property name="icon">
  143. <iconset resource="../resources.qrc">
  144. <normaloff>:/data/images/sipplugin-add.png</normaloff>:/data/images/sipplugin-add.png</iconset>
  145. </property>
  146. <property name="popupMode">
  147. <enum>QToolButton::InstantPopup</enum>
  148. </property>
  149. </widget>
  150. </item>
  151. <item>
  152. <widget class="QToolButton" name="removeSipButton">
  153. <property name="text">
  154. <string>...</string>
  155. </property>
  156. <property name="icon">
  157. <iconset resource="../resources.qrc">
  158. <normaloff>:/data/images/sipplugin-remove.png</normaloff>:/data/images/sipplugin-remove.png</iconset>
  159. </property>
  160. <property name="popupMode">
  161. <enum>QToolButton::DelayedPopup</enum>
  162. </property>
  163. </widget>
  164. </item>
  165. <item>
  166. <spacer name="verticalSpacer_6">
  167. <property name="orientation">
  168. <enum>Qt::Vertical</enum>
  169. </property>
  170. <property name="sizeHint" stdset="0">
  171. <size>
  172. <width>20</width>
  173. <height>40</height>
  174. </size>
  175. </property>
  176. </spacer>
  177. </item>
  178. </layout>
  179. </item>
  180. </layout>
  181. </item>
  182. </layout>
  183. </widget>
  184. </item>
  185. </layout>
  186. </widget>
  187. <widget class="QWidget" name="scannerPage">
  188. <layout class="QVBoxLayout" name="verticalLayout_5">
  189. <property name="margin">
  190. <number>0</number>
  191. </property>
  192. <item>
  193. <widget class="QGroupBox" name="groupBox_2">
  194. <property name="title">
  195. <string>Local Music Information</string>
  196. </property>
  197. <layout class="QVBoxLayout" name="verticalLayout_17">
  198. <item>
  199. <layout class="QVBoxLayout" name="verticalLayout_4">
  200. <item>
  201. <widget class="QLabel" name="label_5">
  202. <property name="text">
  203. <string>Path to scan for music files:</string>
  204. </property>
  205. </widget>
  206. </item>
  207. <item>
  208. <widget class="CheckDirTree" name="dirTree"/>
  209. </item>
  210. </layout>
  211. </item>
  212. <item>
  213. <layout class="QVBoxLayout" name="verticalLayout_16">
  214. <item>
  215. <widget class="QCheckBox" name="enableEchonestCatalog">
  216. <property name="toolTip">
  217. <string>The Echo Nest supports keeping track of your catalog metadata
  218. and using it to craft personalized radios. Enabling this option
  219. will allow you (and all your friends) to create automatic playlists
  220. and stations based on your personal taste profile.</string>
  221. </property>
  222. <property name="text">
  223. <string>Upload collection list to The Echo Nest to enable user radio</string>
  224. </property>
  225. </widget>
  226. </item>
  227. <item>
  228. <widget class="QCheckBox" name="checkBoxWatchForChanges">
  229. <property name="sizePolicy">
  230. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  231. <horstretch>0</horstretch>
  232. <verstretch>0</verstretch>
  233. </sizepolicy>
  234. </property>
  235. <property name="text">
  236. <string>Watch for changes</string>
  237. </property>
  238. </widget>
  239. </item>
  240. <item>
  241. <layout class="QHBoxLayout" name="horizontalLayout_7">
  242. <item>
  243. <widget class="QLabel" name="scanTimeLabel">
  244. <property name="text">
  245. <string>Time between scans, in seconds:</string>
  246. </property>
  247. </widget>
  248. </item>
  249. <item>
  250. <widget class="QSpinBox" name="scannerTimeSpinBox">
  251. <property name="minimum">
  252. <number>60</number>
  253. </property>
  254. <property name="maximum">
  255. <number>999999999</number>
  256. </property>
  257. </widget>
  258. </item>
  259. </layout>
  260. </item>
  261. </layout>
  262. </item>
  263. </layout>
  264. </widget>
  265. </item>
  266. </layout>
  267. </widget>
  268. <widget class="QWidget" name="lastfmPage">
  269. <layout class="QVBoxLayout" name="verticalLayout_7">
  270. <property name="margin">
  271. <number>0</number>
  272. </property>
  273. <item>
  274. <widget class="QGroupBox" name="groupBox">
  275. <property name="title">
  276. <string>Now Playing Information</string>
  277. </property>
  278. <layout class="QVBoxLayout" name="verticalLayout_15">
  279. <item>
  280. <widget class="QLabel" name="label_6">
  281. <property name="text">
  282. <string>Applications to update with currently playing track:</string>
  283. </property>
  284. </widget>
  285. </item>
  286. <item>
  287. <layout class="QHBoxLayout" name="horizontalLayout_3">
  288. <item>
  289. <layout class="QVBoxLayout" name="verticalLayout_6">
  290. <item>
  291. <widget class="QCheckBox" name="checkBoxEnableAdium">
  292. <property name="text">
  293. <string>Adium</string>
  294. </property>
  295. </widget>
  296. </item>
  297. <item>
  298. <spacer name="verticalSpacer_2">
  299. <property name="orientation">
  300. <enum>Qt::Vertical</enum>
  301. </property>
  302. <property name="sizeHint" stdset="0">
  303. <size>
  304. <width>20</width>
  305. <height>40</height>
  306. </size>
  307. </property>
  308. </spacer>
  309. </item>
  310. </layout>
  311. </item>
  312. <item>
  313. <layout class="QVBoxLayout" name="verticalLayout_2">
  314. <item>
  315. <widget class="QCheckBox" name="checkBoxEnableLastfm">
  316. <property name="layoutDirection">
  317. <enum>Qt::LeftToRight</enum>
  318. </property>
  319. <property name="text">
  320. <string>Scrobble tracks to Last.fm</string>
  321. </property>
  322. </widget>
  323. </item>
  324. <item>
  325. <layout class="QGridLayout" name="gridLayout_3">
  326. <item row="0" column="0">
  327. <widget class="QLabel" name="label_3">
  328. <property name="text">
  329. <string>Username:</string>
  330. </property>
  331. </widget>
  332. </item>
  333. <item row="0" column="1">
  334. <widget class="QLineEdit" name="lineEditLastfmUsername"/>
  335. </item>
  336. <item row="1" column="0">
  337. <widget class="QLabel" name="label_4">
  338. <property name="text">
  339. <string>Password:</string>
  340. </property>
  341. </widget>
  342. </item>
  343. <item row="1" column="1">
  344. <widget class="QLineEdit" name="lineEditLastfmPassword">
  345. <property name="echoMode">
  346. <enum>QLineEdit::Password</enum>
  347. </property>
  348. </widget>
  349. </item>
  350. </layout>
  351. </item>
  352. <item>
  353. <widget class="QPushButton" name="pushButtonTestLastfmLogin">
  354. <property name="text">
  355. <string>Test Login</string>
  356. </property>
  357. </widget>
  358. </item>
  359. <item>
  360. <spacer name="verticalSpacer">
  361. <property name="orientation">
  362. <enum>Qt::Vertical</enum>
  363. </property>
  364. <property name="sizeHint" stdset="0">
  365. <size>
  366. <width>20</width>
  367. <height>40</height>
  368. </size>
  369. </property>
  370. </spacer>
  371. </item>
  372. </layout>
  373. </item>
  374. </layout>
  375. </item>
  376. </layout>
  377. </widget>
  378. </item>
  379. </layout>
  380. </widget>
  381. <widget class="QWidget" name="resolversPage">
  382. <layout class="QVBoxLayout" name="verticalLayout_10">
  383. <property name="margin">
  384. <number>0</number>
  385. </property>
  386. <item>
  387. <widget class="QGroupBox" name="groupBox_3">
  388. <property name="title">
  389. <string>Script Resolvers</string>
  390. </property>
  391. <layout class="QVBoxLayout" name="verticalLayout_9">
  392. <property name="margin">
  393. <number>2</number>
  394. </property>
  395. <item>
  396. <widget class="QLabel" name="label">
  397. <property name="text">
  398. <string>Script resolvers search for a given track to make it playable.</string>
  399. </property>
  400. </widget>
  401. </item>
  402. <item>
  403. <widget class="QPushButton" name="getMoreResolvers">
  404. <property name="text">
  405. <string>Get more resolvers...</string>
  406. </property>
  407. </widget>
  408. </item>
  409. <item>
  410. <layout class="QHBoxLayout" name="horizontalLayout_4">
  411. <item>
  412. <widget class="QTreeView" name="scriptList">
  413. <property name="alternatingRowColors">
  414. <bool>true</bool>
  415. </property>
  416. <property name="selectionMode">
  417. <enum>QAbstractItemView::SingleSelection</enum>
  418. </property>
  419. <property name="rootIsDecorated">
  420. <bool>false</bool>
  421. </property>
  422. <property name="uniformRowHeights">
  423. <bool>true</bool>
  424. </property>
  425. <property name="itemsExpandable">
  426. <bool>false</bool>
  427. </property>
  428. <property name="animated">
  429. <bool>true</bool>
  430. </property>
  431. <property name="headerHidden">
  432. <bool>true</bool>
  433. </property>
  434. </widget>
  435. </item>
  436. <item>
  437. <layout class="QVBoxLayout" name="verticalLayout_8">
  438. <item>
  439. <widget class="QToolButton" name="addScript">
  440. <property name="text">
  441. <string/>
  442. </property>
  443. <property name="icon">
  444. <iconset resource="../resources.qrc">
  445. <normaloff>:/data/images/list-add.png</normaloff>:/data/images/list-add.png</iconset>
  446. </property>
  447. </widget>
  448. </item>
  449. <item>
  450. <widget class="QToolButton" name="removeScript">
  451. <property name="text">
  452. <string/>
  453. </property>
  454. <property name="icon">
  455. <iconset resource="../resources.qrc">
  456. <normaloff>:/data/images/list-remove.png</normaloff>:/data/images/list-remove.png</iconset>
  457. </property>
  458. </widget>
  459. </item>
  460. <item>
  461. <spacer name="verticalSpacer_4">
  462. <property name="orientation">
  463. <enum>Qt::Vertical</enum>
  464. </property>
  465. <property name="sizeHint" stdset="0">
  466. <size>
  467. <width>20</width>
  468. <height>40</height>
  469. </size>
  470. </property>
  471. </spacer>
  472. </item>
  473. </layout>
  474. </item>
  475. </layout>
  476. </item>
  477. </layout>
  478. </widget>
  479. </item>
  480. </layout>
  481. </widget>
  482. <widget class="QWidget" name="advancedPage">
  483. <layout class="QVBoxLayout" name="verticalLayout_3">
  484. <property name="margin">
  485. <number>0</number>
  486. </property>
  487. <item>
  488. <widget class="QGroupBox" name="groupBoxNetworkAdvanced">
  489. <property name="sizePolicy">
  490. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  491. <horstretch>0</horstretch>
  492. <verstretch>0</verstretch>
  493. </sizepolicy>
  494. </property>
  495. <property name="title">
  496. <string>Advanced Network Settings</string>
  497. </property>
  498. <layout class="QVBoxLayout" name="verticalLayout_13">
  499. <property name="margin">
  500. <number>2</number>
  501. </property>
  502. <item>
  503. <layout class="QVBoxLayout" name="staticSettingsLayout">
  504. <item>
  505. <layout class="QHBoxLayout" name="staticPreferredLayout"/>
  506. </item>
  507. <item>
  508. <widget class="QLabel" name="staticHostNamePortLabel">
  509. <property name="sizePolicy">
  510. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  511. <horstretch>0</horstretch>
  512. <verstretch>0</verstretch>
  513. </sizepolicy>
  514. </property>
  515. <property name="text">
  516. <string>If you're having difficulty connecting to peers, try setting this to your external IP address/host name and a port number (default 50210). Make sure to forward that port to this machine!</string>
  517. </property>
  518. <property name="wordWrap">
  519. <bool>true</bool>
  520. </property>
  521. </widget>
  522. </item>
  523. <item>
  524. <layout class="QHBoxLayout" name="staticHostNamePortLayout">
  525. <item>
  526. <widget class="QLabel" name="staticHostNameLabel">
  527. <property name="sizePolicy">
  528. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  529. <horstretch>0</horstretch>
  530. <verstretch>0</verstretch>
  531. </sizepolicy>
  532. </property>
  533. <property name="text">
  534. <string>Static Host Name:</string>
  535. </property>
  536. </widget>
  537. </item>
  538. <item>
  539. <widget class="QLineEdit" name="staticHostName"/>
  540. </item>
  541. <item>
  542. <widget class="QLabel" name="staticPortLabel">
  543. <property name="sizePolicy">
  544. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  545. <horstretch>0</horstretch>
  546. <verstretch>0</verstretch>
  547. </sizepolicy>
  548. </property>
  549. <property name="text">
  550. <string>Static Port:</string>
  551. </property>
  552. </widget>
  553. </item>
  554. <item>
  555. <widget class="QSpinBox" name="staticPort">
  556. <property name="maximum">
  557. <number>65535</number>
  558. </property>
  559. <property name="value">
  560. <number>50210</number>
  561. </property>
  562. </widget>
  563. </item>
  564. </layout>
  565. </item>
  566. <item>
  567. <widget class="QCheckBox" name="checkBoxStaticPreferred">
  568. <property name="layoutDirection">
  569. <enum>Qt::RightToLeft</enum>
  570. </property>
  571. <property name="text">
  572. <string>Always use static host name/port? (Overrides UPnP discovery/port forwarding)</string>
  573. </property>
  574. </widget>
  575. </item>
  576. </layout>
  577. </item>
  578. <item>
  579. <layout class="QHBoxLayout" name="proxySettingsHLayout">
  580. <item>
  581. <spacer name="proxySettingsLeftSpacer">
  582. <property name="orientation">
  583. <enum>Qt::Horizontal</enum>
  584. </property>
  585. <property name="sizeHint" stdset="0">
  586. <size>
  587. <width>40</width>
  588. <height>20</height>
  589. </size>
  590. </property>
  591. </spacer>
  592. </item>
  593. <item>
  594. <widget class="QPushButton" name="proxyButton">
  595. <property name="text">
  596. <string>Proxy Settings...</string>
  597. </property>
  598. </widget>
  599. </item>
  600. <item>
  601. <spacer name="proxySettingsRightSpacer">
  602. <property name="orientation">
  603. <enum>Qt::Horizontal</enum>
  604. </property>
  605. <property name="sizeHint" stdset="0">
  606. <size>
  607. <width>40</width>
  608. <height>20</height>
  609. </size>
  610. </property>
  611. </spacer>
  612. </item>
  613. </layout>
  614. </item>
  615. <item>
  616. <spacer name="verticalSpacer_5">
  617. <property name="orientation">
  618. <enum>Qt::Vertical</enum>
  619. </property>
  620. <property name="sizeHint" stdset="0">
  621. <size>
  622. <width>20</width>
  623. <height>40</height>
  624. </size>
  625. </property>
  626. </spacer>
  627. </item>
  628. <item>
  629. <widget class="QCheckBox" name="checkBoxReporter">
  630. <property name="layoutDirection">
  631. <enum>Qt::RightToLeft</enum>
  632. </property>
  633. <property name="text">
  634. <string>Send reports after Tomahawk crashed</string>
  635. </property>
  636. <property name="checked">
  637. <bool>true</bool>
  638. </property>
  639. </widget>
  640. </item>
  641. <item>
  642. <widget class="QCheckBox" name="checkBoxHttp">
  643. <property name="layoutDirection">
  644. <enum>Qt::RightToLeft</enum>
  645. </property>
  646. <property name="text">
  647. <string>Playdar HTTP API</string>
  648. </property>
  649. <property name="checked">
  650. <bool>true</bool>
  651. </property>
  652. </widget>
  653. </item>
  654. <item>
  655. <widget class="QCheckBox" name="checkBoxUpnp">
  656. <property name="layoutDirection">
  657. <enum>Qt::RightToLeft</enum>
  658. </property>
  659. <property name="text">
  660. <string>Use UPnP to establish port forward</string>
  661. </property>
  662. <property name="checked">
  663. <bool>true</bool>
  664. </property>
  665. </widget>
  666. </item>
  667. </layout>
  668. </widget>
  669. </item>
  670. </layout>
  671. </widget>
  672. </widget>
  673. </item>
  674. </layout>
  675. </item>
  676. <item>
  677. <widget class="QDialogButtonBox" name="buttonBox">
  678. <property name="orientation">
  679. <enum>Qt::Horizontal</enum>
  680. </property>
  681. <property name="standardButtons">
  682. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  683. </property>
  684. </widget>
  685. </item>
  686. </layout>
  687. </widget>
  688. <customwidgets>
  689. <customwidget>
  690. <class>CheckDirTree</class>
  691. <extends>QTreeView</extends>
  692. <header location="global">widgets/checkdirtree.h</header>
  693. </customwidget>
  694. </customwidgets>
  695. <resources>
  696. <include location="../resources.qrc"/>
  697. </resources>
  698. <connections>
  699. <connection>
  700. <sender>buttonBox</sender>
  701. <signal>accepted()</signal>
  702. <receiver>StackedSettingsDialog</receiver>
  703. <slot>accept()</slot>
  704. <hints>
  705. <hint type="sourcelabel">
  706. <x>222</x>
  707. <y>347</y>
  708. </hint>
  709. <hint type="destinationlabel">
  710. <x>157</x>
  711. <y>274</y>
  712. </hint>
  713. </hints>
  714. </connection>
  715. <connection>
  716. <sender>buttonBox</sender>
  717. <signal>rejected()</signal>
  718. <receiver>StackedSettingsDialog</receiver>
  719. <slot>reject()</slot>
  720. <hints>
  721. <hint type="sourcelabel">
  722. <x>290</x>
  723. <y>353</y>
  724. </hint>
  725. <hint type="destinationlabel">
  726. <x>286</x>
  727. <y>274</y>
  728. </hint>
  729. </hints>
  730. </connection>
  731. </connections>
  732. </ui>