1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-07 12:40:45 +02:00

Compare commits

..

1235 Commits

Author SHA1 Message Date
Christian Muehlhaeuser
a104e92471 * Merged ChangeLog. 2012-04-07 10:10:52 +02:00
Christian Muehlhaeuser
1929804541 * Merged audio backend fixes from master. 2012-04-07 10:10:10 +02:00
Christian Muehlhaeuser
a564b3b272 * Don't update seek slider too often, use less cpu. 2012-04-07 10:07:05 +02:00
Christian Muehlhaeuser
d083528ad5 * Updated ChangeLog. 2012-04-07 08:10:31 +02:00
Christian Muehlhaeuser
4d63a9462d * Updated translations. 2012-04-07 08:09:37 +02:00
Christian Muehlhaeuser
5a64886b7c * Bumped to 0.4.2 and updated ChangeLog. 2012-04-07 06:46:13 +02:00
Leo Franchi
76986e8908 Backport case-insensitivity fix from master 2012-04-06 22:07:38 -03:00
Christian Muehlhaeuser
9a9a7148af * Properly fix time display in stable. 2012-04-05 06:17:40 +02:00
Christian Muehlhaeuser
aec7a0b140 * Fixed crash in AudioControls. (merge) 2012-04-05 05:39:50 +02:00
Christian Muehlhaeuser
eff42af593 * Updated ChangeLog. 2012-04-04 02:44:18 +02:00
Christian Muehlhaeuser
ad2b54ad90 * Bump version to 0.4.1. 2012-04-04 01:55:00 +02:00
Christian Muehlhaeuser
4e316a48ea * Fixed non debug builds. 2012-04-04 01:54:14 +02:00
Christian Muehlhaeuser
87863ae7e2 * Fixed about dialog for non debug releases. 2012-04-04 01:54:05 +02:00
Jeff Mitchell
5e439b990f See if this fixes Chris' time-updating problem 2012-03-31 13:06:50 -04:00
Leo Franchi
5dcf426cdf TWK-770: Fix echonest sentence summary grammar 2012-03-31 10:03:53 -04:00
Leo Franchi
5b6c4560ae TWK-785: Rename playlist after revision is created so plitem is selectable 2012-03-31 09:53:47 -04:00
Leo Franchi
fec670f27c TWK-793: Let the sourcetreeview sort before we scroll otherwise we might scroll the wrong amount 2012-03-31 09:26:30 -04:00
Leo Franchi
fb13ccd285 Oops, fix signals/slot params 2012-03-31 09:26:07 -04:00
Leo Franchi
b3b70cea82 TWK-795: Filter dups from last.fm top artists 2012-03-31 09:05:14 -04:00
Leo Franchi
f84d08e011 Don't sort related artists in footnotes 2012-03-31 08:49:18 -04:00
Leo Franchi
9c5966000c TWK-799: Don't set autoupdate when loading playlist view 2012-03-30 17:47:28 -04:00
Leo Franchi
79bfdec895 TWK-798: Start playing first resolvable track when double-clicking on a playlist item 2012-03-30 17:14:08 -04:00
Leo Franchi
9f5215302c various updater fixes 2012-03-30 14:32:01 -04:00
Leo Franchi
73d7ba03f5 TWK-815: Try using foreground text color when drawing grey bg, white on grey is hard to read 2012-03-30 13:34:48 -04:00
Leo Franchi
d623bbefc2 Fix crash on exit 2012-03-30 13:27:36 -04:00
Leo Franchi
907dad95e1 TWK-721: Don't flicker from officialtracks to supercollection tracks.
If the second infosystem albumtracks request comes back empty but the first one
came back with tracks, this is not a failure and so keep the official tracks
2012-03-30 12:09:59 -04:00
Leo Franchi
565217a53a TWK-725: Some extra pointer safety 2012-03-30 10:42:11 -04:00
Christian Muehlhaeuser
bee6485475 * Fixed crash situation in AudioControls.
(cherry picked from commit a2bfd73d55)

Conflicts:

	src/audiocontrols.cpp
2012-03-30 10:31:07 -04:00
Christian Muehlhaeuser
ace18dfa1f * Prevent race condition.
(cherry picked from commit ebbedb2b99)
2012-03-30 10:30:29 -04:00
Christian Muehlhaeuser
95f1162b6e * Fixed cached resolving.
(cherry picked from commit bd098e3ff2)
2012-03-30 10:30:09 -04:00
Christian Muehlhaeuser
e5bdd2242f * Fixed race condition during resolving.
(cherry picked from commit b70114a225)
2012-03-30 10:30:01 -04:00
Christian Muehlhaeuser
deb0eb819c * Fetch square covers from Last.fm.
(cherry picked from commit d5aed7b6df)
2012-03-30 10:29:48 -04:00
Jeff Mitchell
04864c7d79 Set scanning threads idle priority
(cherry picked from commit 5a57e285ec)
2012-03-30 10:28:04 -04:00
Jeff Mitchell
43c4daa4e3 Change wording 2012-03-29 10:41:16 -04:00
Jeff Mitchell
fc95cee6ce Dynamically enable/disable the web API, and change the wording for the option to make it more enticing 2012-03-29 10:41:14 -04:00
Dominik Schmidt
fff8fbfe80 win: fix qca2 usage/grooveshark 2012-03-28 17:23:27 +02:00
Leo Franchi
eec8b76de0 fix xspf auto-updating
(cherry picked from commit c54ca78769)
2012-03-27 11:27:07 -04:00
Leo Franchi
68f03dbd13 autoupdate fixes: init on creation, and every 10 not 100 mins
(cherry picked from commit ff04ab3b92)
2012-03-27 11:27:03 -04:00
Leo Franchi
753e1b3c90 aFix crash in dragging artist, don't assume AlbumModel only contains albums as it's hacked to also contain artists.
(cherry picked from commit 68d541d2e8)
2012-03-20 11:29:30 -04:00
Leo Franchi
e828dadec8 All QSharedPointers used in different threads need deleteLater as custom deleter. This is some of them.
(cherry picked from commit e3f5605c4e)
2012-03-19 22:24:41 -04:00
Leo Franchi
6e929986cb A bit of extra safety
(cherry picked from commit 2a58d53145)
2012-03-19 22:22:28 -04:00
mack-t
e1b086e3a4 Add albumpos, discnumber and score information from tomahawk resolver
(cherry picked from commit 21eeab61d8)
2012-03-19 22:20:32 -04:00
Leo Franchi
27147a0140 Guard against null sharedptr that shouldn't be null anyway -.- 2012-03-19 22:20:07 -04:00
Christian Muehlhaeuser
66836ae0bd * Something is wonky about CLucene scoring. Rely on our internal scoring. 2012-03-15 09:05:56 +01:00
Christian Muehlhaeuser
6342e6a9f8 * Fixed TWK-758: Sorting playlist by album position. 2012-03-15 09:05:47 +01:00
Jeff Mitchell
042ccbe730 Fix merge issue 2012-03-14 16:31:20 -04:00
Jeff Mitchell
6c6411561b Bump dependencies 2012-03-14 16:20:24 -04:00
Jeff Mitchell
18e3669911 Fix XMPP proxy. Make no proxy hosts static so changing it works across
all threads; make a duplication method so jreen doesn't scopepointer us
to death on shutdown; pass in proxyfactory to jreen.

Conflicts:

	src/settingsdialog.cpp
	src/sip/jabber/jabber.cpp
2012-03-14 16:19:32 -04:00
Dominik Schmidt
240517b0cd Bump the required QTweetLib version 2012-03-11 18:46:00 +01:00
Jeff Mitchell
fab36b2262 Use new QTweetLib 0.5 API for PIN values so leading zeros are respected
Conflicts:

	src/accounts/twitter/tomahawkoauthtwitter.h
2012-03-11 18:44:43 +01:00
Christian Muehlhaeuser
dd74ce04e6 Moved QuaZip from "shipped" to "recommended". 2012-03-07 17:51:20 +01:00
Christian Muehlhaeuser
e3a43e8ca6 * Bumped version to 0.4.0. 2012-03-07 05:07:47 +01:00
Christian Muehlhaeuser
c401ea0d91 * Update ChangeLog. 2012-03-07 05:07:23 +01:00
Christian Muehlhaeuser
2d03b8aea0 * Didn't mean to commit that. 2012-03-07 04:49:26 +01:00
Christian Muehlhaeuser
178aed9174 * Fixed TWK-474: proper fulltext search. 2012-03-07 04:47:24 +01:00
Christian Muehlhaeuser
6552deca61 * Fixed Source method being run in the wrong thread. 2012-03-07 04:45:32 +01:00
Leo Franchi
89009c09be Add a small guard to Artist::get and Album::get as they are called all over, and might be called after destruction of DB on shutdown 2012-03-06 18:47:55 -05:00
Leo Franchi
34672c7bed TWK-722: Fix quitting right after startup by ensuring chart data loaders are deleted before database 2012-03-06 18:46:48 -05:00
Leo Franchi
3caeb4642a Attempt at fixing TWK-723. 2012-03-06 18:23:17 -05:00
Christian Muehlhaeuser
80b0eacfed * Revert macdeploy back to use Qt 4.7.4. 2012-03-06 00:42:12 +01:00
Leo Franchi
aa078e86e5 Merge pull request #77 from anselmolsm/master
Play/Pause when system tray receives a mouse middle click
2012-03-05 12:20:13 -08:00
Anselmo L. S. Melo
9daf0a6089 Play/Pause when system tray receives a mouse middle click 2012-03-05 15:00:28 -03:00
Jason Herskowitz
6dead5e7e1 Fix all Super Collection text strings to SuperCollection 2012-03-04 22:46:10 -05:00
Jason Herskowitz
335868ea95 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2012-03-04 22:28:56 -05:00
Jason Herskowitz
fc45646205 Update SuperCollection header text 2012-03-04 22:28:35 -05:00
Leo Franchi
dbd466d3ed Changelog++ 2012-03-04 22:21:04 -05:00
Leo Franchi
292d8c9530 Don't update playlist if no tracks have changed 2012-03-04 21:54:55 -05:00
Leo Franchi
6b68598d1d Show job status for indexing 2012-03-04 21:54:55 -05:00
Dominik Schmidt
0d9e248dac Fix lastfm export macro after my last commit. Why did it work before that?! 2012-03-05 01:09:31 +01:00
Leo Franchi
46a86fe6a5 Install vlc plugins to Frameworks/vlc/plugins instead of plugins/ 2012-03-04 16:55:57 -05:00
Dominik Schmidt
a56ca4ddfc Improve liblastfm2 export macro 2012-03-04 21:14:59 +01:00
Leo Franchi
6483c55749 Revert "Disable breakpad for an osx nightly"
This reverts commit 5a56a3e060.
2012-03-04 13:21:41 -05:00
Leo Franchi
5a56a3e060 Disable breakpad for an osx nightly 2012-03-04 12:55:05 -05:00
Dominik Schmidt
585f32c4d8 osx: fix undefined reference to bringToFront() with visibility=hidden 2012-03-04 18:44:23 +01:00
Jason Herskowitz
9ea311526c Make audio error icon match set 2012-03-03 18:45:07 -05:00
Leo Franchi
1342fdb9a7 Revert "disable break for a sec"
This reverts commit 2cc4fccd66.
2012-03-03 11:40:16 -05:00
Leo Franchi
2cc4fccd66 disable break for a sec 2012-03-03 11:39:49 -05:00
Leo Franchi
a2d0899285 Add grooveshark track parsing, and add a job notification for shortened url unwrapping 2012-03-02 22:41:44 -05:00
Dominik Schmidt
06cc52744d Enforce proper symbol exporting on all platforms 2012-03-03 01:14:21 +01:00
Leo Franchi
df758aa3f8 TWK-710: Don't expand items when clicking on headphones or lock icon 2012-03-02 00:15:16 -05:00
Leo Franchi
f79ed86b57 TWK-711: Some attica resolver icon fixes and optimizations. Don't write too much to disk 2012-03-01 23:33:27 -05:00
Leo Franchi
c9b0c92450 Bump up time for SetFile to finish 2012-03-01 23:25:49 -05:00
Leo Franchi
57d1c29d35 TWK-533: Show instructive error message if stations run out of tracks 2012-03-01 23:05:09 -05:00
Christian Muehlhaeuser
cdf7c11b29 * Fixed TWK-703: Auto expand sidebar's groups per default. 2012-03-02 04:42:32 +01:00
Leo Franchi
be7b5babe9 Show filter errors when loading a dynamic playlist for the first time too 2012-03-01 22:34:55 -05:00
Leo Franchi
f7f2c51d4e TWK-712: Don't emit track number changed when they really haven't, thus masking other errors 2012-03-01 22:11:02 -05:00
Leo Franchi
4889ed6a33 TWK-633: Don't use useless-to-us QUrl.addQueryItem, does not encode '+' 2012-03-01 21:53:13 -05:00
Leo Franchi
3557686681 Include in the right place 2012-03-01 21:53:11 -05:00
Christian Muehlhaeuser
58dfc54e00 * Fixed TWK-708: Resolve album page top-to-bottom. 2012-03-02 03:32:30 +01:00
Christian Muehlhaeuser
bddbc7a194 * Fixed TWK-642: Update Footnotes when selecting an album in AlbumView. 2012-03-02 02:45:56 +01:00
Christian Muehlhaeuser
33e0116e4b * Fixed TWK-700: Add description for SuperCollection. 2012-03-02 02:28:27 +01:00
Christian Muehlhaeuser
b07f498516 * Fixed TWK-699: Don't paint now playing icon over item decoration. 2012-03-02 02:21:08 +01:00
Christian Muehlhaeuser
c77be81e5b * Fixed TWK-641: don't write empty album covers in InfoSystem. 2012-03-02 01:55:28 +01:00
Christian Muehlhaeuser
11cf2c78d8 * Fixed ArtistPlaylistInterface. 2012-03-02 01:30:31 +01:00
Leo Franchi
77bcc7c7aa TWK-709: Fetch albums from infosystem if no tracks are found in the DB when dropping an album 2012-03-01 18:14:45 -05:00
Leo Franchi
5b97802104 Revert "Add debug for jason". Debug did its job :)
This reverts commit 25ec5cb432.
2012-03-01 09:20:41 -05:00
Leo Franchi
25ec5cb432 Add debug for jason 2012-03-01 09:12:27 -05:00
Leo Franchi
8b4b4a8f0c Add documentation 2012-03-01 00:19:59 -05:00
Leo Franchi
6448cebec6 Mostly fix TWK-701. A few bugs lined up here.
1) Tracks fetched from an album or artist in DropJob would only fetch from the db
   and never resolve w/ resolvers
2) artist* and album* objects were getting deleted too early if they didn't already exist before
   DropJob asked for them (results from db thread are queued, sharedpointer deletion happened first).
   Keep ahold of them until we're done with them.

For albums we don't know about, we still need to look up metadata track listings when nothing is found in the DB.
2012-03-01 00:14:16 -05:00
Leo Franchi
191ee259d4 TWK-671: Fix filter text being 'behind' by one step 2012-02-29 22:28:54 -05:00
Leo Franchi
dc364726c0 TWK-706: Don't auto-enable resolvers when upgrading them. 2012-02-29 18:46:58 -05:00
Hugo Lindström
6ac0f68224 Silly misstake in naming 2012-03-01 00:38:32 +01:00
Leo Franchi
3c3078f9f8 Clean up from previous test 2012-02-29 17:45:20 -05:00
Leo Franchi
b994befc58 osx /volumes tweak 2012-02-29 17:12:59 -05:00
Hugo Lindström
56cf0239da Fix soundcloudwall and pump version 2012-02-29 08:06:56 +01:00
Christian Muehlhaeuser
69d75362b3 * This should speed up resolving... a lot. 2012-02-29 02:36:33 +01:00
Leo Franchi
8db9c79e57 Add some SetFile/GetFileInfo debug 2012-02-28 18:54:22 -05:00
Hugo Lindström
e9ee617d94 Better name for soundcloudwall 2012-02-28 21:36:53 +01:00
Leo Franchi
c9c6534af5 Wait a bit longer for portfwd thread to exit to avoid crashes on exit 2012-02-28 10:37:37 -05:00
Leo Franchi
1b9767995b Make stations item drop enabled. How did this ever work!? 2012-02-28 10:37:37 -05:00
Christian Muehlhaeuser
1c561ba7a9 * Prepare macdeploy for Qt 4.8. 2012-02-28 15:49:21 +01:00
Leo Franchi
52baebc899 Delete pipeline after database, as some dbcmds create queries which access Pipeline 2012-02-26 17:35:14 -05:00
Leo Franchi
63c029554a Set default type of echonest control so an empty control is valid (and ignored) 2012-02-26 17:34:11 -05:00
Leo Franchi
3900dd27d2 TWK-686: Implement playlistinterface and jump to current track 2012-02-26 13:06:10 -05:00
Leo Franchi
e9fb17dadb TWK-604: Update Show/Hide menu entry if Tomahawk is hidden with Cmd-H 2012-02-26 12:44:19 -05:00
Leo Franchi
56c2f86381 Use SetFile/GetFileInfo from bundle 2012-02-26 10:57:00 -05:00
Leo Franchi
a8440c72e4 Fix build for gcc on mac. Hudson should use clang :D 2012-02-25 23:52:34 -05:00
Leo Franchi
cbb5bac075 TWK-624: When resolving dups in dropjob, prefer playable ones 2012-02-25 23:20:31 -05:00
Leo Franchi
b7f1f56f77 TWK-633: Don't hand-make URLs, that is just asking for trouble 2012-02-25 21:53:08 -05:00
Leo Franchi
9fe17cf6f5 Upgrade SPMediaKeyTap 2012-02-25 21:25:57 -05:00
Leo Franchi
d641f06e6d cleanups 2012-02-25 20:54:54 -05:00
Leo Franchi
7668f04c0c Cache height as sizehint is called plenty often 2012-02-25 20:13:12 -05:00
Leo Franchi
a73d1cd342 Don't calculate height by assuming rows are same height anymore, as they are not. 2012-02-25 20:07:33 -05:00
Leo Franchi
35c4a29cbe center icon in delegate for multi-line jobs 2012-02-25 20:03:01 -05:00
Leo Franchi
f6e00fbb86 Show error message if phonon spits an error, but don't block with modal dialog/audio stop 2012-02-25 20:02:38 -05:00
Leo Franchi
3f9503364c Return null qstring 2012-02-25 19:48:00 -05:00
Leo Franchi
36b2a585f9 Show errors when fetching information from the network. Fixes TWK-515 2012-02-25 19:39:35 -05:00
Leo Franchi
42220a8c95 Delete InfoSystem after pipeline as various constructors connect to InfoSystem. Fixes crash on exit. 2012-02-25 16:24:57 -05:00
Christian Muehlhaeuser
1ac4efa88a * Prepare for 0.4.0. 2012-02-25 10:18:00 +01:00
Christian Muehlhaeuser
cfe42d10ea * Minor cleanups. 2012-02-24 06:29:32 +01:00
Christian Muehlhaeuser
6ad9e820e3 * Only show top 50 loved tracks for the SuperCollection. 2012-02-24 05:52:02 +01:00
Christian Muehlhaeuser
47a403a9c8 * Update social actions everytime you open the contextual menu of a track. 2012-02-24 05:40:00 +01:00
Christian Muehlhaeuser
b2fc0935a4 * Show now playing speaker next to current playlist again. 2012-02-24 05:18:55 +01:00
Christian Muehlhaeuser
a04d384ac4 * Show default album, not artist cover on AlbumInfoWidget. 2012-02-24 04:15:28 +01:00
Christian Muehlhaeuser
325bb0bf8f * Added global common image cache. 2012-02-24 04:13:37 +01:00
Christian Muehlhaeuser
c2a79d4cbf * Don't wordwrap track names in sidebar. 2012-02-23 21:06:17 +01:00
Christian Muehlhaeuser
b17b8356ad * Fixed a few issues with controlling playback via CLI args. 2012-02-23 20:34:23 +01:00
Christian Muehlhaeuser
a41b174851 Merge pull request #76 from ubertaco/master
Initial support for TWK-595
2012-02-23 11:23:43 -08:00
ubertaco
458d32ed7c removed duplicate --stop 2012-02-23 14:05:44 -05:00
ubertaco
a0383b6664 fixed helpstrings and inconsistent spacing 2012-02-23 14:04:24 -05:00
ubertaco
9b1fc4cd24 added helpstrings 2012-02-23 13:52:11 -05:00
ubertaco
2a27ef88f6 Added initial support for TWK-595 ( command-line audio controls ) 2012-02-23 13:48:51 -05:00
Christian Muehlhaeuser
d1ecf6d748 * More work on sidebar reorganization. 2012-02-23 06:22:47 +01:00
Christian Muehlhaeuser
396b5cd6e0 * Modify Tomahawk's config file to be only accessible by the owner. 2012-02-23 04:36:30 +01:00
Christian Muehlhaeuser
55e7d6383b * Unbreak headless more. 2012-02-23 04:08:14 +01:00
Christian Muehlhaeuser
dbcbffb6c4 * Auto load covers after expanding an artist. 2012-02-23 04:05:06 +01:00
Christian Muehlhaeuser
6b51872c3e * Unbreak headless. 2012-02-23 03:30:22 +01:00
Christian Muehlhaeuser
79d8b081d7 * Speed up cover loading in TreeView. 2012-02-23 03:21:21 +01:00
Christian Muehlhaeuser
165276912f * Fixed Windows compiling. 2012-02-22 02:42:42 +01:00
Christian Muehlhaeuser
413052bf8e * Destroy Pipeline properly and deactivate it earlier during shutdown. 2012-02-22 02:09:24 +01:00
Leo Franchi
46fd72920c Remove duplicate signal/slot collection. All SourceTreeItem* signals are already hooked up for each item 2012-02-19 15:36:48 -05:00
Christian Muehlhaeuser
399b835436 * SourcePlaylistInterface shouldn't use temporary queries. 2012-02-19 11:29:03 +01:00
Alejandro Wainzinger
9f76cdf486 Fix typo. 2012-02-18 00:49:08 -08:00
Alejandro Wainzinger
881bf5dd9d Check for OS X 10.7 as well as 10.6 for delegate protocol. 2012-02-18 00:47:23 -08:00
Leo Franchi
8bb9661960 Add an index on the file mtime. For future users for now 2012-02-17 19:08:59 -05:00
Leo Franchi
a1c69b0b43 rework some startup order to load servent before UI components 2012-02-17 18:37:59 -05:00
Dominik Schmidt
5083849514 Merge branch 'master' of git://github.com/tomahawk-player/tomahawk 2012-02-14 05:28:57 +01:00
Dominik Schmidt
8d75ba4d64 Add console output on windows 2012-02-14 05:28:35 +01:00
Leo Franchi
b54b7f6455 Up webapi timeouts so resolving can finish 2012-02-12 17:15:02 -05:00
Dominik Schmidt
488eb387cb Use my new pvlc build in update-vlc.sh 2012-02-12 20:49:55 +01:00
Dominik Schmidt
99143f6148 Fix windows for qt 4.8 2012-02-12 20:23:20 +01:00
Dominik Schmidt
1d4320afea Bump year ;-) 2012-02-11 03:55:23 +01:00
Dominik Schmidt
d9c3162146 Remove now unneccesary workaround in mingw toolchain file 2012-02-10 19:36:10 +01:00
Dominik Schmidt
4a1b021753 Fix FindTaglib.cmake for windows 2012-02-10 19:33:48 +01:00
Leo Franchi
3418d5295b Merge pull request #75 from crabmanX/master
suggest playlist filename on export
2012-02-10 06:35:51 -08:00
Kilian Lackhove
bf30dc37a2 suggest playlist filename on export 2012-02-10 15:30:07 +01:00
Dominik Schmidt
6ed4902e00 Check for QtUiTools 2012-02-06 14:56:32 +01:00
Dominik Schmidt
e3f6e61900 *sigh* Fix returning years in scriptresolvers 2012-02-04 01:53:54 +01:00
Christian Muehlhaeuser
c9b1daeba7 * Fixed TWK-670: Don't crash without a composer. 2012-02-03 17:10:03 +01:00
Jeff Mitchell
52531e9125 Use the faster method for actual comparison 2012-02-02 16:08:42 -05:00
Jeff Mitchell
72b6252ab5 Add id() to playlistinterface for comparison 2012-02-02 16:05:51 -05:00
Jeff Mitchell
95f3ead710 Remove extraneous local IP checks; let the plugin set the name and don't
try to adjust it based on IP.
2012-02-02 15:42:18 -05:00
Jeff Mitchell
07a9486e4d Some whitespace cleaning 2012-02-02 14:02:38 -05:00
Dominik Schmidt
7efceebb1c Merge pull request #74 from peretti/master
Added Brazilian Portuguese translation
2012-01-29 19:39:21 -08:00
Hugo Lindström
47529ee4d8 Add version controll to force cacheupdates on new sources. 2012-01-25 16:40:59 +01:00
Allan Peretti
6fdc49b6e5 Brazilian POrtuguese translation 2012-01-24 20:54:59 -06:00
Jeff Mitchell
78ad724bac Clean up some sourceplaylistinterface logic to hopefully prevent it
saying that a track couldn't be resolved when it gets resolved right
afterwards.

Also, have the latch mode changing (for instance on pause) affect the
source's icon.
2012-01-23 16:14:33 -05:00
Jeff Mitchell
fad6768955 Don't go QImage -> QPixmap -> QImage 2012-01-23 15:17:43 -05:00
Jeff Mitchell
03384c4e19 Be a bit safer 2012-01-23 15:14:57 -05:00
Jeff Mitchell
63e59e7e27 Fix crash from album cover refactoring. QPixmap was being put into a
QVariant and QImage being taken out.
2012-01-23 15:12:06 -05:00
Christian Muehlhaeuser
b768e84afe * Better highlighting for artist names in AlbumView. 2012-01-23 18:34:07 +01:00
Christian Muehlhaeuser
8fdddb501f * Better shutdown sequence. 2012-01-23 18:33:34 +01:00
Christian Muehlhaeuser
f6d00be6c1 * Fixed TreeModel's columns / data method. 2012-01-23 15:48:47 +01:00
Jeff Mitchell
783893f750 I wish Jreen would properly namespace their signals/slots. 2012-01-23 06:49:05 -05:00
Christian Muehlhaeuser
ff9074421a * Fixed spinner size. 2012-01-23 06:03:00 +01:00
Christian Muehlhaeuser
5a719f39bd * Fixed painting issues with BreadcrumbBar. 2012-01-23 05:52:39 +01:00
Christian Muehlhaeuser
39a40ce372 * Use proper sort order for Top Hits & Related Artists. 2012-01-23 04:48:31 +01:00
Christian Muehlhaeuser
fdb13a1f78 * Fixed alignment of playlist headers. 2012-01-23 03:20:49 +01:00
Christian Muehlhaeuser
9f99108701 * Let's make alignment a data-role as it's intended to be. 2012-01-23 03:12:55 +01:00
Dominik Schmidt
1e022bf627 Use only 'Show Queue' not 'Open Queue' additionally 2012-01-23 03:07:24 +01:00
Dominik Schmidt
354dad71d9 Fix context menu showing play when actually opening artist/album pages 2012-01-23 03:07:24 +01:00
Christian Muehlhaeuser
ea7dc6e057 * Properly center playlist items. 2012-01-23 03:00:12 +01:00
Dominik Schmidt
c9ceb5f813 Align some columns centered in playlistitemdelegate: albumpos, duration, etc 2012-01-23 02:46:00 +01:00
Christian Muehlhaeuser
576c66133e * Fixed search crash. 2012-01-23 00:36:26 +01:00
Christian Muehlhaeuser
0c704d2928 * Fixed column weights. 2012-01-23 00:25:02 +01:00
Christian Muehlhaeuser
d611bad383 * Fixed SQL Query. 2012-01-22 23:16:53 +01:00
Dominik Schmidt
3c2139ebeb taghandlers should be part of the core library not of the gui library 2012-01-22 22:22:56 +01:00
Dominik Schmidt
081102fee4 Read discnumber from script resolvers 2012-01-22 20:40:38 +01:00
Dominik Schmidt
c68772c9b5 Fix rebase fail 2012-01-22 20:40:04 +01:00
Teo Mrnjavac
68c421e00e Fix after borked merge. 2012-01-22 19:50:14 +01:00
Teo Mrnjavac
93722665af Get the discnumber in databaseimpl.cpp as well. 2012-01-22 19:50:14 +01:00
Teo Mrnjavac
b8a38f7eda Write a null value for the composer id if there's no composer. 2012-01-22 19:48:18 +01:00
Teo Mrnjavac
06374586e0 Fix header weights. 2012-01-22 19:48:18 +01:00
Teo Mrnjavac
a7fd04e1f3 Added disc numbers to the Playlist view as well. 2012-01-22 19:48:18 +01:00
Teo Mrnjavac
9661a38c10 Added Composer column to the collection and playlist model/views. 2012-01-22 19:48:18 +01:00
Teo Mrnjavac
47e9f27199 Fixed bug with null discnumbers and added discnumbers to view.
Fix bug in the taghandlers where a discnumber polluted null entries in
the database.
Also made the tree model so that the discnumber appears before the track
number if it's defined.
2012-01-22 19:48:18 +01:00
Teo Mrnjavac
4e59f1dc12 Added discnumber & composer to the DB schema and sorting by discnumber.
Added support for three new metadata elements of a track: Album Artist,
Composer and Disc Number. Since these are not supported in ID3v1 which
TagLib uses as common ground between the different metadata formats, I
had to handle the following cases separately: APE, ASF, ID3v1, ID3v2,
MP4 and OGG.
Modified the DB schema to include composer and discnumber. Provided the
dbmigrate file and bumped the schema version.
Added composer and discnumber data to all relevant queries.
Removed a bogus result->setYear from some queries in dbcmd_resolve.cpp.
2012-01-22 19:48:18 +01:00
Dominik Schmidt
68b146e560 Simplify setting the year on results in scriptresolver 2012-01-22 19:15:10 +01:00
Dominik Schmidt
b06d50be98 Read albumpos from scriptresolvers 2012-01-22 18:57:28 +01:00
Dominik Schmidt
cc6a7fd5c5 qInstallMsgHandler(blackboard); for(int i=0;i<1000;++i) qDebug() << "QPixmap::loadFromData returns bool,
not the pixmap itself"
2012-01-22 18:08:03 +01:00
Dominik Schmidt
0488aa10f8 Fix headless by using QByteArrays instead of QPixmap or QImage 2012-01-22 17:50:33 +01:00
Christian Muehlhaeuser
7dcd6e8edc * Added missing return. 2012-01-22 16:41:40 +01:00
Christian Muehlhaeuser
11c6d4cdca * Moved social actions from Result into Query. Added contextual menu entry for (un)loving. 2012-01-22 16:36:56 +01:00
Christian Muehlhaeuser
60b746c430 * Move database dumping into its own method. 2012-01-20 02:15:42 +01:00
Christian Muehlhaeuser
1f2cc33364 * Moved cover / image retrieval into Artist & Album classes. Huge model / view cleanup. 2012-01-20 02:15:42 +01:00
Jeff Mitchell
5d215b1326 Add a missing delquery.exec() in deletefiles, probably causing the
remote delete failures
2012-01-19 17:32:43 -05:00
Christian Muehlhaeuser
46723bf9d3 * Added a --dumpdb command line option. 2012-01-19 18:11:17 +01:00
Hugo Lindström
36789637a2 Forgot api url 2012-01-19 14:06:51 +01:00
Hugo Lindström
6e669fe530 Adding Soundcloudwall.com 2012-01-19 14:05:34 +01:00
Christian Muehlhaeuser
90c1a4ec51 * Custom layouts are annoying. 2012-01-19 13:12:50 +01:00
Christian Muehlhaeuser
3e7b2b72cf * Let's hope centering the text works better. 2012-01-19 12:29:24 +01:00
Christian Muehlhaeuser
de5df30941 * Fixed source painting for some weird fonts. 2012-01-19 11:51:57 +01:00
Dominik Schmidt
f5764906d6 Don't print passwords in the xml console. Thanks Elessar for the patch. 2012-01-17 19:26:37 +01:00
Christian Muehlhaeuser
f6dce6181e * Added more Jabber debug output for Jason. 2012-01-17 04:20:05 +01:00
Christian Muehlhaeuser
ba74c22663 * Potential malloc / race condition fix. 2012-01-16 13:33:10 +01:00
Jeff Mitchell
14fd0424a1 Working query-stores-its-own-pointer behavior 2012-01-15 18:17:25 -05:00
Jeff Mitchell
4d7945291e Fix a couple warnings and getPlaylistInterface->playlistInterface 2012-01-15 15:02:53 -05:00
Christian Muehlhaeuser
2eabaa0195 * Fixed QSharedPtr related warnings. 2012-01-15 15:29:57 +01:00
Christian Muehlhaeuser
7ffe53b745 * Use QSharedPointers in DbCmd_AllTracks. 2012-01-14 08:33:37 +01:00
Jeff Mitchell
ff9a033e1e Fix real-time being the default 2012-01-13 12:31:44 -05:00
Jeff Mitchell
ef41c80eb1 Move the mutex locker in the query's destructor to try to ensure that no part of the destructor can be happening while access happens some other way.
Also actually lock the mutex in refreshResults() and check for validity of the object.
2012-01-13 08:52:30 -05:00
Jeff Mitchell
25a67447d3 Add lock/unlock icons to toggle realtime listening along 2012-01-12 19:05:14 -05:00
Jeff Mitchell
9242a7c942 Add the ability to listen along in real-time. Won't automatically switch
if you (currently, might need to tweak) have <= 6 seconds left of the
current track...after a while if you get further behind it'll
automatically correct.

Can toggle via source context menu right now, need to work in an icon.

If you pause the music, it turns off real-time if it's on.
2012-01-12 17:55:33 -05:00
Christian Muehlhaeuser
7cd51a6108 * Use tDebug() when printing out a clucene error. 2012-01-11 10:30:17 +01:00
Hugo Lindström
82a2ff900b Fetches artistdata from infosystem 2012-01-11 01:22:22 +01:00
Jeff Mitchell
d6a533527e Fix signal/slot errors from playlistinterface refactor 2012-01-10 12:45:06 -05:00
Jeff Mitchell
758d65e018 Fix signal/slot signatures.
Fixes TWK-654.
2012-01-10 09:56:48 -05:00
Leo Franchi
1ccc368195 Don't blindly refresh top loved tracks all the time.
Refactor update function from xspfupdater into tomahawkutils, use it in the loved tracks backend.
also, a few misc cleanups
2012-01-06 17:14:42 -05:00
Leo Franchi
7abc185586 no need for queued connection any longer as clicking a collection item won't lead to a setplaylistinterface 2012-01-06 15:31:48 -05:00
Leo Franchi
4bf4cdda7b reclaim more copyrights :) 2012-01-06 15:31:31 -05:00
Leo Franchi
5fcb7e637a Reduce shared memory segment used as we don't allow more than once instance open at once 2012-01-06 12:38:51 -05:00
Christian Muehlhaeuser
ad9cf93f28 * Properly calculate item spacing in AlbumViews. 2012-01-06 08:16:33 +01:00
Christian Muehlhaeuser
c0c43441c1 * Hotfixes for non-KDE users. 2012-01-06 08:08:34 +01:00
Christian Muehlhaeuser
dc79dfe403 * Hardcoded a bunch of font-sizes. Should be properly fixed eventually. 2012-01-06 08:03:25 +01:00
Dominik Schmidt
ef5af2c7d8 Remove Jreen submodule. 2012-01-05 22:40:10 +01:00
Leo Franchi
d4e82d8c94 Merge pull request #73 from Horrendus/master
Fix Bugs handling Grooveshark Playlist URL Drops
2012-01-04 08:41:00 -08:00
Stefan Derkits
4f3ae14dbf Better function naming in shortenedlinkparser 2012-01-04 17:03:48 +01:00
Stefan Derkits
3655a2b537 Don't check whitelist everytime we want to resolve a redirect 2012-01-04 16:37:04 +01:00
Stefan Derkits
014c6e7344 Fix Bugs in GroovesharkParser & enable resolving of multiple redirects 2012-01-04 15:57:23 +01:00
Christian Muehlhaeuser
bea98a5e30 Merge pull request #72 from mgnz/master
Updated spanish translation! :)
2012-01-03 16:21:07 -08:00
mgnz
aff87e936a Update lang/tomahawk_es.ts 2012-01-04 01:17:24 +01:00
Christian Muehlhaeuser
5f0200b151 * Fixed not being able to collapse History item in the sidebar. 2012-01-02 14:14:14 +01:00
Jeff Mitchell
f1fb4a2ed8 Merge branch 'playlistinterface_ptr' of ssh://github.com/tomahawk-player/tomahawk into playlistinterface_ptr 2011-12-31 00:13:56 -05:00
Jeff Mitchell
20d1c2a5cc Possibly fix some of the qsharedptr warnings by making constructors explicit 2011-12-31 00:13:40 -05:00
Jeff Mitchell
9c8a9e0c52 Possibly fix some of the qsharedptr warnings by making constructors explicit 2011-12-31 00:05:50 -05:00
Jeff Mitchell
b72863a1ff Get rid of now-unneeded qsharedptr 2011-12-30 23:49:56 -05:00
Jeff Mitchell
2c3bf472bc Fix a few more signal/slot errors 2011-12-30 23:45:00 -05:00
Jeff Mitchell
05c0f3e2d3 Merge branch 'playlistinterface_ptr' of ssh://github.com/tomahawk-player/tomahawk into playlistinterface_ptr 2011-12-30 23:41:55 -05:00
Jeff Mitchell
8abf965447 Fix a couple signal/slot errors 2011-12-30 23:41:48 -05:00
Christian Muehlhaeuser
0460f6f776 * Fixed compiling MPRIS plugin. 2011-12-31 03:29:11 +01:00
Jeff Mitchell
2ea2b57d92 Finish refactoring playlistinterface...it's its own QObject, and it doesn't multiple inherit with any other classes for any implementations.
Dragons ahead, beware. Brave testers needed.
2011-12-30 20:35:53 -05:00
Jeff Mitchell
9fe40f0682 Separate out Playlist's interface. PlaylistPlaylistInterface isn't a great name, someone come up with something better. 2011-12-30 16:31:19 -05:00
Jeff Mitchell
f81db381be Merge branch 'master' into playlistinterface_ptr 2011-12-29 10:02:46 -05:00
Jeff Mitchell
9320d2f9c2 Fix some corner cases affecting the time slider, such as when the streaming fails 2011-12-29 10:02:09 -05:00
Christian Muehlhaeuser
1639d617f7 * Added shlwapi dependency. 2011-12-28 23:32:47 +01:00
Christian Muehlhaeuser
4341256594 Merge pull request #71 from mickael9/master
Use AssocQueryString on Windows for script resolvers (untested)
2011-12-28 14:20:26 -08:00
mickael9
584c4446b5 Use AssocQueryString on Windows for script resolvers
that are not .exe files (untested !)
2011-12-28 22:42:51 +01:00
Jeff Mitchell
424ac7a1d5 Separate album playlist interface 2011-12-28 12:27:25 -05:00
Jeff Mitchell
9bc38282e9 Merge remote branch 'origin/master' into playlistinterface_ptr 2011-12-28 11:54:40 -05:00
Dominik Schmidt
9011e4977e Rename CMakeLists..txt files to CMakeLists..cmake so we get proper syntax highlighting 2011-12-27 03:25:12 +01:00
Dominik Schmidt
4c2c4b7c6d Remove hardcoded install paths, port over to CMAKE_INSTALL_*DIR 2011-12-27 03:17:37 +01:00
Dominik Schmidt
a6a362944a Allow setting absolute paths in CMAKE_INSTALL_LIBEXECDIR 2011-12-27 02:39:34 +01:00
Dominik Schmidt
a059cc2e18 Include GNUInstallDirs before configuring config.h 2011-12-27 01:09:08 +01:00
Dominik Schmidt
9a13d475a6 Use python.exe as interpreter for .py files on windows. 2011-12-26 20:14:42 +01:00
Jeff Mitchell
1a240911f5 Separate Artist playlist interface 2011-12-26 13:19:24 -05:00
Jeff Mitchell
a4f65cbcc2 Fix some compilation errors from the merge 2011-12-26 12:29:56 -05:00
Jeff Mitchell
073cbbaad5 Merge branch 'master' into playlistinterface_ptr
Conflicts:
	src/libtomahawk/widgets/whatshotwidget.cpp
2011-12-26 12:24:27 -05:00
Leo Franchi
4c8fa37d0e Delete external resolvers when removing them from resolvers list 2011-12-25 19:56:33 -06:00
Leo Franchi
038daffab7 Merge pull request #70 from Horrendus/master
enable parsing of tinysong.com Grooveshark links
2011-12-25 06:55:02 -08:00
Stefan Derkits
bd893995c3 Allow parsing of grooveshark tinysong.com links 2011-12-24 22:44:05 +01:00
Leo Franchi
9634d3230f Go back to old way of sending artists in charts, as old data type may be cached 2011-12-24 11:11:05 -06:00
Christian Muehlhaeuser
01d6a22f92 Merge pull request #69 from Horrendus/master
fix grooveshark stuff by putting ifdefs around it
2011-12-23 13:20:46 -08:00
Stefan Derkits
b3c144b4bf put ifdefs around grooveshark parsing stuff 2011-12-23 22:17:31 +01:00
Christian Muehlhaeuser
3875f0b693 * Auto expand group items. 2011-12-23 20:01:08 +01:00
Leo Franchi
cf4d0fe465 utils to utilsgui 2011-12-23 09:56:07 -06:00
Leo Franchi
06ac5cffb6 debug-- 2011-12-23 08:02:37 -06:00
Leo Franchi
3987ce7690 Load chart data objects in a thread, as they call synchronous db methods 2011-12-23 08:02:37 -06:00
Leo Franchi
c4c74d84dc Show search widget on qt 4.8 2011-12-23 08:02:36 -06:00
Christian Muehlhaeuser
79c283b181 Merge pull request #68 from Horrendus/master
Parse Grooveshark.com Playlist
2011-12-22 15:09:09 -08:00
Stefan Derkits
2e25337cc1 Small changes in groovesharkparser 2011-12-22 23:59:16 +01:00
Stefan Derkits
e989bc1652 Parse Grooveshark playlists on drag & drop
not much error handling yet, but it works ;)
2011-12-21 23:53:09 +01:00
Jeff Mitchell
a8810e90c1 Some cleanup 2011-12-21 16:17:59 -05:00
Jeff Mitchell
daca5fa107 Don't store a source_ptr in SourcePlaylistInterface, since the Source has a playlistinterface_ptr down to it, causing a loop 2011-12-21 14:35:10 -05:00
Jeff Mitchell
d3fbbf778a Some normalization 2011-12-21 14:21:03 -05:00
Jeff Mitchell
44cbcd434e Merge branch 'master' into playlistinterface_ptr
Conflicts:
	src/libtomahawk/playlistinterface.h
2011-12-21 14:08:57 -05:00
Jeff Mitchell
9e80ef8aca Add suggestion from leo 2011-12-21 08:59:27 -05:00
Hugo Lindström
52cb7cebd9 Forgot about spotifyApiReply. 2011-12-17 18:06:44 +01:00
Christian Muehlhaeuser
54c203982f * Fixed resolving regression, which caused omitting some results. 2011-12-15 20:58:24 +01:00
Christian Muehlhaeuser
c3e8420b57 * Removed PhantomJS warning from tomahawk.js. 2011-12-14 17:05:38 +01:00
Jason Herskowitz
d59ffc55b1 Transparent spinner 2011-12-14 09:33:32 -05:00
Hugo Lindström
f32de6bece Use pong instead to check if spotifyApi is online 2011-12-14 13:01:05 +01:00
Christian Muehlhaeuser
4f4406ffb1 * Indent playlists / stations correctly. This is possibly causing issues with the OS X background color. Needs checking. 2011-12-14 11:24:30 +01:00
Christian Muehlhaeuser
6064b2029e * New sidebar style. Also, first steps towards reorganizing it. 2011-12-14 11:16:22 +01:00
Dominik Schmidt
31fb398b37 Update README concerning Jreen 2011-12-13 00:12:35 +01:00
Jason Herskowitz
3b8deef8c5 New spinner animation 2011-12-11 16:20:52 -05:00
Jeff Mitchell
075a5a0f14 Add some debug 2011-12-10 12:02:02 -05:00
Jeff Mitchell
2a96048b7c This doesn't actually help, but maybe is "correct"...? Or quite possibly not. 2011-12-10 02:46:03 -05:00
Jeff Mitchell
ce13d7fed5 Explicitly call clear on the shared pointer in the playlistinterface destructor 2011-12-10 02:27:32 -05:00
Jeff Mitchell
8ffbebb2b6 Porting of the rest of the non-QSharedPointer playlistinterface pointers 2011-12-10 02:15:14 -05:00
Jeff Mitchell
ce60d46fa6 Register playlistinterface_ptr type 2011-12-09 23:29:21 -05:00
Jeff Mitchell
93a31146b1 Fix logical mistake 2011-12-09 23:20:57 -05:00
Christian Muehlhaeuser
d22bccd9fb * A few cleanups. 2011-12-10 02:02:59 +01:00
Jeff Mitchell
3430535774 First bit of migrating PlaylistInterface* to playlistinterface_ptr
Compiles, but need to fix up signals and slots
2011-12-09 17:19:57 -05:00
Hugo Lindström
3c3c1414fe Allow symlinks in dirtree 2011-12-09 20:37:54 +01:00
Dominik Schmidt
64d220d9c5 Show localized wikipedia context 2011-12-09 03:03:28 +01:00
Christian Muehlhaeuser
41e908bb34 * Updated english translation. 2011-12-07 08:51:18 +01:00
Christian Muehlhaeuser
94b7ff59d5 * Updated german translation. 2011-12-07 08:47:28 +01:00
Christian Muehlhaeuser
0ea928ade7 Merge pull request #67 from zizzfizzix/tr
small changes to Polish translation once again
2011-12-06 23:30:49 -08:00
Kuba Serafinowski
d1db5441df small changes to Polish translation once again 2011-12-07 07:29:14 +00:00
Christian Muehlhaeuser
45f7cd2938 * Fixed button label. 2011-12-07 07:55:50 +01:00
Christian Muehlhaeuser
41b3ebf4e4 * Auto-switch to super collection mode when no official info is available on artist & album pages. 2011-12-07 07:19:30 +01:00
Christian Muehlhaeuser
330efc5833 * Source/style cleanup. 2011-12-05 21:10:32 +01:00
Christian Muehlhaeuser
6f4a26220d * Search for more albums / artists. 2011-12-05 21:07:53 +01:00
Christian Muehlhaeuser
919644d07a * Query's toString() supports fulltext search queries, now. 2011-12-05 21:07:09 +01:00
Christian Muehlhaeuser
30cabb304c * Implement limiting for index searching. 2011-12-05 21:05:05 +01:00
Jeff Mitchell
b80230c962 Use system proxy when no proxy is set, for windows/mac 2011-12-05 13:02:56 -05:00
Dominik Schmidt
e8563b119b Fix compilation on OSX 2011-12-05 16:32:45 +01:00
Dominik Schmidt
83051cd554 Split ExternalResolver 2011-12-05 14:25:05 +01:00
Dominik Schmidt
cfce10fbec Split Resolver classes into separate files 2011-12-05 14:25:04 +01:00
Christian Muehlhaeuser
09087e2a8e * Safe approach to prevent resizing of album items. 2011-12-05 10:15:07 +01:00
Christian Muehlhaeuser
3520a7d0d8 * Slight optimation. 2011-12-05 10:04:18 +01:00
Christian Muehlhaeuser
7b4d08a7f5 * Don't prioritize album-less tracks in edge cases. 2011-12-05 09:42:00 +01:00
Christian Muehlhaeuser
7e6b543a70 * Use bold font for painting artist items in the 'still so-wrongly-called' AlbumItemDelegate. 2011-12-05 08:34:55 +01:00
Christian Muehlhaeuser
41c79b931f * In Collection view with filter set: Don't jump to the selected item when expanding an artist. 2011-12-05 08:33:30 +01:00
Christian Muehlhaeuser
477202aa47 Merge pull request #66 from zizzfizzix/tr
update Polish translation
2011-12-04 22:54:24 -08:00
Christian Muehlhaeuser
ff0d9a9837 Merge pull request #65 from mgnz/master
Updated spanish translation... again!
2011-12-04 22:54:15 -08:00
Christian Muehlhaeuser
2c83807efc * Fixed DropJob's query counter as discussed on GitHub. 2011-12-05 07:53:36 +01:00
Christian Muehlhaeuser
3517726d92 * Basic implementation of artist & album searches. 2011-12-05 07:51:24 +01:00
Christian Muehlhaeuser
a00ea52b0b * Moved Attica to port 80. 2011-12-05 02:50:33 +01:00
Kuba Serafinowski
e4b11807f2 update Polish translation 2011-12-04 21:20:37 +00:00
mgnz
7b521b0690 Update lang/tomahawk_es.ts 2011-12-04 17:35:25 +01:00
mgnz
8f14777831 Fixed some typo errors. 2011-12-04 17:31:10 +01:00
Christian Muehlhaeuser
ef3246db9c * Fixed another sidebar issue with gtk styles. 2011-12-04 13:02:22 +01:00
Christian Muehlhaeuser
7726302103 * Fixed sidebar issues with gtk styles. 2011-12-04 12:55:06 +01:00
Christian Muehlhaeuser
2b85536625 * URL encode the mpris2 ArtUrl. 2011-12-04 07:58:37 +01:00
Christian Muehlhaeuser
2bfa77c1ff * Potential fix for TWK-618: ArtUrl not properly encoded. 2011-12-04 07:48:27 +01:00
Christian Muehlhaeuser
9d4974b174 * Remove nonsense. 2011-12-04 07:32:49 +01:00
Christian Muehlhaeuser
eaf9d806d1 * Give instant user feedback when scanner gets kicked off. 2011-12-04 07:31:46 +01:00
Christian Muehlhaeuser
152b07d816 * Updated ChangeLog. 2011-12-04 06:39:33 +01:00
Christian Muehlhaeuser
441fa10add Merge pull request #64 from mgnz/master
Updated spanish translation
2011-12-03 21:31:50 -08:00
Christian Muehlhaeuser
261149287c * Renamed Tomahawk / Music Player menu to Controls. Let's see how that feels cross-platform. 2011-12-04 05:54:33 +01:00
Leo Franchi
80320fcf4e More regression hunting: fix dynamic playlist spinner disappearing prematurely 2011-12-03 16:09:50 -08:00
Leo Franchi
de6c80f04d Fix regression from model refactor that changed function name 2011-12-03 15:15:36 -08:00
mgnz
a4891bc64d Update lang/tomahawk_es.ts 2011-12-03 16:17:54 +01:00
mgnz
13ecdb04ee Update lang/tomahawk_es.ts 2011-12-03 16:13:10 +01:00
Christian Muehlhaeuser
633dddf281 * Fixed tomahawk:// protocol handler on Windows (Firefox related). 2011-12-02 13:19:02 +01:00
Christian Muehlhaeuser
8941036105 * Fixed auto-scrolling with the current selection. 2011-12-02 13:02:28 +01:00
Christian Muehlhaeuser
f46d0803be * Made sure lists resolve top-to-bottom. 2011-12-02 10:00:07 +01:00
Christian Muehlhaeuser
eec1e56dda * Try to fix dupe Tomahawk menu on OSX. 2011-12-01 15:34:24 +01:00
Christian Muehlhaeuser
324f8a9515 * Show an error dialog when a playback problem occurred. 2011-12-01 08:09:54 +01:00
Christian Muehlhaeuser
793babcd12 * Fixed TWK-418: Context menu for now playing track. 2011-12-01 07:21:53 +01:00
Christian Muehlhaeuser
8fb15633d3 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-12-01 06:08:02 +01:00
Dominik Schmidt
4b77b9525f Don't install .protocol file anymore, if it's not enforced with LEGACY_KDE_INTEGRATION. Does anyone have Qt >= 4.7 and KDE =< 4.6.0 2011-11-30 18:15:41 +01:00
Dominik Schmidt
eff08a7cbd Fix opening URLs with gvfs-open, why does firefox ignore it? why does epiphany ignore it? ... 2011-11-30 14:57:39 +01:00
Christian Muehlhaeuser
6c8550bf64 * Bit of spring cleanup. 2011-11-30 11:49:01 +01:00
Dominik Schmidt
29239e08d3 Boo for too pedantic desktop-file-validate 2011-11-29 14:02:18 +01:00
Dominik Schmidt
34677a9c85 Merge branch 'master' of git://github.com/tomahawk-player/tomahawk 2011-11-29 13:42:52 +01:00
Dominik Schmidt
66914824af Add MimeType=x-scheme-handler/tomahawk to tomahawk.desktop 2011-11-29 13:42:42 +01:00
Christian Muehlhaeuser
08f6970303 Merge pull request #63 from omniwired/master
Updated to the lastest version and polished some lines
2011-11-29 00:25:05 -08:00
OmniWired
4878784ebe * Updated to lastest version and polished some lines 2011-11-29 04:34:37 -03:00
Dominik Schmidt
7984d38628 Remove now unneeded files from windows installer 2011-11-29 03:08:45 +01:00
Dominik Schmidt
b5ab183504 Use new phonon(-vlc) builds in update-vlc.sh, yay for umlauts and no-track-skipping (hopefully) 2011-11-29 02:53:24 +01:00
Dominik Schmidt
91f8ab27ee ifdefs--: abstract QDesktopServices away once again in TomahawkSettings 2011-11-28 19:39:08 +01:00
Christian Muehlhaeuser
7c9fc46caa * Don't accept 0.0.0.0 as a visible / valid address. 2011-11-28 16:36:01 +01:00
Christian Muehlhaeuser
48d07a679b * Proper fix for TWK-422. 2011-11-28 15:54:53 +01:00
Christian Muehlhaeuser
f4d1bc8dfb * Potential fix for TWK-422: Disappearing (white on white) sidebar items for some styles (e.g. gtk/gnome). 2011-11-28 15:43:28 +01:00
Christian Muehlhaeuser
5c380b0b8c * Tomahawkified some sources. 2011-11-28 15:26:37 +01:00
Christian Muehlhaeuser
9787e3bc08 * Updated German translation. 2011-11-28 15:15:24 +01:00
Christian Muehlhaeuser
5e15808508 * Updated German translation. 2011-11-28 14:58:31 +01:00
Leo Franchi
9a4d4cc409 remove unneeded debug 2011-11-28 08:31:26 -05:00
Christian Muehlhaeuser
fd936617d7 * Fixing assert in JobStatusModel. 2011-11-28 14:31:07 +01:00
Christian Muehlhaeuser
ef02bd8fae * Updated german translation. 2011-11-28 11:45:39 +01:00
Christian Muehlhaeuser
ffe30498cb * More natural job view order. 2011-11-28 10:37:55 +01:00
Christian Muehlhaeuser
2585467f0a * Animate the JobStatusView when it changes its size. 2011-11-28 10:22:44 +01:00
Christian Muehlhaeuser
68cf583e4b * Remove silly deleteLater in M3uLoader. 2011-11-28 09:54:04 +01:00
Christian Muehlhaeuser
e2336b595d * Fixed M3U loader not appending tracks to an existing playlist. 2011-11-28 09:51:20 +01:00
Christian Muehlhaeuser
5911b51d05 * Fixed storing playlists after directly dropping stuff on the PlaylistModel. 2011-11-28 09:29:55 +01:00
Christian Muehlhaeuser
9e23315972 * Added a splitter to SourceInfoWidget. 2011-11-28 09:05:59 +01:00
Christian Muehlhaeuser
e536157a4f * Quietened up a bit. 2011-11-28 08:56:18 +01:00
Christian Muehlhaeuser
c850fa3520 * Fixed TWK-556: Auto switch to super collection mode if we don't have any 'offical' information available. 2011-11-28 08:16:43 +01:00
Christian Muehlhaeuser
a8b655fef8 * Fixed TWK-559: Be more consistent with our GUI text. 2011-11-28 06:45:29 +01:00
Christian Muehlhaeuser
3ed443456a * Support Footnotes in TreeViews. 2011-11-28 06:32:20 +01:00
Dominik Schmidt
0a46febf36 Disable unreachable code path in servent which depends on QtGui 2011-11-28 03:31:42 +01:00
Christian Muehlhaeuser
956243e570 * Center overlay widgets before showing them the first time. 2011-11-27 01:11:21 +01:00
Christian Muehlhaeuser
b86c0f5c5e * Added a few overlay info messages. 2011-11-26 09:59:27 +01:00
Christian Muehlhaeuser
7b96505d27 * Improved file scanning situation a bit. 2011-11-26 09:10:51 +01:00
Leo Franchi
ba80899ee5 Remove upcoming tracks not from selected but from playing item 2011-11-25 14:34:35 -05:00
Leo Franchi
f9b18a9c26 Update the tree on mac after /Volumes is shown to avoid a race condition 2011-11-25 14:30:49 -05:00
Hugo Lindström
ed306b00f0 Create playlist from M3U 2011-11-24 15:02:33 +01:00
Christian Muehlhaeuser
f38f6b2eed * Coding-style fixes for DropJob. 2011-11-24 13:57:25 +01:00
Christian Muehlhaeuser
5929adfa57 * Support a few more URL shorteners: ow.ly, fb.me, itun.es, tinyurl.com. 2011-11-24 13:30:20 +01:00
Christian Muehlhaeuser
758bb74603 * Updated german and english translations. 2011-11-24 12:57:12 +01:00
Christian Muehlhaeuser
7d33ca1dec * Removed obsolete m_isPlayingHttp boolean. 2011-11-24 10:30:34 +01:00
Frank Osterfeld
953a9d2f71 fix warnings (delete + incomplete type, initializer list ordering) 2011-11-24 08:23:50 +01:00
Christian Muehlhaeuser
c90f0efad2 * Try to fix headless compiling. 2011-11-24 06:33:04 +01:00
Christian Muehlhaeuser
e4ad727a6f * Fixed a few more translations. Could fix TWK-591. 2011-11-24 06:25:00 +01:00
Christian Muehlhaeuser
97e69f9dcc * Added debugging output to identify Windows special char issue. 2011-11-24 05:29:01 +01:00
Christian Muehlhaeuser
e5086f5b49 * Crash reporter can now be disabled in the settings. 2011-11-24 02:41:18 +01:00
Christian Muehlhaeuser
c5236b897e * Updated ChangeLog. 2011-11-24 01:50:10 +01:00
Christian Muehlhaeuser
383ae37ce5 * Updated ChangeLog. 2011-11-24 01:50:10 +01:00
Christian Muehlhaeuser
cd753265a1 * Updated ChangeLog. 2011-11-24 01:50:10 +01:00
Christian Muehlhaeuser
9a0b3409d9 * Use default locale if translation can't be found. 2011-11-24 01:30:16 +01:00
Christian Muehlhaeuser
8d620363b7 * Disable UbuntuUnityHack until it's working properly. 2011-11-24 01:24:12 +01:00
Christian Muehlhaeuser
1db24d9c01 Merge pull request #61 from omniwired/master
Updated the .ts to the lastest source version
2011-11-23 14:28:25 -08:00
OmniWired
ccd485290e * Updated to lastest version and polished some lines 2011-11-23 19:05:44 -03:00
Hugo Lindström
9f0b412626 Codestyle fix 2011-11-23 22:56:37 +01:00
Hugo Lindström
31945b9017 Begun M3u parsing 2011-11-23 22:53:21 +01:00
Jason Herskowitz
11a6f419aa Update changelog 2011-11-23 16:14:28 -05:00
Christian Muehlhaeuser
5f8b56ff85 * Support .oga files (ogg mimetype). 2011-11-23 20:50:15 +01:00
Christian Muehlhaeuser
fc5bf30a79 * Prevent stuck now playing indicator. 2011-11-23 12:28:34 +01:00
Christian Muehlhaeuser
8cff1f7b76 * Only open database once. Might speed up loading a bit. 2011-11-23 11:37:36 +01:00
Christian Muehlhaeuser
86860b6da3 * Should hopefully fix Windows SettingsDialog. 2011-11-23 10:46:13 +01:00
Christian Muehlhaeuser
1d3d7738ae * Try fixing SettingsDialog on Windows. 2011-11-23 10:32:48 +01:00
Christian Muehlhaeuser
f3f1c2d814 * Forgot to rename crash reporter in one more place. 2011-11-23 10:22:13 +01:00
Christian Muehlhaeuser
e63eef8faf * Updated new crash reporter binary name in release scripts. 2011-11-23 10:12:09 +01:00
Christian Muehlhaeuser
cb3a4cf66b * Call ensurePolished before creating buttons in SettingsDialog. 2011-11-23 09:57:08 +01:00
Christian Muehlhaeuser
cf771ae94b * DRY: Cleaned up DropJob / ShortenedLinkParser & handling spoti.fi urls now. 2011-11-23 09:33:31 +01:00
Christian Muehlhaeuser
1b09361c51 * DRY: Moved md5() helper method to TomahawkUtils. 2011-11-23 09:18:31 +01:00
Dominik Schmidt
6172ef3df4 * Merged FindCLucene fix. 2011-11-23 06:39:38 +01:00
Christian Muehlhaeuser
a0cda5cce6 * Moved charts & spotify parser to port 80. 2011-11-23 06:32:29 +01:00
Christian Muehlhaeuser
445d6ca84c * Prevented over-zealous assert in PlaylistModel. 2011-11-23 06:20:04 +01:00
Dominik Schmidt
2be3ebd90b * Merged CrashReporter changes into master. 2011-11-23 06:14:26 +01:00
Dominik Schmidt
8a9c8278e2 Search for *_tomahawkresolver in CMAKE_INSTALL_LIBEXECDIR 2011-11-23 05:47:49 +01:00
Christian Muehlhaeuser
7c66269ac1 * Look for CrashReporter in local and global dirs. 2011-11-23 05:47:43 +01:00
Christian Muehlhaeuser
30dcf3cebb * More reliable and easier to read version check. Moved to TomahawkUtils, too. 2011-11-23 05:32:46 +01:00
Christian Muehlhaeuser
f5d2251312 * Made sure we don't duplicate connections in WelcomeWidget. 2011-11-23 05:03:58 +01:00
Christian Muehlhaeuser
004ea967ad * Use the proper color for selected playlist items on the Dashboard. 2011-11-23 05:00:47 +01:00
Christian Muehlhaeuser
55ab72ee76 * Use the proper highlight color for painting hovered artist names in the AlbumItemDelegate. 2011-11-23 04:54:16 +01:00
Christian Muehlhaeuser
54b8def06a * Update SourceInfoWidget when collection changes. 2011-11-23 04:38:07 +01:00
Christian Muehlhaeuser
778f352c0f * Less furious logging. 2011-11-23 04:18:40 +01:00
Christian Muehlhaeuser
34fab0f210 * Update recent additions on welcome page whenever a collection changes. 2011-11-23 04:18:39 +01:00
Christian Muehlhaeuser
ddfe32eec3 Merge pull request #60 from omniwired/master
Spanish Translation
2011-11-22 18:05:32 -08:00
OmniWired
cf678ce89f * Added spanish translation. 2011-11-22 22:36:55 -03:00
Christian Muehlhaeuser
4cbcbd2cda Merge pull request #59 from zizzfizzix/tr
PL translation update + some fixes and cleanups
2011-11-22 16:49:44 -08:00
Kuba Serafinowski
8cba2c4727 small update 2011-11-23 00:00:11 +00:00
Kuba Serafinowski
24d524f558 moar strings to translate! 2011-11-23 00:00:11 +00:00
Kuba Serafinowski
f060b6fd6b update PL translation file 2011-11-23 00:00:11 +00:00
Kuba Serafinowski
2a98857af1 remove unneeded strings 2011-11-23 00:00:11 +00:00
Kuba Serafinowski
147364de84 tiny typo fix 2011-11-23 00:00:10 +00:00
Jeff Mitchell
9b895034df Hopefully fix a case where the seek slider travels on when Phonon is
buffering
2011-11-22 16:53:35 -05:00
Jeff Mitchell
ef575c4d6d More explicitly set DefaultProxy and NoProxy in respective cases, may
help jayniz
2011-11-22 12:54:14 -05:00
Leo Franchi
31a67ecd42 Merge pull request #58 from rotzbouw/master
Enhance resolver version comparison to a third point
2011-11-22 07:39:09 -08:00
Thierry Goeckel
5bc0a496ed Enhance version upgrading to include a third point. 2011-11-22 16:30:39 +01:00
Leo Franchi
38a7051bba Fix loading XSPFs with spaces in their name. 2011-11-22 08:57:04 -05:00
Christian Muehlhaeuser
b5167db7a3 * Revert back to using system locale. 2011-11-22 08:29:49 +01:00
Christian Muehlhaeuser
b62dd8e96a * Add a default english translation. Fallback to 'en' if locale is set to 'C'. 2011-11-22 07:37:09 +01:00
Christian Muehlhaeuser
f023bb2bc7 * Fixed translation issue in TomahawkUtils. 2011-11-22 07:24:20 +01:00
Christian Muehlhaeuser
8a4e75e8fb * Fixed window title in AudioControls. 2011-11-22 06:35:44 +01:00
Christian Muehlhaeuser
7197040026 Merge pull request #55 from zizzfizzix/translation_pl
add Polish translation
2011-11-21 20:34:46 -08:00
Christian Muehlhaeuser
c9bf8eb349 * Increased size of Get-New-Resolvers dialog. 2011-11-22 05:23:46 +01:00
Christian Muehlhaeuser
0fba1504f0 * Cleanup scanner if there were no new and no obsolete tracks found. 2011-11-22 04:16:27 +01:00
Christian Muehlhaeuser
1347736ead * Don't let the MusicScanner emit finished before all our stuff actually ended up in the database. 2011-11-22 04:07:38 +01:00
Christian Muehlhaeuser
360748dd0b * Re-enable grouping of dynamic playlist revisions. 2011-11-22 02:04:42 +01:00
Christian Muehlhaeuser
18a3f15101 * Remove bottom label of steering controls. Changes now take effect on clicking the apply button. 2011-11-22 02:00:57 +01:00
Christian Muehlhaeuser
eba1505e1d * Don't remove current index when restarting a track by activating it directly.
* Don't create new playlist revisions for a list that doesn't belong to you.
2011-11-22 01:52:24 +01:00
Christian Muehlhaeuser
0f21cde318 * Fixed crashing on playing from queue. 2011-11-22 01:36:22 +01:00
Christian Muehlhaeuser
1c1b6ea940 * Fixed updating result-hints for out-dated dynamic playlists. 2011-11-21 21:52:58 +01:00
Christian Muehlhaeuser
4f55c6aa9a * Fixed compiling on Fedora 16. 2011-11-21 20:24:40 +01:00
Christian Muehlhaeuser
83d48c99aa * Don't overwrite friendlyname with an empty one. 2011-11-21 18:04:03 +01:00
Dominik Schmidt
40248965be Add missing files 2011-11-21 16:15:54 +01:00
Dominik Schmidt
584fc8a1b6 ifdefs--: split TomahawkSettings 2011-11-21 16:14:04 +01:00
Dominik Schmidt
3d0421b0a6 ifdefs--: not needed anymore 2011-11-21 16:14:04 +01:00
Christian Muehlhaeuser
633ade23fc * Assert on empty friendlynames. 2011-11-21 14:46:29 +01:00
Leo Franchi
f6d377275b Merge pull request #57 from crabmanX/xspfdialog
fix xspf import QFileDialog filter
2011-11-21 05:05:13 -08:00
Leo Franchi
5053c3cc7a Don't return last factory result instead of correct one 2011-11-21 07:59:43 -05:00
Kilian Lackhove
eb03e2c912 fix xspf import QFileDialog filter 2011-11-21 13:55:32 +01:00
Dominik Schmidt
699a6583b2 Merge pull request #56 from zizzfizzix/TWK-583
Fix #TWK-583
2011-11-21 04:50:04 -08:00
Kuba Serafinowski
a760577924 fix TWK-583 for jabber too 2011-11-21 12:47:13 +00:00
Kuba Serafinowski
5e40409ed9 fix for TWK-583 2011-11-21 12:31:19 +00:00
Hugo Lindström
7eb361f514 Fix for broken compile 2011-11-21 08:43:06 +01:00
Christian Muehlhaeuser
3a500a6303 * Always set current name as friendlyname. 2011-11-21 06:45:32 +01:00
Christian Muehlhaeuser
de48898d34 * Fixed WelcomeWidget. 2011-11-21 05:21:57 +01:00
Leo Franchi
6b23a58678 Fix one compile error 2011-11-20 23:08:59 -05:00
Christian Muehlhaeuser
d650ea45b5 * Refactored Track-, Collection-, PlaylistModel. 2011-11-21 05:01:00 +01:00
Leo Franchi
3f139addc3 Add a 0.3.2 changelog 2011-11-20 22:51:57 -05:00
Leo Franchi
8488eac070 TWK-531: Show (-) on new item after deleting an item 2011-11-20 22:39:00 -05:00
Leo Franchi
1a338aa602 Reclaim copyright :) 2011-11-20 22:39:00 -05:00
Dominik Schmidt
118b074aa3 What was that include for boostcrap again? 2011-11-21 04:14:05 +01:00
Dominik Schmidt
4f46ba3e61 style++ 2011-11-21 04:05:24 +01:00
Dominik Schmidt
2bba9ba000 ifdefs--: make pipeline ready for tomahawk-core 2011-11-21 03:57:26 +01:00
Dominik Schmidt
4c2bb1dd28 Fix headless 2011-11-21 02:41:09 +01:00
Dominik Schmidt
8849577f82 ifdefs--: Same for QtScriptResolver, QtWebkit needs QtGui :( 2011-11-21 02:41:09 +01:00
Dominik Schmidt
cef3f3ef0d ifdefs--: GlobalActionManager is not part of the headless build anyways 2011-11-21 02:41:09 +01:00
Leo Franchi
0dda262c18 Clear upcoming station tracks when steering, and re-fetch two 2011-11-20 20:06:51 -05:00
Leo Franchi
eb7845092a use QFileSystemModel instead of deprecated QDirModel, and show /Volumes on mac 2011-11-20 18:05:02 -05:00
Leo Franchi
24bf86fc37 Reset source last played when going offline---not functional yet 2011-11-20 18:02:39 -05:00
Dominik Schmidt
ea7e641bdd ifdefs--: Move ActionCollection initialization code from AudioEngine to
Ac
2011-11-20 23:32:39 +01:00
Dominik Schmidt
0f3ba435d9 lalalalala 2011-11-20 22:39:50 +01:00
Dominik Schmidt
d199fe5ff0 ifdefs--: split TomahawkUtils 2011-11-20 22:35:34 +01:00
Leo Franchi
c63e56712e Use plugins/ instead of PlugIns/ as vlc hard-codes it internally. 2011-11-20 16:17:42 -05:00
Christian Muehlhaeuser
a14b3cf49a Merge pull request #52 from yeager/master
Enable Swedish translation
2011-11-20 12:08:20 -08:00
Leo Franchi
14f75a0f8c Increment job count when creating a new xspf job 2011-11-20 14:26:17 -05:00
Jeff Mitchell
52df44c40c Merge branch 'master' into serventfixing 2011-11-20 13:14:06 -05:00
Kuba Serafinowski
0fb232216c add Polish translation
initially ~76% done
2011-11-20 15:27:55 +00:00
Dominik Schmidt
0449557ab2 Merge pull request #54 from zizzfizzix/littlefixes
Littlefixes
2011-11-20 05:24:01 -08:00
Kuba Serafinowski
00e4faa690 make the string extract with lupdate 2011-11-20 13:07:26 +00:00
Kuba Serafinowski
9e354b4392 match the text with buttons in the dialog 2011-11-20 13:07:26 +00:00
Hugo Lindström
743bffc9a6 Try to append xspf 2011-11-20 11:26:04 +01:00
Hugo Lindström
23d30e6197 Unbreak url drops 2011-11-20 09:23:38 +01:00
Hugo Lindström
302bdd4c6d Fix for local xspf dropjob, also allow remotes 2011-11-19 22:29:39 +01:00
Daniel Nylander
3a53f96119 Enabling Swedish translation 2011-11-19 17:03:10 +01:00
Christian Muehlhaeuser
42f5ef4bc9 Merge pull request #51 from yeager/master
Swedish translation
2011-11-19 07:29:55 -08:00
Daniel Nylander
e7df308d2a Added Swedish translation 2011-11-19 16:25:58 +01:00
Christian Muehlhaeuser
c533778f3b Merge pull request #50 from zizzfizzix/cmake_quazip_fix
Fix misleading cmake message - thanks zizzfizzix!
2011-11-19 06:47:10 -08:00
Kuba Serafinowski
8defaa6be5 fix misleading cmake message 2011-11-19 13:29:40 +00:00
Leo Franchi
fe97fbe977 Show tooltip with full text in job view 2011-11-18 21:34:55 -05:00
Leo Franchi
96d8d8b2b2 Make clicking back to current track work on dashboard, charts, and artist/album pages 2011-11-18 21:12:29 -05:00
Leo Franchi
115c618fc2 Don't show speaker next to a playlist if not paused or playing 2011-11-18 21:12:29 -05:00
Jeff Mitchell
46793bbf99 Do the connection name fixing in a different way; always end up with a
QHostAddress.
2011-11-18 18:18:19 -05:00
Jeff Mitchell
ed11593b16 Remove some debugging 2011-11-18 17:35:23 -05:00
Jeff Mitchell
7cc4632761 Lots of debug and half the fixes for fixing hostnames 2011-11-18 17:12:45 -05:00
Jeff Mitchell
362f8fc622 Add application proxy factory back in, only have servent use noproxy
in favor of default proxy, as opposed to when a SOCKS proxy is set
2011-11-18 15:24:51 -05:00
Leo Franchi
708668ea0a Always clear spinner when no albums found to load in albumview 2011-11-18 13:04:04 -05:00
Leo Franchi
80e1946fa4 Only show JS errors in tomahawk debug builds 2011-11-18 12:48:36 -05:00
Christian Muehlhaeuser
85d70f3408 * Fixed TWK-579: Proper default width for the sidebar. 2011-11-18 17:01:57 +01:00
Christian Muehlhaeuser
b9537802e3 * This should fix sources being stuck in 'Parsing'. 2011-11-18 11:39:47 +01:00
Leo Franchi
0c0a2ea55c Put delcaration in ifdef 2011-11-17 14:37:21 -05:00
Leo Franchi
ca14fbf0aa Automatically upgrade resolvers 2011-11-17 14:19:11 -05:00
Jeff Mitchell
9f1ec0ce93 More cleanup, more actioncollectionifying, and fix a few signals 2011-11-17 13:26:50 -05:00
Jeff Mitchell
9a3cc63700 Move some more actions to the action collection, and remove some
unnecessary member variables from sourcetreeview.
2011-11-17 12:38:26 -05:00
Leo Franchi
9aaadad95b Set the timer with track duration calculated in 2011-11-16 23:07:15 -05:00
Leo Franchi
3bf6682fce fix rdio track loading 2011-11-16 23:06:35 -05:00
Leo Franchi
9f009f5979 Add an "apply steering" button to make it clearer how to steer
Remove some super spammy debug
2011-11-16 22:41:40 -05:00
Leo Franchi
cb072fcf2c Manually replace + with " " as QUrl::queryItems doesn't do it for us... 2011-11-16 22:41:40 -05:00
Leo Franchi
5a94949b94 Don't hook up signals twice for loading xspf 2011-11-16 22:41:40 -05:00
Leo Franchi
589202bde7 Make surer to show playlist once loaded 2011-11-16 22:41:40 -05:00
Leo Franchi
6dd12f1940 Don't show drop indicator for playlists in sidebar and always create new ones 2011-11-16 22:41:40 -05:00
Christian Muehlhaeuser
c5a50849ec * Added debug output to figure out naming weirdness. 2011-11-17 03:23:19 +01:00
Leo Franchi
6a68a1aa1d Make source visible in audiocontrols on os x 2011-11-16 17:46:49 -05:00
Thierry Göckel
aaa2417e74 Fix returning of external IP address for some routers. 2011-11-16 22:37:31 +01:00
Dominik Schmidt
add5308bc3 WIP: headless: fix crashes in sipjabber 2011-11-16 15:21:14 +01:00
Hugo Lindström
b431c34d5f Add cache for all charts. Later on move spotify and hypem to charts api. 2011-11-16 14:55:30 +01:00
Dominik Schmidt
4ba59c07f9 oops 2011-11-16 14:03:46 +01:00
Dominik Schmidt
681521e5a5 WIP: headless: compiles and links :) 2011-11-16 14:01:46 +01:00
Hugo Lindström
8731665257 Adding cache for charts 2011-11-16 12:26:02 +01:00
Christian Muehlhaeuser
e406fb90a9 * Fixed negative time values showing up in GUI. 2011-11-16 05:56:05 +01:00
Christian Muehlhaeuser
5dabdd73a1 * Make SetPlaylistRevision DBCmds groupable. 2011-11-16 05:13:56 +01:00
Christian Muehlhaeuser
179d84c39b * Set stats for the right collection. 2011-11-16 04:54:52 +01:00
Christian Muehlhaeuser
e5636a446e * Introducing groupable DatabaseCommands. 2011-11-16 04:37:29 +01:00
Christian Muehlhaeuser
27c7b3fc17 * Improved collection syncing.
* Improved dupe detection.
* Prevent sources from being stuck syncing.
2011-11-16 02:36:09 +01:00
Jeff Mitchell
7e35961874 Fix metatype registration of InfoStringHash 2011-11-15 16:03:52 -05:00
Dominik Schmidt
c0688dfc1f WIP: headless: libtomahawk compiles, but doesnt link 2011-11-15 05:30:03 +01:00
Dominik Schmidt
f6078403e0 WIP: headless 2011-11-15 05:10:35 +01:00
Leo Franchi
0569ee0f1a Don't accept button press events as well as release when handling latches 2011-11-14 16:03:57 -05:00
Jeff Mitchell
7badddb99c hacky fix for Jreen needing the application proxy set. Really we need to
get them to accept their own QNAM
2011-11-14 13:26:05 -05:00
Jeff Mitchell
d0e0d53ee7 Handle the worker/cache threads better in InfoSystem, and re-enable
deletion on shutdown, so we can test in windows nightlies.
2011-11-14 11:40:59 -05:00
Leo Franchi
6e176c77a6 Don't create QNRs for null urls, let audioengine handle it properly 2011-11-13 22:28:02 -05:00
Leo Franchi
ba8cfc3e91 Revert "Skip to next track if we have a QNR and it emits a failed signal"
This reverts commit 9418fd0fb8.
2011-11-13 22:27:49 -05:00
Leo Franchi
2f97ff63f3 Shrink font for playlist author 2011-11-13 15:50:26 -05:00
Leo Franchi
641759c362 Hide connect warning 2011-11-13 15:49:59 -05:00
Leo Franchi
ae938cf04c Add 0.3.1 fixes to Changelog 2011-11-13 14:06:55 -05:00
Christian Muehlhaeuser
8f13fcdda6 * Updated ChangeLog. 2011-11-13 19:27:13 +01:00
Christian Muehlhaeuser
29bca56e56 * Bumped version to 0.3.99. 2011-11-13 19:26:33 +01:00
Christian Muehlhaeuser
297b230669 * Force an index update after 0.3.1 upgrade. 2011-11-13 19:15:37 +01:00
Christian Muehlhaeuser
1c6c52056f * 'Fixed' Windows shutdown crash. 2011-11-13 18:39:00 +01:00
Dominik Schmidt
25bb7bd547 Remove unneccessary toString conversion 2011-11-13 17:22:02 +01:00
Kilian Lackhove
8c175b88c5 add command line option to hide main window on startup 2011-11-12 12:15:52 -05:00
Christian Muehlhaeuser
85c7cb4186 * Fixed creating index when there is only a local source. 2011-11-11 23:27:52 +01:00
Leo Franchi
09a7d790ad Only do setenv on linux, that's theonly time we'll have unity anyway 2011-11-11 17:04:53 -05:00
Leo Franchi
d49a43709d Hide red latch headphones on local source if the source you are latched on to goes offline 2011-11-11 17:00:07 -05:00
Leo Franchi
96fe10cc9f Add Unity systray hack from Clementine. 2011-11-11 17:00:07 -05:00
Leo Franchi
8626678d23 Add comment 2011-11-11 17:00:06 -05:00
Leo Franchi
2a27cbde0d Draw the author name as well as avatar in recent playlists 2011-11-11 17:00:06 -05:00
Leo Franchi
1f10444d5c Don't show in global menu in unity. Thanks davidsansome :) 2011-11-11 17:00:06 -05:00
Leo Franchi
1bb8ff97d4 Be a bit more resilient in setting the playlist to rename after creating 2011-11-11 17:00:06 -05:00
Leo Franchi
518546b525 Don't select a temp item when deleting it 2011-11-11 17:00:06 -05:00
Leo Franchi
17e1003714 Hide warning 2011-11-11 17:00:06 -05:00
Christian Muehlhaeuser
011ece182f * Prevent watch for changes interfering with running scan. 2011-11-11 19:46:52 +01:00
Leo Franchi
8e742a06d9 Build sparkle upgrade handler conditionally 2011-11-11 12:24:51 -05:00
Leo Franchi
3c024ab7ac Stop the timer on new track starting 2011-11-11 11:35:34 -05:00
Dominik Schmidt
f216a0fe82 Do some work towards tomahawk headless 2011-11-11 03:44:18 +01:00
Leo Franchi
f9b5bda925 Fix crash on Sparkle update when binary is replaced. 2011-11-10 18:30:22 -05:00
Christian Muehlhaeuser
edf47aefd1 * Bumped version to 0.3.0. 2011-11-10 15:55:08 +01:00
Leo Franchi
203b2b251c Change echonest API key for the win 2011-11-09 17:30:38 -05:00
Jeff Mitchell
987e6b97dc Revert "Go back to previous setNam, but functionality should really be identical."
Also remove some debug

This reverts commit e0177ed895.

Conflicts:

	src/libtomahawk/utils/tomahawkutils.cpp
2011-11-09 15:49:39 -05:00
Jeff Mitchell
4a93e54e63 More debugging, and change around how the static function works 2011-11-09 15:28:39 -05:00
Jeff Mitchell
658201eb98 Revert "This function is probably unnecessary now, remove it"
This reverts commit e9ed034dc7.
2011-11-09 15:19:05 -05:00
Jeff Mitchell
c0e486df3f Add nam debug 2011-11-09 14:48:23 -05:00
Jeff Mitchell
e0177ed895 Go back to previous setNam, but functionality should really be identical. 2011-11-09 14:12:48 -05:00
Jeff Mitchell
b325d9bf0f Don't use lastfm nam anymore, just use our in-built SOCKS support. 2011-11-09 13:00:07 -05:00
Jeff Mitchell
9e01e92839 Revert "First try to fix crash on win"
This reverts commit 2fb7c5c289.
2011-11-09 12:49:14 -05:00
Jeff Mitchell
83c53b7150 Probably a necessary safety measure, although I can only really see this maybe being a problem on close, not startup 2011-11-09 11:51:26 -05:00
Jeff Mitchell
2fb7c5c289 First try to fix crash on win 2011-11-09 11:49:34 -05:00
Jeff Mitchell
e9ed034dc7 This function is probably unnecessary now, remove it 2011-11-09 09:42:13 -05:00
Dominik Schmidt
f88ee0fc82 Don't show connected state in diag dialog, it's lying anyways 2011-11-08 19:44:33 +01:00
Jeff Mitchell
68188a7958 Remove unused variable 2011-11-08 13:08:50 -05:00
Christian Muehlhaeuser
b537a237a8 * Hide empty / 0 values for bitrate, year, age, filesize. 2011-11-08 19:03:00 +01:00
Jeff Mitchell
1fc3c4c2f2 Have lastfmplugin use the proper nam(), and same for echonest...echonest was only being given the nam for the gui thread 2011-11-08 10:39:37 -05:00
Jeff Mitchell
8d695c5091 Create scrobbler on startup 2011-11-08 10:29:17 -05:00
Jeff Mitchell
d3f4046396 Merge remote branch 'origin/master' into proxyrefactor 2011-11-08 10:15:18 -05:00
Christian Muehlhaeuser
b80f3717b8 * Properly exclude queries without album position. 2011-11-08 15:49:09 +01:00
Christian Muehlhaeuser
7f9fc557a9 * Remove debugging output. 2011-11-08 15:30:53 +01:00
Christian Muehlhaeuser
14639337d4 * Fixed album position & ordering for InfoSystem views. 2011-11-08 15:30:19 +01:00
Dominik Schmidt
0c136e6815 Don't show CMD window for CrashReporter 2011-11-08 14:16:30 +01:00
Christian Muehlhaeuser
3057cdab5d Merge branch 'proxyrefactor' 2011-11-08 12:02:39 +01:00
Jeff Mitchell
539f2eb700 Proxies are all we really set on nams, so reset proxy data on all threads when the main thread's nam changes 2011-11-08 04:52:06 -05:00
Jeff Mitchell
4c0c610b15 Refactor a ton of stuff. No crashes, but I'm not convinced it all works properly 2011-11-08 04:42:20 -05:00
Christian Muehlhaeuser
6ec8f127c0 * Fixed freezing when filtering out the current item in a tree-view and trying to advance to the next track. 2011-11-08 10:41:30 +01:00
Jeff Mitchell
5db219d571 Refactor proxy stuff...crashes in proxydialog saveSettings though 2011-11-08 03:08:31 -05:00
Jeff Mitchell
f3eb8fa30a Yikes, how did I write these two lines in the wrong file. So tired. 2011-11-08 00:55:41 -05:00
Jeff Mitchell
f70da74f46 Add private listening status showing 2011-11-07 20:47:04 -05:00
Jason Herskowitz
35bbfac2c5 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-11-07 19:25:44 -05:00
Jason Herskowitz
b304bf008d First pass at a Private Listening icon 2011-11-07 19:24:43 -05:00
Jeff Mitchell
ebe39d9fac Populate private listening option in right-click on your source 2011-11-07 19:14:29 -05:00
Jeff Mitchell
4bafeb34fd Insert private listening actions into Tomahawk menu and tray icon menu.
Some visual feedback would be nice.
2011-11-07 18:45:42 -05:00
Hugo Lindström
8e1cefbbb7 Better use non local source :p 2011-11-08 00:18:39 +01:00
Hugo Lindström
2d4fb5e00b Adding ex.fm + If genre is not empty, use that instead of name 2011-11-08 00:16:50 +01:00
Jeff Mitchell
6e2ac3b931 Merge branch 'master' into privatelistening 2011-11-07 15:27:10 -05:00
Jeff Mitchell
3c7d73d4ae Use queuedconnection for both types of connections for latching, which
makes both work well (eventually, figure out where the bug is that makes
this required)
2011-11-07 15:25:48 -05:00
Christian Muehlhaeuser
fca7d05ed7 Revert "* Show Last.fm login test button on OSX again."
This reverts commit 7c5a4065df.
2011-11-07 21:06:26 +01:00
Jeff Mitchell
cf649cdafe Merge branch 'master' into privatelistening 2011-11-07 14:54:30 -05:00
Christian Muehlhaeuser
7c5a4065df * Show Last.fm login test button on OSX again. 2011-11-07 20:51:46 +01:00
Jeff Mitchell
475633c328 Remove all the QNAM-fuckery, since echonest and liblastfm are probably
good now.

(Note: will be pushing the change to liblastfm to libechonest as well)
2011-11-07 13:52:10 -05:00
Christian Muehlhaeuser
f542e97a70 * Register QList<unit> manually. 2011-11-07 16:33:05 +01:00
Christian Muehlhaeuser
c7ac6b5670 * Don't emit changed() twice in TomahawkSettings. 2011-11-07 15:42:02 +01:00
Leo Franchi
2d92cdade0 oops 2011-11-06 20:33:52 -05:00
Leo Franchi
b53f83aa95 Add fileid to result and rename dbid to trackid 2011-11-06 17:58:33 -05:00
Leo Franchi
fa5728d773 And add files 2011-11-06 17:58:20 -05:00
Leo Franchi
85662bb478 Port echonest catalog sync to new collection add/remove 2011-11-06 17:57:39 -05:00
Jeff Mitchell
a1b3538131 Work towards latch actions -- need to debug corner cases 2011-11-06 14:38:58 -05:00
Christian Muehlhaeuser
06ba09f357 * DbCmd_AddFiles should emit the file-IDs, not the track-IDs. 2011-11-06 19:53:23 +01:00
Jeff Mitchell
f70f61ac2f Add initial actioncollection skeleton 2011-11-06 13:43:23 -05:00
Jeff Mitchell
953a271bee Should really have put it here to begin with -- might well want persistence across restarts 2011-11-06 12:36:48 -05:00
Christian Muehlhaeuser
0ead914d02 * Updated / fixed ChangeLog a bit. 2011-11-06 11:56:43 +01:00
Christian Muehlhaeuser
ac8a4b5a3a * Don't duplicate signal / slot connections in TreeModel. 2011-11-06 11:45:50 +01:00
Christian Muehlhaeuser
e3bb4c9b14 * CrashReporter now also sends Tomahawk.log and the proper version number to our breakpad server. 2011-11-06 07:55:06 +01:00
Christian Muehlhaeuser
d88eaacf8d * Get rid of query_ptrs in Collection. 2011-11-06 06:49:26 +01:00
Jeff Mitchell
1a541c43ad Add in the hooks to control when listening information is sent. Now just need a UI for it... 2011-11-05 20:31:10 -04:00
Jeff Mitchell
edd69b30e0 Start of private listening work 2011-11-05 20:22:23 -04:00
Jeff Mitchell
d85291ae3e Update readme vis a vis QTweetLib 2011-11-05 10:34:09 -04:00
Jeff Mitchell
ff0ebfbcc1 Remove internal qtweetlib 2011-11-05 10:22:50 -04:00
Christian Muehlhaeuser
e0ca2178d0 * Refresh treeviews after adding / removing a collection's tracks. 2011-11-05 14:46:25 +01:00
Leo Franchi
69f1d776eb Revert "Remove the http iofactory. AudioEngine handles http:// urls by giving them to phonon directly. Lets not download an mp3 twice."
This reverts commit 1c14f562ad.
2011-11-04 21:29:45 -04:00
Leo Franchi
2ae503612b Update libechonest version in Readme 2011-11-04 20:01:08 -03:00
Leo Franchi
f53369089a Trim the address we get from upnp in case it's " ", otherwise it's not null 2011-11-04 12:59:38 -04:00
Christian Muehlhaeuser
2f5ebd2071 * Don't get stuck searching for another item if the TreeModel is empty. 2011-11-04 08:05:27 +01:00
Leo Franchi
56cb000130 Changelogify 0.3. Phew! 2011-11-03 23:30:36 -04:00
Leo Franchi
db5313129e Show rated resolver star in yellow, so it's clear what you have rated and can no longer change 2011-11-03 23:30:36 -04:00
Leo Franchi
844eb3868a Make sure to always hide the loading spinner, even if it's on a hidden page 2011-11-03 23:30:36 -04:00
Leo Franchi
1c14f562ad Remove the http iofactory. AudioEngine handles http:// urls by giving them to phonon directly. Lets not download an mp3 twice. 2011-11-03 23:30:36 -04:00
Leo Franchi
b26bd5e296 Don't assert on script output in debug mode, just show the error 2011-11-03 23:30:36 -04:00
Leo Franchi
52b77464f1 Don't re-fetch charts on nam change 2011-11-03 23:30:35 -04:00
Jeff Mitchell
8152207334 Cast and dereference so that the check actually works 2011-11-03 17:43:16 -04:00
Jeff Mitchell
e7826d725e Don't lose settings when you crash...sync immediately 2011-11-03 17:22:10 -04:00
Jeff Mitchell
3523609cad Don't always emit a new nam for plugins when it hasn't actually changed 2011-11-03 16:43:53 -04:00
Leo Franchi
663752010c Fix some rdio stuff 2011-11-02 23:17:13 -04:00
Leo Franchi
d6778a55cf Only animate when visible 2011-11-02 23:17:13 -04:00
Leo Franchi
9418fd0fb8 Skip to next track if we have a QNR and it emits a failed signal 2011-11-02 23:17:13 -04:00
Leo Franchi
124706afab Disable on-hovered stars when mouse moves away, make sure to repaint in that case 2011-11-02 23:17:13 -04:00
Leo Franchi
cf818f64c6 use Show/Hide Footnotes instead of just Footnotes. No other way to distinguish this is actually a button, and be consistent with Show/Hide Queue 2011-11-02 23:17:06 -04:00
Leo Franchi
b94445b32a Remove super spammy debug 2011-11-02 20:42:16 -04:00
Leo Franchi
f025edf095 Possible fix for multiple breadcrumbs. Erase buttons before resettin the model. 2011-11-02 20:41:57 -04:00
Hugo Lindström
09bbc9c28d Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-11-02 14:31:38 +01:00
Hugo Lindström
a98f6db089 Adding Rdio and WeAreHunted to charts 2011-11-02 14:29:34 +01:00
Dominik Schmidt
673fdf1b67 Automatically init && update submodules when using INTERNAL_* 2011-11-02 13:13:37 +01:00
Christian Muehlhaeuser
8ebbb55842 * I see why this broke. Fixed now? 2011-11-02 11:45:33 +01:00
Christian Muehlhaeuser
df31cbbe77 * Should fix mingw compilation. 2011-11-02 11:43:15 +01:00
Leo Franchi
5c700394a8 Try harder to make artist name hover disappear, not perfect yet 2011-11-01 22:27:14 -04:00
Leo Franchi
d442c2158a Show a loading spinner in album views so sourceinfopages etc don't look white for a few seconds 2011-11-01 20:00:52 -04:00
Leo Franchi
11779e2037 Load resolver cache after we know about which resolvers we have 2011-11-01 19:08:52 -04:00
Leo Franchi
855180f905 Fix animations in breadcrumb and remove some dead code 2011-11-01 19:00:45 -04:00
Leo Franchi
372eda8f2f fix rdio icon 2011-11-01 13:53:17 -04:00
Leo Franchi
e941f74f99 Add rdio 2011-11-01 13:06:31 -04:00
Hugo Lindström
4350fad789 Rdio parser for tracks, playlists, artists, albums. WIP 2011-11-01 13:03:31 -04:00
Leo Franchi
cce80ff535 did not mean to commit that debug 2011-10-31 17:16:45 -04:00
Leo Franchi
c82845d22a Fix offset querylabel due to wrong fontmetrics 2011-10-31 17:15:52 -04:00
Leo Franchi
7ab68fb418 Show the same mode as the source when clicking into an album from the collection 2011-10-30 22:36:14 -04:00
Leo Franchi
ae56d51076 Properly escape the ö in Hugo's name 2011-10-30 22:13:59 -04:00
Leo Franchi
aa8898a720 Do better th an QSizePolicy::Fixed by setting min/max heights too 2011-10-30 21:57:55 -04:00
Leo Franchi
e9ab459b30 Always accept playlist drops on the sidebar 2011-10-30 21:32:49 -04:00
Leo Franchi
65779b18eb Properly sort 2011-10-30 21:07:39 -04:00
Leo Franchi
ca0166d8fd Set the playlist in audioengine to null when setting the playlist to null 2011-10-30 20:52:51 -04:00
Leo Franchi
5f62c1abb2 Use the no-background cover image when there's no shadow 2011-10-30 20:52:51 -04:00
Leo Franchi
f94fd218a0 Fix some event loop reentrancy madness by creating the playlist on the event loop 2011-10-30 20:52:51 -04:00
Leo Franchi
f3dfc9631c fix some playlist drops on sidebar stuff 2011-10-30 20:52:51 -04:00
Leo Franchi
44fa85af6b sort chart dropdowns 2011-10-30 20:52:51 -04:00
Leo Franchi
cd04d027a0 support and fix search tomahawk link 2011-10-30 20:52:51 -04:00
Leo Franchi
7829be0936 darker background for highlight on osx 2011-10-30 20:52:01 -04:00
Dominik Schmidt
b98d591077 Remove unneeded include directory 2011-10-30 23:49:34 +01:00
Leo Franchi
29fa5c4cd9 Make artist names in album cover view clickable 2011-10-30 18:03:47 -04:00
Leo Franchi
70608158fe less verbose debug 2011-10-30 18:03:47 -04:00
Leo Franchi
106740abca Fix bug where all stars could actr as if they were hovered in all the items 2011-10-30 18:03:47 -04:00
Jason Herskowitz
1c50db9ce9 Re-add CD artwork with no jewel case so we can use if if we need it in certain places 2011-10-30 17:37:22 -04:00
Leo Franchi
2dfa25fbee Add support for tomahawk://view/album and tomahawk://view/artist urls 2011-10-30 15:23:50 -04:00
Leo Franchi
fa577aa018 Don't start playing if clicking a tomahawk link when paused 2011-10-30 15:02:48 -04:00
Leo Franchi
0e83e47f1a Don't make infobar bigger than needed 2011-10-30 14:57:45 -04:00
Leo Franchi
c1ee97fc40 Show a querylabel in the infobar if there's artist we can link it to 2011-10-30 14:57:09 -04:00
Leo Franchi
ec66cf29f3 Remove the iTunes Store: Top Songs in part of the itunes charts 2011-10-30 13:33:50 -04:00
Dominik Schmidt
f1200ac74d Find patched CLucene from Packman 2011-10-30 16:56:10 +01:00
Dominik Schmidt
be1827e554 Install tomahawk.svg to correct destination 2011-10-30 14:58:18 +01:00
Christian Muehlhaeuser
b46af3405e * Fixed TWK-537: Adding social actions for remote sources was broken. 2011-10-30 06:41:25 +01:00
Jeff Mitchell
6c2ed4baed Move timeout and all sources from getInfo into request data struct.
Add finished() signal that gives finished for a particular data type for a caller.
2011-10-29 14:45:09 -04:00
Jeff Mitchell
247e8ffbf4 Treemodel: don't consider an infosystem request resolved if it has invalid data returned 2011-10-29 14:15:52 -04:00
Jason Herskowitz
52d93e8881 Removed obsolete png again 2011-10-29 09:58:27 -04:00
Christian Muehlhaeuser
5d2e3f37f1 * Fixed setting echonest API key. 2011-10-29 15:43:15 +02:00
Jason Herskowitz
455136a722 Optizmize icon filesizes 2011-10-29 09:39:05 -04:00
Christian Muehlhaeuser
ec8fd589e0 * Removed obsolete png. 2011-10-29 09:21:55 +02:00
Christian Muehlhaeuser
5ea8586c59 * Should fix shutdown sequence. 2011-10-29 08:49:42 +02:00
Jason Herskowitz
47cd4de267 Downsize image in filesize and dimension size - don't let the cd touch the sides 2011-10-28 22:47:52 -04:00
Jason Herskowitz
22a502fd59 Put CD placeholder icon into jewel case 2011-10-28 22:35:34 -04:00
Christian Muehlhaeuser
fce45b1d8d * Commit dropshadow for reals. 2011-10-29 04:26:02 +02:00
Christian Muehlhaeuser
2b7623b6d5 * Added a drop shadow to cover images. At some point I'll make it perfect, good enough for now tho. 2011-10-29 04:16:20 +02:00
Jeff Mitchell
5f73c3fb0e If people reuse the same requestId, reassign it for them and print a
warning. Will cause problems if they are relying on the requestId to map
to something, but in that case they'd have problems mapping multiple
things to the same requestId in the first place...
2011-10-28 17:34:26 -04:00
Hugo Lindström
9476c3a3de And also dont break it, its so fragile 2011-10-28 23:33:00 +02:00
Hugo Lindström
5d13694530 Call it Hype Machine instead 2011-10-28 23:24:47 +02:00
Leo Franchi
5df328424d Add shuffle/repeat support to treeview 2011-10-28 17:13:23 -04:00
Hugo Lindström
51d89c7210 Adding hypem 2011-10-28 22:58:57 +02:00
Hugo Lindström
f8d48cc9fc Adding Hypem and fix race in spotify(?) 2011-10-28 22:57:54 +02:00
Leo Franchi
5f7bd6087f Helps to return when i want to return... 2011-10-28 16:49:22 -04:00
Leo Franchi
7549d73115 Don't crash if Rovi returns no results 2011-10-28 15:45:52 -04:00
Leo Franchi
5eef57f3b8 Fix regression in infosystem by working around it. Can't reuse requestData objects without changing their ids. 2011-10-28 15:45:05 -04:00
Leo Franchi
4ad6b2bebf Allow artist pages to have a random/repeat mode 2011-10-28 15:25:54 -04:00
Leo Franchi
af5211aada Switch to using Rovi search api instead of album api
This means we can search for albums with the artist name too, to avoid confusion
2011-10-28 13:19:33 -04:00
Leo Franchi
58b625ef03 Only cache spotify charts for a week, and send defaults 2011-10-28 12:30:45 -04:00
Leo Franchi
4ffbd839eb Actually use cache in musicbrainz plugin. We were caching the data but not fetching from the cache 2011-10-28 12:30:45 -04:00
Christian Muehlhaeuser
f8def37879 * Support clicking info button for unknown albums in TrackView. 2011-10-28 12:31:15 +02:00
Christian Muehlhaeuser
205bde833f * Fixed album spacing on non-X11. 2011-10-28 12:00:17 +02:00
Christian Muehlhaeuser
e2bb4d7340 * Properly center album icons. 2011-10-28 11:23:00 +02:00
Leo Franchi
b040870cf1 Try fixing chart loading race condition 2011-10-27 23:49:56 -04:00
Leo Franchi
4de60911cd Fix sizing and flicker 2011-10-27 22:44:38 -04:00
Leo Franchi
058808aa61 unused signal 2011-10-27 22:28:51 -04:00
Leo Franchi
253d65d5a3 fix chart defaults 2011-10-27 21:55:29 -04:00
Christian Muehlhaeuser
2b682a14ae * Unbreak compiling. 2011-10-28 03:10:59 +02:00
Leo Franchi
84d817c9d4 Fix and remove stale files 2011-10-27 21:05:51 -04:00
Leo Franchi
4db10f8195 first work on new breadcrumb 2011-10-27 21:05:51 -04:00
Leo Franchi
2277c14882 Shrink some iiimages 2011-10-27 17:24:53 -04:00
Leo Franchi
359fd9761d Don't show all stars as hovered over on launch till a mouse move 2011-10-27 15:08:42 -04:00
Leo Franchi
e9fa2259a7 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-10-27 08:43:33 -04:00
Leo Franchi
746d24da50 shrink icon size 2011-10-27 08:43:04 -04:00
Jeff Mitchell
e341120f64 Finish making InfoSystem accept a requestId that clients can use for
tracking
2011-10-26 14:01:03 -04:00
Jeff Mitchell
4e71a56b18 Merge branch 'master' into infosystemrequestids 2011-10-26 11:48:39 -04:00
Hugo Lindström
6ec80ee427 Fix for fail 2011-10-26 14:06:54 +02:00
Hugo Lindström
28a8ca444b Merge pull request #47 from vinzv/patch-1
checked and completed translation except a few tags.
2011-10-26 04:39:20 -07:00
vinzv
a75e827d62 checked and completed translation except a few tags. 2011-10-26 13:22:31 +03:00
Leo Franchi
3dbb4fad41 Don't crash when dragging to the queue on osx 2011-10-25 14:38:16 -04:00
Hugo Lindström
ecf70e7b86 Call the mainmenu something else on Mac 2011-10-25 17:02:40 +02:00
Hugo Lindström
53c1e0986b Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-10-25 15:15:11 +02:00
Hugo Lindström
16f49b58a8 Menumerge as to TWK-213 2011-10-25 15:13:17 +02:00
Jeff Mitchell
1df01c77e3 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-10-24 18:53:18 -04:00
Jeff Mitchell
27073eb4f4 Create default constructor for InfoRequest struct; include requestId in
InfoRequest struct; rework rest of InfoSystem to use that requestId
instead of internal one.
2011-10-24 18:49:36 -04:00
Jason Herskowitz
eb3d9553ed Make now playing speaker in sidebar gray instead of black 2011-10-24 17:18:51 -04:00
Jason Herskowitz
188dc0b3bd Fill star rating icons with color 2011-10-24 14:15:09 -04:00
Hugo Lindström
4e7672fd63 Really set the correct api url 2011-10-24 13:12:59 +02:00
Hugo Lindström
6c35a435f0 Correct api url 2011-10-24 13:09:19 +02:00
Hugo Lindström
5263b21138 Spotify InfoSystemPlugin 2011-10-24 12:45:54 +02:00
Leo Franchi
49d40186be debug-- 2011-10-23 15:40:12 -04:00
Leo Franchi
660a7cd059 Add rovi infoplugin for album tracks 2011-10-23 15:38:12 -04:00
Leo Franchi
ad739d0ce8 Set two default items for the charts
try listening to any changed and set default source

don't listen to indexchanged, do a manual set when setting default
2011-10-23 10:21:12 -04:00
Dominik Schmidt
4e8d0d46fe Fix mingw compilation on my machine, isn't broken on hudson whyever :\ 2011-10-22 02:48:11 +02:00
Hugo Lindström
02713c1661 Doesnt fix it 2011-10-22 00:11:01 +02:00
Hugo Lindström
8d561b5a56 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-10-21 23:58:31 +02:00
Hugo Lindström
25ece740e2 Seems to not crash when chart is not fully loaded 2011-10-21 23:57:40 +02:00
Leo Franchi
1c66534cb8 search pages too 2011-10-21 17:45:29 -04:00
Leo Franchi
08610eee13 Use artist and album icons for temp pages 2011-10-21 17:39:28 -04:00
Leo Franchi
b8ccf9b2af Switch to stars, and show on-hover star animation when rating 2011-10-21 17:03:34 -04:00
Leo Franchi
537115fac5 Fix artist bios not loading after changes to infosystem types 2011-10-21 16:25:11 -04:00
Leo Franchi
3924521aed 5, not 6 2011-10-21 14:35:32 -04:00
Leo Franchi
8bbe15edee Limit to 5 temp pages at once 2011-10-21 14:35:32 -04:00
Leo Franchi
0a686337f8 Don't set focus on page automatically (this breaks delete-with-del on sourcetree), and it was done originally for the newplaylistwidget that is gone. 2011-10-21 14:35:32 -04:00
Leo Franchi
98d939a81b Show speaker icon for any playing playlist 2011-10-21 14:35:32 -04:00
Jason Herskowitz
e1c6e83b98 More abstract (wall of photos) and colorful Supercollection icon. Better or worse? 2011-10-21 14:34:11 -04:00
Hugo Lindström
d41e30c359 Dont need hack anymore 2011-10-21 20:16:10 +02:00
Jason Herskowitz
4bb63d428f Clean up now-playing-speaker-dark.png 2011-10-21 09:20:17 -04:00
Christian Muehlhaeuser
85f970ea2d * Don't crash without model. 2011-10-21 09:48:10 +02:00
Christian Muehlhaeuser
3411dde52f * Don't crash without a model. 2011-10-21 09:41:54 +02:00
Leo Franchi
4a63606c84 Draw a speaker next to the currently playing playlist 2011-10-20 23:11:35 -04:00
Leo Franchi
2d439ed959 remove spammy debug 2011-10-20 18:29:11 -04:00
Leo Franchi
0e213abfd4 Show error when a preview fails to load for a station 2011-10-20 18:02:52 -04:00
Leo Franchi
be737a24f2 Refresh stations preview whenever controls are changed 2011-10-20 17:24:23 -04:00
Jeff Mitchell
f796f1f133 Remove unnecessary Chart type from InfoSytem. It was just mapping
strings, so just use a string map we already have
2011-10-20 16:46:09 -04:00
Jeff Mitchell
b2dc6f1f3c Since InfoCriteriaHash is now being used for things that aren't
criteria, rename it to the more generic InfoStringHash
2011-10-20 16:26:08 -04:00
Jeff Mitchell
d73800bd5f Remove unnecessary custom types from info system 2011-10-20 16:24:00 -04:00
Jeff Mitchell
52bb303ffa More logical ordering of items 2011-10-20 16:13:49 -04:00
Leo Franchi
4e8c99554a Try harder for compile-on-sl run-fullscreen-on-lion 2011-10-20 14:43:15 -04:00
Leo Franchi
428dbe8f0e Runtime check for lion instead of compile-time 2011-10-20 14:31:41 -04:00
Jeff Mitchell
f24a25b370 It's funny, looking at a few likely commits doesn't show when this line
disappeared, but, it did. Fixes scanning never finishing
2011-10-20 13:47:00 -04:00
Leo Franchi
4107c01ad1 Don't run a dropjob for any drop unless it's a playlist. Show notifications for album db fetches 2011-10-19 22:55:11 -04:00
Leo Franchi
24c7b0074a Move removeDirectory to TomahawkUtils 2011-10-19 19:45:39 -04:00
Leo Franchi
378aae9567 Fix commit also with no attica 2011-10-19 19:37:46 -04:00
Leo Franchi
742f73f028 Only allow voting once; Show the user's set score if he has rated it over the server 2011-10-19 19:31:26 -04:00
Leo Franchi
52930918f2 Tomahawk-side support for resolver rating 2011-10-19 17:19:11 -04:00
Christian Muehlhaeuser
be0f2e7e45 * Use mobile wikipedia version for Footnotes. 2011-10-19 04:40:11 +02:00
Christian Muehlhaeuser
6134c4fdec * Properly sort recent additions / albums lists. 2011-10-19 04:00:54 +02:00
Christian Muehlhaeuser
5f1a2df610 * Properly get artists / albums when using external resolvers. 2011-10-19 03:23:41 +02:00
Christian Muehlhaeuser
d3d29acf09 * Auto resize OverlayButton and adjust helper texts. 2011-10-19 03:13:45 +02:00
Christian Muehlhaeuser
b32b84f8c7 * Properly deal with auto-creating artists & albums. 2011-10-19 02:46:28 +02:00
Christian Muehlhaeuser
95ce975d40 * Properly load albums from database when getting official releases. 2011-10-19 02:33:08 +02:00
Christian Muehlhaeuser
8532189b54 * Added OverlayButton. 2011-10-19 02:16:16 +02:00
Christian Muehlhaeuser
1223d3dac3 * Use tDebug in PortfwdThread. 2011-10-19 02:07:16 +02:00
Christian Muehlhaeuser
a6c838cd39 * Support official release on album pages. 2011-10-19 02:06:53 +02:00
Leo Franchi
03f0870f53 Update FindPhonon.cmake from KDE 2011-10-18 16:20:44 -04:00
Leo Franchi
931959ecc8 Make resolving dragged-in spotify playlists worka gain 2011-10-18 14:42:10 -04:00
Leo Franchi
b34037f26f Don't send multiple infosystem requests if one is queued 2011-10-18 08:05:38 -04:00
Leo Franchi
f95e2ad703 Select just-created spotify playlist when dragged in 2011-10-17 17:53:22 -04:00
Leo Franchi
5fac4a34bd Remove stray include 2011-10-17 17:46:11 -04:00
Leo Franchi
3f9c2366f2 Consistent size for all headers in the view 2011-10-17 17:45:06 -04:00
Leo Franchi
a708f37cd6 Include preview tracks in deduper 2011-10-17 17:44:57 -04:00
Leo Franchi
dd1071f180 debug for rotzbouw 2011-10-17 17:13:31 -04:00
Leo Franchi
576a886937 Try deduping better 2011-10-17 17:04:29 -04:00
Leo Franchi
1208035da3 Make sure not to sort, these are charts 2011-10-17 16:59:52 -04:00
Leo Franchi
7944c9f826 Extend deduper to whole station session 2011-10-17 16:05:26 -04:00
Leo Franchi
6ee7df9514 Resolve top-down 2011-10-17 12:36:56 -04:00
Leo Franchi
4a3b6aa1d3 Show youtube resolver in resolver list as well 2011-10-17 11:30:53 -04:00
Christian Muehlhaeuser
77b8224949 * Get rid of annoying Threads test. Fails left and right. 2011-10-17 17:23:03 +02:00
Leo Franchi
c4c94de1ac Expand breadcrumb fully when any item is selected 2011-10-16 23:21:55 -04:00
Leo Franchi
75cb466909 die die flicker 2011-10-16 23:21:55 -04:00
Jeff Mitchell
fd6235995f Prevent some spurious delete commands when you have no collection paths 2011-10-16 17:49:37 -04:00
Leo Franchi
840460d960 Mark peer as offline when we get a message from a peer that we knew about but is gone 2011-10-16 15:48:20 -04:00
Jeff Mitchell
3b46f3fe32 A bit of debugging for rotzbouw 2011-10-16 14:57:08 -04:00
Jeff Mitchell
a2281dcf58 Add an optimization to deletefiles 2011-10-16 14:45:07 -04:00
Leo Franchi
a19eb9c447 Be safer and don't create albums in the for charts browsing 2011-10-16 14:06:13 -04:00
Leo Franchi
ceffbb6a77 Header guard 2011-10-16 13:29:57 -04:00
Leo Franchi
c5439b4e7d Convert ISO country code to proper country names. 2011-10-16 13:26:35 -04:00
Leo Franchi
0b227eff42 Don't flicker all breadcrumbs when any breadcrumb combo is changed 2011-10-15 23:37:17 -04:00
Leo Franchi
033b4cc6cc less debug 2011-10-15 19:38:38 -04:00
Leo Franchi
4fdec44755 Make sure breadcrumb items are always the right size 2011-10-15 19:38:06 -04:00
Leo Franchi
6606bd4185 Cache models so we don't constantly re-fetch and re-resolve everything 2011-10-15 19:30:04 -04:00
Leo Franchi
7cc964dfc5 Don't crash if there's no model attached to a view when it's resized 2011-10-15 19:29:50 -04:00
Leo Franchi
b3bfc2b464 Fetch album covers if albums were added before model was attached to view 2011-10-15 19:29:27 -04:00
Leo Franchi
a937ac265c Fix grey background w hen breadcrumb adding/deleting is animating 2011-10-15 18:11:35 -04:00
Leo Franchi
1058dd93f1 Refactor the chartsplugin parsing 2011-10-14 19:09:42 -04:00
Leo Franchi
f4f9a148af Return the chart list if we receive it after the infosystem request 2011-10-14 16:07:14 -04:00
Leo Franchi
d07f191a1e Select newly created playlist when created via tomahawk link too 2011-10-13 22:44:29 -04:00
Leo Franchi
0ba9a9e076 Select the just-created xspf as soon as it is imported 2011-10-13 22:39:25 -04:00
Leo Franchi
ac7aadf615 Fix latching when switching directly between latches 2011-10-13 22:33:32 -04:00
Leo Franchi
3873189d79 Clean up auto-updating xspf handling to make it actually usable 2011-10-13 21:52:23 -04:00
Leo Franchi
891692d914 Fix catalog init properly 2011-10-13 17:51:38 -04:00
Leo Franchi
2d31de245f Remove unused signal connection 2011-10-13 17:50:29 -04:00
Leo Franchi
8c587e9b75 export and remove warning 2011-10-13 17:32:21 -04:00
Jeff Mitchell
84622380d6 Remove dir mode, just use file mode for scanning all the time 2011-10-13 17:19:58 -04:00
Leo Franchi
0736a65f2a Try to avoid race conditions 2011-10-13 17:17:08 -04:00
Hugo Lindström
658deb3bcd Maybe a fix for breadcrumb problems 2011-10-13 21:27:52 +02:00
Jeff Mitchell
cfed5be1ca Let's try this again 2011-10-13 10:43:42 -04:00
Jeff Mitchell
9fa4033b2a OK, actually properly escape 2011-10-13 10:35:05 -04:00
Jeff Mitchell
2c620ba440 Properly escape strings in sql command 2011-10-13 10:30:56 -04:00
Leo Franchi
01bf3a3818 Initialize to 0 in *all* constructors 2011-10-13 08:28:22 -04:00
Leo Franchi
8641222395 Make default artist type similar to, not limit to 2011-10-12 20:57:23 -04:00
Leo Franchi
b4aedd606c ohai style fix 2011-10-12 20:45:43 -04:00
Leo Franchi
ee1afc665f Merge branch 'autoupdate' 2011-10-12 20:34:32 -04:00
Leo Franchi
57e31e1319 Update defaults and do an update on enabling 2011-10-12 20:33:28 -04:00
Leo Franchi
46f6941325 Only auto-create in logplayback if there's a valid artist 2011-10-12 17:55:33 -04:00
Leo Franchi
61f3e1854c Don't auto-create when doing a load from the db. 2011-10-12 17:55:33 -04:00
Leo Franchi
5cb327af38 Don't show 41 years as an age for a result if it was default set to 0. 2011-10-12 17:55:33 -04:00
Leo Franchi
648b2d69f9 Only auto-create in logplayback if there's a valid artist 2011-10-12 17:54:35 -04:00
Leo Franchi
e4f8c229b4 Don't auto-create when doing a load from the db. 2011-10-12 17:41:15 -04:00
Leo Franchi
189e3ea348 Don't show 41 years as an age for a result if it was default set to 0. 2011-10-12 17:24:49 -04:00
Hugo Lindström
e2c71e7a18 Style fix and timeout fix 2011-10-12 22:31:25 +02:00
Hugo Lindström
3b1268bbfd Here comes the charts! 2011-10-12 22:09:26 +02:00
Hugo Lindström
248d26fe69 Merge pull request #46 from hugolm84/charts
Dont always assert on js failure
2011-10-12 10:02:21 -07:00
Hugo Lindström
afcac34208 Dont allways assert on js failure 2011-10-12 18:58:17 +02:00
Leo Franchi
9aa6e2a338 Clean up after ourselves 2011-10-12 11:00:39 -04:00
Leo Franchi
434acf21a4 osx tweaks 2011-10-12 10:56:35 -04:00
Leo Franchi
aaf0df736b Merge branch 'autoupdate' of github.com:lfranchi/tomahawk into autoupdate 2011-10-12 10:22:25 -04:00
Leo Franchi
bb0d82aa10 remote debug 2011-10-12 10:21:39 -04:00
Leo Franchi
9556414bf5 Add UI to auto-update and save/restore state 2011-10-12 10:20:55 -04:00
Leo Franchi
172ccd0428 Fix artist limit to 2011-10-12 08:49:04 -04:00
Leo Franchi
31a9c75c08 Fix artist limit to 2011-10-12 08:48:31 -04:00
Jeff Mitchell
fde7ef75af Remove extra debug 2011-10-11 18:02:59 -04:00
Jeff Mitchell
af7b20ee55 Work around QtSql bind bug to properly populate delete files for notifications to collections 2011-10-11 17:58:44 -04:00
Jeff Mitchell
0277d1213e Add some debug and fix a double-delete issue 2011-10-11 13:33:55 -04:00
Jeff Mitchell
c62c4fa1d9 Fix cache misses going to incorrect target 2011-10-11 12:55:57 -04:00
Jeff Mitchell
a520f7bff3 Remove InfoGenericMap 2011-10-11 09:08:55 -04:00
Jeff Mitchell
37f5b9114e More debugging 2011-10-11 08:57:30 -04:00
Jeff Mitchell
d2dc3082b1 Hopefully fix delete problems 2011-10-11 08:47:44 -04:00
Jeff Mitchell
bd4d5da641 Remove unused method 2011-10-11 08:29:01 -04:00
Leo Franchi
dad65da497 Use file ids not track ids for echonest catalog ids 2011-10-10 21:09:07 -04:00
Leo Franchi
49aadaab0e Use file ids not track ids for echonest catalog ids 2011-10-10 21:07:05 -04:00
Jeff Mitchell
864d665494 Some more debugging bits 2011-10-10 18:55:44 -04:00
Jeff Mitchell
719151b44e Add more debugging for the delete issue 2011-10-10 18:50:12 -04:00
Hugo Lindström
1c3a9da5ed Merge pull request #45 from hugolm84/charts
Fix bad parsing in liblastfm2 track
2011-10-10 09:56:48 -07:00
Hugo Lindström
154b672d47 Fix bad parsing 2011-10-10 18:56:06 +02:00
Jeff Mitchell
cfa2268c05 Debugging for delete files issue 2011-10-10 10:35:28 -04:00
Jeff Mitchell
d37fd8955c Optimize the full rescan path a bit, and add a check for safety (that should be a noop) 2011-10-10 09:53:55 -04:00
Hugo Lindström
a7d30582a6 Merge pull request #44 from hugolm84/charts
Dont sort ranked list
2011-10-10 04:39:01 -07:00
Hugo Lindström
0a570849c5 Dont sort ranked list 2011-10-10 13:38:01 +02:00
Hugo Lindström
442d1b2713 Merge pull request #43 from hugolm84/charts
Tomahawk Charts
2011-10-09 12:04:32 -07:00
Hugo Lindström
9749df00d1 Increase timer, fixes itunes breadcrumb init 2011-10-09 14:15:22 +02:00
Hugo Lindström
8a9a48fda1 Style fix 2011-10-09 14:13:39 +02:00
Hugo Lindström
777ebd77c8 Now fills itunes chart correctly 2011-10-09 13:28:43 +02:00
Hugo Lindström
36855783a7 Now supports charts from last.fm, billboard, itunes. Known issue:
sometimes fail to populate breadcrumb with itunes resource
2011-10-08 20:14:26 +02:00
Hugo Lindström
8595539dea Charts 2011-10-08 19:24:43 +02:00
Leo Franchi
687ed02df0 Updater work 2011-10-07 18:08:13 -04:00
Leo Franchi
3b861983e6 skeleton auto-updating for xspf playlists 2011-10-07 16:04:37 -04:00
Hugo Lindström
9caf9fc98f Adding charts for Billboard and Itunes 2011-10-06 23:00:19 +02:00
Leo Franchi
f58ba2926e Fix shorten link action when called from different thread 2011-10-06 14:26:19 -04:00
Hugo Lindström
049184bdfd Trying to add albums to whatshotview 2011-10-06 19:52:51 +02:00
Leo Franchi
6d6f51fdb6 TWK-532: Don't assert on a null artist, we can get artists we don't know about from resolver search results 2011-10-05 17:55:20 -04:00
Hugo Lindström
2ee085d13d Doing so for now. Need to create ui for specific albums 2011-10-05 22:33:08 +02:00
Hugo Lindström
fb8a761278 Adding charts infoplugin 2011-10-05 20:22:48 +02:00
Hugo Lindström
625a7b8fda Merge pull request #42 from hugolm84/master
Spotify artist browse now supports limit
2011-10-04 00:39:26 -07:00
Hugo Lindström
b15bef72df Artist browse with limit 2011-10-04 09:35:05 +02:00
Dominik Schmidt
0aa65e2d95 Comment out _set_purecall_handler to prevent the no-entry-point-error, let's find out the consequences :P 2011-10-04 02:24:15 +02:00
Dominik Schmidt
53acf6420e Hardcode product name for breakpad as the conversion code crashes 2011-10-04 02:22:35 +02:00
Dominik Schmidt
f54dee3ccc Fix windows installer 2011-10-04 02:06:16 +02:00
Leo Franchi
b494d5ae79 Note bumped liben requirement 2011-10-03 15:35:58 -04:00
Jeff Mitchell
7975140452 Pedantic warning fix 2011-10-03 12:26:53 -04:00
Jason Herskowitz
11ea67632c Fix those damn headphones once and for all 2011-10-03 09:50:55 -04:00
Jason Herskowitz
af09c04834 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-10-03 07:13:36 -04:00
Jason Herskowitz
90d6492de6 Really square all the headphone pngs 2011-10-03 07:13:32 -04:00
Hugo Lindström
73bcbd2590 Merge pull request #41 from hugolm84/master
Fix for spotify playlist append action
2011-10-03 01:46:18 -07:00
Hugo Lindström
faf3558754 Also append playlist content 2011-10-03 10:43:46 +02:00
Hugo Lindström
37719a247e Merge pull request #40 from hugolm84/master
Allow dropping sources in to trackview/sourcetree and do appropriate action
2011-10-03 01:31:01 -07:00
Hugo Lindström
08df9f924f Less debug 2011-10-03 10:16:54 +02:00
Hugo Lindström
5812b2bec1 Support dropping sources in pl and sourcetree. Append or create 2011-10-03 10:14:18 +02:00
Leo Franchi
1d54be04e0 Handle multiple spotify/xspf links 2011-10-02 21:25:21 -04:00
Leo Franchi
de98665b00 less debug 2011-10-02 21:25:21 -04:00
Leo Franchi
f23af07f6a TWK-393: Play immediately when dropping something onto audiocontrols 2011-10-02 21:25:21 -04:00
Leo Franchi
9904367106 Proper append drop job type for playlist drops 2011-10-02 21:22:42 -04:00
Leo Franchi
46a73566f5 Don't create a new revision when resolvign is finished if we've been deleted meanwhile 2011-10-02 18:05:32 -04:00
Leo Franchi
2de19a1c94 TWK-471: Show config UI for resolvers that have one as soon as you add the resolver 2011-10-02 17:38:23 -04:00
Leo Franchi
5594e25dcf less debug 2011-10-02 17:25:38 -04:00
Leo Franchi
0c47327fc4 Open the queue on a drag-hover after a short delay, to allow drag-to-add when it's closed 2011-10-02 17:25:38 -04:00
Leo Franchi
d6bf6744d8 Fix appending spotify tracks 2011-10-02 17:25:38 -04:00
Leo Franchi
094e8653ff Properly name artist stations 2011-10-02 17:25:38 -04:00
Leo Franchi
5d6f31a25d nm, can't rely on activated() as that depends on per-platform click settings 2011-10-02 16:42:09 -04:00
Leo Franchi
545b6abfa1 Add itunes.png to resource file 2011-10-02 15:55:16 -04:00
Leo Franchi
d8270bddfa TWK-490: Work harder at not selecting inactive items 2011-10-02 15:54:09 -04:00
Leo Franchi
dfb03eabe6 Add itunes pixmap and fix job creation 2011-10-02 15:26:49 -04:00
Leo Franchi
6ea9dc4f1b Create artist filters when dragging a query from the artist in audiocontrols 2011-10-02 14:42:13 -04:00
Leo Franchi
acfaf3970e Check mimedata source on osx as Qt::DropAction is not reliable. Also, minor cleanups 2011-10-02 13:00:50 -04:00
Leo Franchi
4402bd8f03 Add files 2011-10-02 12:20:56 -04:00
Leo Franchi
56280db289 Support new spotify server-side parsing, courtesy of Hugo. Thanks! 2011-10-02 12:19:22 -04:00
Leo Franchi
6ebc103bc5 Add adventurousness as filter param 2011-10-02 11:12:04 -04:00
Leo Franchi
a40253da26 Don't do more work than we need to. Use track ids as unique catalog itemids 2011-10-01 09:44:16 -04:00
Leo Franchi
8f181bc4a0 Changed wording and add a tooltip 2011-09-30 19:03:03 -04:00
Leo Franchi
625dc0304b Handle catalogs more gracefully in dynamic playlists
Standardize some code

Propertify

Misc catalog fixes

Clean up by hacking
2011-09-30 18:39:24 -04:00
Leo Franchi
5f9c21120d Add keep-in-synch support to EchonestCatalogSynchronizer
be extra safe
2011-09-30 18:39:21 -04:00
Leo Franchi
1e6bbba189 More work on getting basic uploading to work, and showing in echonest controls 2011-09-30 18:38:11 -04:00
Leo Franchi
13ac8c093a Add a qnr mediastream WIP to support qnetworkreply QIODevices 2011-09-30 18:38:10 -04:00
Leo Franchi
d7e68f3a1d Add dbmigrate scrip, other misc work 2011-09-30 18:37:59 -04:00
Jeff Mitchell
d60b38b3aa Properly handle order in which mtime update and file delete commands are
run in relation to the rest of scanning
2011-09-30 18:28:01 -04:00
Jeff Mitchell
e47b750d21 Remove confusing manualFull variable that got passed all the way into
scanners, use faster delete command when doing a full rescan
2011-09-30 18:00:59 -04:00
Jeff Mitchell
ff764df4af Eep, a return is in order 2011-09-30 17:48:06 -04:00
Jeff Mitchell
630439cddf Pedantic whitespace fixing 2011-09-30 17:11:01 -04:00
Jeff Mitchell
8b477e1f71 I'm an idiot 2011-09-30 17:10:38 -04:00
Jeff Mitchell
e021695230 Next try :-) 2011-09-30 17:09:31 -04:00
Jeff Mitchell
70f00872a1 Fix deleteAll 2011-09-30 16:50:16 -04:00
Jeff Mitchell
f14ae332eb Make faster 2011-09-30 16:47:46 -04:00
Jeff Mitchell
76ff49a8ba Proper ID generation 2011-09-30 16:06:35 -04:00
Jeff Mitchell
dad726b6ca Remove unused return parameter 2011-09-30 14:53:18 -04:00
Jeff Mitchell
4aa8ec6bb8 Update deletefiles commands to, well, work. Maybe. 2011-09-30 14:46:36 -04:00
Leo Franchi
757f1c6175 Fix some moer stuff 2011-09-28 19:36:02 -04:00
Leo Franchi
cfa5c9932e Cleanup commented out code 2011-09-28 19:00:25 -04:00
Leo Franchi
4bbb07ee1f Add bigger headphone icon 2011-09-28 19:00:25 -04:00
Leo Franchi
66581fcaa2 Refactor latching into it's own manager for easier handling, and clean up some corner cases 2011-09-28 19:00:25 -04:00
Leo Franchi
b83e9bbf82 Better icon for spotify, and scale better 2011-09-28 19:00:25 -04:00
Jason Herskowitz
48a3ad29ff Center headphone icon on square canvas 2011-09-28 15:21:22 -04:00
Christian Muehlhaeuser
cede16bc50 * Fixed collection-less results being marked offline. 2011-09-28 12:47:16 +02:00
Christian Muehlhaeuser
e57105669c * Fixed showing a text-less job item for fulltext search queries. 2011-09-28 01:06:49 +02:00
Christian Muehlhaeuser
17480fd887 * Fixed not advancing to next track within official releases tree-view. 2011-09-28 01:02:39 +02:00
Christian Muehlhaeuser
42d8476ea1 * Fixed BreakPad on win32, I hope. 2011-09-28 00:21:17 +02:00
Christian Muehlhaeuser
d901f0ba86 * Fixed silly compiler warning. 2011-09-28 00:05:44 +02:00
Christian Muehlhaeuser
cea780b85b * Fixed moving tracks within a playlist. 2011-09-28 00:04:48 +02:00
Christian Muehlhaeuser
381e89d3df * Fixed mass-reresolving. 2011-09-27 23:47:12 +02:00
Christian Muehlhaeuser
b4a8e32f44 * Fixed re-resolving after sources / resolvers go offline. 2011-09-27 19:54:37 +02:00
Christian Muehlhaeuser
26a7d37298 * Only sync lucene index once (at most) per sync. 2011-09-27 18:18:05 +02:00
Jason Herskowitz
9291c75669 Bigger headphone image for when needed 2011-09-26 15:21:34 -04:00
Jeff Mitchell
f61d0a07b1 Add 60 second timer to send out zeroconf advertisements. Fixes issues with peers never appearing. 2011-09-24 13:13:41 -04:00
Jeff Mitchell
999e0ad4c2 Remove compile warnings 2011-09-24 08:15:16 -04:00
Christian Muehlhaeuser
1721a0b693 * Some more Windows-related Breakpad fixes. 2011-09-24 11:28:16 +02:00
Christian Muehlhaeuser
2ceb075706 * Also compile Breakpad class on all platforms. 2011-09-24 11:18:39 +02:00
Christian Muehlhaeuser
9a84a7deea * Helps to include headers. 2011-09-24 11:01:46 +02:00
Christian Muehlhaeuser
1f6323941b * Enable BreakPad on Windows. 2011-09-24 10:57:21 +02:00
Christian Muehlhaeuser
c6c91181ab * Added CrashReporter.exe to NSIS template. 2011-09-24 10:31:48 +02:00
Dominik Schmidt
e4e9f1bec8 Enable building breakpad on windows 2011-09-24 01:33:46 +02:00
Leo Franchi
18d9360ad3 Fix crash and shrink headphones 2011-09-23 12:44:07 -04:00
Leo Franchi
efbbdf1e72 Show headphone icon as on for the local source if you are listening along to someone 2011-09-23 12:44:07 -04:00
Leo Franchi
624c05bdf4 Allow script resolvers to register a url handler 2011-09-23 12:44:07 -04:00
Christian Muehlhaeuser
e0d63535a6 * Correctly sort recently played tracks on Dashboard and filter out irrelevant tracks, which speeds up syncing. 2011-09-23 18:32:47 +02:00
Leo Franchi
7832dd42b2 Guard against null source 2011-09-23 10:51:25 -04:00
Christian Muehlhaeuser
d49294d288 * Fixed TWK-522: Queries could not be activated in ArtistView. 2011-09-23 13:38:37 +02:00
Christian Muehlhaeuser
b84a884387 * Fixed TWK-523: Don't ignore tracks without an album name when filtering. 2011-09-23 13:29:22 +02:00
Christian Muehlhaeuser
9eeed5223c * Fixed crash in TreeProxyModel. 2011-09-23 12:23:37 +02:00
Leo Franchi
f520b6d5d0 Handle re-latches 2011-09-22 18:02:30 -04:00
Leo Franchi
d3ce2162ca Don't accept a drop (even though our flags should block it) to fall through if the playlist is busy 2011-09-22 17:44:24 -04:00
Leo Franchi
1cc1ba2b7a Show headphones next to a source's now playing track to listen along 2011-09-22 17:30:15 -04:00
Leo Franchi
6c0d984990 Prep for headphones-on-avatar 2011-09-22 17:30:15 -04:00
Leo Franchi
08e4da1c8a Enable mouse tracking so all platforms get temp page delete button 2011-09-22 12:40:01 -04:00
Jason Herskowitz
ba77ca4292 Add small red headphone png for use in sidebar 2011-09-21 22:03:25 -04:00
Jason Herskowitz
398d2c7cce Scale down headphone-off.png to 20px wide 2011-09-21 22:00:38 -04:00
Jason Herskowitz
b513a34fb8 Merge branch 'master' of github.com:tomahawk-player/tomahawk 2011-09-21 21:36:16 -04:00
Jason Herskowitz
272c31f132 Add icon to use for unselected Listen Along icon 2011-09-21 21:34:56 -04:00
Leo Franchi
ef9a790df0 Try an alternative Lion check 2011-09-21 16:49:09 -04:00
Leo Franchi
f020df31d2 Emit sizehint changed when row count changes, heh 2011-09-21 09:32:52 -04:00
Leo Franchi
d26cf3de9d fix flicker in showing/hiding jobsview 2011-09-20 22:50:44 -04:00
Leo Franchi
6af4ff6537 A bit more padding between the end of the main text and the right column 2011-09-20 22:36:48 -04:00
Leo Franchi
5c4a7dd273 increase size of row 2011-09-20 21:53:51 -04:00
Jason Herskowitz
41fb2ee1dc More darker greener downloader iconer 2011-09-20 21:52:07 -04:00
Leo Franchi
656221dcc0 Use new spotify png instead of jpg 2011-09-20 21:47:48 -04:00
Jason Herskowitz
2b8825f814 Darker green for downloading icon 2011-09-20 21:46:28 -04:00
Jason Herskowitz
020da4d5c8 Adding spotify icon as .png with transparent background to use in jobview 2011-09-20 21:43:23 -04:00
Jason Herskowitz
e0d1fb72a8 Some new and colorfied jobview icons 2011-09-20 21:35:40 -04:00
Leo Franchi
6d61173bca Avoid tomahawkapp.h in .mm files 2011-09-20 18:16:38 -04:00
Leo Franchi
0f4b1bc91b Try another way to Lion-check 2011-09-20 17:52:54 -04:00
Leo Franchi
36738fc9e4 Show Lion full-screen toggle if on Lion 2011-09-20 16:40:54 -04:00
Leo Franchi
5750f51bdd Fix shared pointer forward declaration 2011-09-20 14:00:41 -04:00
Leo Franchi
c569678a26 Fix jagged line in jobsview 2011-09-20 14:00:41 -04:00
Leo Franchi
af19a09a3c Smaller rows, and paint icon a bit bigger 2011-09-20 14:00:41 -04:00
Leo Franchi
92fb2dbb0d End listen along status job if the listener quits tomahawk 2011-09-20 14:00:40 -04:00
Leo Franchi
bc33bd8420 Unlatch whenever a user stops listening along 2011-09-20 14:00:40 -04:00
Leo Franchi
27c2bc1b2d CLean up some logic 2011-09-20 14:00:40 -04:00
Leo Franchi
337be1f989 Better handling of sourcepli 2011-09-20 14:00:40 -04:00
Leo Franchi
6c9c3ce7ec Fix sourcelist returning local source, and send stop listening along msg at right time 2011-09-20 14:00:40 -04:00
Leo Franchi
495fe05a75 Work on latched job action
fixes
2011-09-20 14:00:38 -04:00
Leo Franchi
ab61314e0f Don't accept all drops on playlist items, only what DropJob says we want 2011-09-20 14:00:29 -04:00
Leo Franchi
70c1cc8829 Add a transfer item to jobsview
Add files

work

add file
2011-09-20 14:00:16 -04:00
Leo Franchi
b6c1d06165 Add spotify support to jobsview 2011-09-20 14:00:15 -04:00
Leo Franchi
d40ed14d80 Add logo 2011-09-20 14:00:15 -04:00
Leo Franchi
6970ea39e4 Add new jobs status view 2011-09-20 14:00:10 -04:00
Leo Franchi
2ce5bb1fea fix another bad sharedpointer include 2011-09-20 13:59:39 -04:00
Leo Franchi
6fb920c826 Don't accept all drops on playlist items, only what DropJob says we want 2011-09-19 11:40:34 -04:00
Christian Muehlhaeuser
40dc30044f Merge pull request #38 from Horrendus/small_changes
Small changes to jabber SIP
2011-09-18 06:59:26 -07:00
Christian Muehlhaeuser
b9515d3408 * Potential fix for missing tracks in tree view. 2011-09-17 20:38:11 +02:00
Christian Muehlhaeuser
b99a1a753c * Fixed filter in TreeProxyModel. 2011-09-17 20:24:24 +02:00
Christian Muehlhaeuser
e1d4088d98 * Should fix internal quazip. 2011-09-17 17:06:37 +02:00
Christian Muehlhaeuser
a1cd3cf5bb * Fixed quazip includes. 2011-09-17 16:59:19 +02:00
Christian Muehlhaeuser
cf054875b5 * Make sure to always launch CrashReporter from the directory the Tomahawk executable lives in. 2011-09-17 06:51:52 +02:00
Christian Muehlhaeuser
61e934bacc * Accidentally committed build files in breakpad folder. 2011-09-16 18:21:36 +02:00
Christian Muehlhaeuser
13a1eed144 * Get rid of generic failed() signal in XSPFLoader. 2011-09-16 16:47:38 +02:00
Christian Muehlhaeuser
a2cc3ee2fd * XSPFLoader doesn't depend on QMessageBox any longer. 2011-09-16 16:28:10 +02:00
Christian Muehlhaeuser
483386e440 * Moved QMessageBox out of XSPFLoader and into TomahawkWindow. 2011-09-16 16:27:14 +02:00
Christian Muehlhaeuser
695902d962 * Add CrashReporter to DMG and fix deps. 2011-09-16 15:45:46 +02:00
Christian Muehlhaeuser
6d62fb8c1e * Fixed MacDeploy to look for Qt 4.7.4 (needs proper version check still). 2011-09-16 15:26:47 +02:00
Leo Franchi
9f0febe402 Helps to initialize variables to default values 2011-09-16 09:25:35 -04:00
Leo Franchi
bbb28032e7 Don't create qpixmaps on the stack as this struct is created after QCoreApplication exist sometimes 2011-09-16 09:09:13 -04:00
Stefan Derkits
97b57009c9 Small changes to jabber SIP
Access config less often and read more from member variables
2011-09-16 14:11:35 +02:00
Christian Muehlhaeuser
c96ecd9697 * Unbreak breakpad on Linux. 2011-09-16 13:44:58 +02:00
Christian Muehlhaeuser
e0edb2b15b * Different border for ToggleButtons. 2011-09-16 11:23:27 +02:00
Christian Muehlhaeuser
f32bab7733 * Fix ToggleButton some more. 2011-09-16 11:18:14 +02:00
Christian Muehlhaeuser
bc266e1f7c * Hopefully fixed ToggleButton for all platforms. 2011-09-16 11:00:54 +02:00
Leo Franchi
5b48442006 Create a new playlist from a spotify playlist if dropped anywhere on the sourcetree
Only generate the tracks directly if dragged into a playlist contents
2011-09-15 21:38:32 -04:00
Leo Franchi
bf009c8854 fix warning / hidden virtual function 2011-09-15 21:12:18 -04:00
Leo Franchi
898ad5804e Add some debug for jason 2011-09-15 21:06:47 -04:00
Leo Franchi
dfd36d459b Fix compile without libattica 2011-09-15 21:04:24 -04:00
Leo Franchi
5ceb04e571 More tomahawk debugs 2011-09-15 21:00:23 -04:00
Leo Franchi
4ca29feab1 Add upgrade support for resolvers 2011-09-15 21:00:15 -04:00
Leo Franchi
95e1d8c5a3 Use a richer internal model for attica resolvers, and store important things like version 2011-09-15 19:04:21 -04:00
Jeff Mitchell
22e69bbb8c When the DBID is reset, don't re-read all past DMs. Probably fixes
TWK-513.
2011-09-15 15:00:33 -04:00
Leo Franchi
b8aa4e1bc3 Minor cleanups 2011-09-15 11:13:40 -04:00
Leo Franchi
b6cc9dae09 Fix typo that led to attica script states being forgotten 2011-09-15 09:23:22 -04:00
Leo Franchi
e6a394e8e7 More scroll-by-pixel on all platforms 2011-09-15 09:23:22 -04:00
Leo Franchi
4e09f52b22 make compile with clang 2011-09-15 08:44:22 -04:00
Christian Muehlhaeuser
903ea66b36 * Remove file copy in CMakeLists.txt. 2011-09-15 10:33:03 +02:00
Christian Muehlhaeuser
525072f757 * Removed duplicate definitions. 2011-09-15 10:08:14 +02:00
Christian Muehlhaeuser
b741d163a1 * Added breakpad support for OS X. 2011-09-15 10:05:53 +02:00
Christian Muehlhaeuser
b1a135fff9 * Unbreak non-Linux compiling. 2011-09-15 07:34:07 +02:00
Christian Muehlhaeuser
d8d7347394 * Added breakpad support for Linux. 2011-09-15 07:27:31 +02:00
Christian Muehlhaeuser
d8b07cee9c * Fixed libquazip.dll still missing. 2011-09-15 05:44:44 +02:00
Christian Muehlhaeuser
729c9237fe * Added libattica.dll, too. 2011-09-15 05:27:09 +02:00
Christian Muehlhaeuser
b2fc9cb8ac * Fix Windows installers missing libquazip.dll. 2011-09-15 05:21:20 +02:00
Christian Muehlhaeuser
89c04ea3f6 * Don't abort symbol management when dir already exists. 2011-09-15 04:43:48 +02:00
Christian Muehlhaeuser
93bf2e1bb9 * Added bash helper script for managing minidump symbols. 2011-09-15 04:32:36 +02:00
Leo Franchi
0504bec81d Add a Tomahawk.asyncRequest for async calls, ALL RESOLVERS SHOULD USE THIS 2011-09-14 22:29:05 -04:00
Christian Muehlhaeuser
7f9ded7816 * Scroll by pixel (not item) on all platforms. 2011-09-15 00:56:54 +02:00
Leo Franchi
c915f2f161 TWK-510: Fix overlay not disappearing on new playlists being added to list 2011-09-14 18:47:59 -04:00
Leo Franchi
034510cdda Remove line that slipped in 2011-09-14 18:42:18 -04:00
Leo Franchi
6899b38944 Only auto-resolve if it's a single track or a list, not a playlist 2011-09-14 18:27:19 -04:00
Leo Franchi
b3aa6c9a6c Fix workaround 2011-09-14 18:14:28 -04:00
Leo Franchi
eddc7bbf4e Remove some features, fix up whitespace and a few misc other things
Some fixups, parse spotify tracks in result
2011-09-14 18:11:06 -04:00
hugolm84
9bc112090d Comments on workaround for playlist update
nothing
2011-09-14 18:10:09 -04:00
hugolm84
0b37514cfe Removed events, not needed
spotify things
2011-09-14 18:09:29 -04:00
hugolm84
e93ef1dd6e Adding export to Spotify 2011-09-14 18:09:02 -04:00
hugolm84
fe7b798cda Removed an action 2011-09-14 18:08:19 -04:00
hugolm84
a0cd7869bc Loop 2011-09-14 18:08:19 -04:00
hugolm84
c2d0382bae Just some more qDebug 2011-09-14 18:08:19 -04:00
hugolm84
bb09c15c30 Just some qDebug 2011-09-14 18:08:19 -04:00
hugolm84
0a68b36295 Added drop event to playlistview 2011-09-14 18:08:18 -04:00
hugolm84
b4a8154eae Fixed updaterevision on empty playlist from drag 2011-09-14 18:08:16 -04:00
hugolm84
869640b2e2 Fix indent 2011-09-14 18:07:24 -04:00
hugolm84
de982f8b50 Added itunes artist link support 2011-09-14 18:07:24 -04:00
hugolm84
0ed8e62de8 Added abillity to drop itunes album link aswell 2011-09-14 18:07:23 -04:00
hugolm84
5f677d4c83 Updated header 2011-09-14 18:07:23 -04:00
hugolm84
6218cec38a Adding Itunes parser 2011-09-14 18:07:23 -04:00
hugolm84
c2d9baa9d9 Updated checkFinished 2011-09-14 18:07:14 -04:00
Leo Franchi
8f6cc7846a GCC doesn't like forward-declared shared pointers as default args, CLang does. 2011-09-14 17:04:25 -04:00
Leo Franchi
a2f139c204 Fix warnings that led to shared pointers not being correctly deleted.
See upcoming email to tomahawk-devel@ for how to avoi them in the future, this was a PITA and I don't want to do it again.
2011-09-14 16:40:58 -04:00
Christian Muehlhaeuser
22d3048017 * Tried to fix OS X layout of ToggleButton. 2011-09-14 08:19:39 +02:00
Leo Franchi
1367d82006 A bit nicer resolver error handling 2011-09-13 22:35:30 -04:00
Christian Muehlhaeuser
9572c440ea * Fixed unbalanced QPainter save / restore. 2011-09-13 11:03:58 +02:00
Christian Muehlhaeuser
45b57b715f * Use a QWeakPointer to guard Connection pointers. 2011-09-13 10:47:10 +02:00
Christian Muehlhaeuser
48e3eb877d * Fixed issue where Servent would never emit ready when UPnP returns an invalid ip. 2011-09-13 09:02:23 +02:00
Christian Muehlhaeuser
9ec9fb9362 * Fixed playlist issues which caused dupe playlist_items. 2011-09-13 07:05:19 +02:00
Christian Muehlhaeuser
f32c1f1338 * Don't assert when creating a fresh playlist. 2011-09-12 21:06:42 +02:00
Leo Franchi
4f14ce96cb Fix hanging on shutdown introduced by refactor commit 2011-09-12 12:28:25 -04:00
Leo Franchi
aeeff01d64 Don't send config message to resolvers more than once 2011-09-12 11:20:51 -04:00
Christian Muehlhaeuser
2bc71743de * Fix for getting out of sync with locally changed playlists. 2011-09-12 15:17:37 +02:00
Christian Muehlhaeuser
0cffdf124a * Assert when optimistic locking fails. 2011-09-12 14:45:08 +02:00
Christian Muehlhaeuser
789b698e7a * Keep checking revision queue. 2011-09-12 13:55:55 +02:00
Christian Muehlhaeuser
0dbe87e2f4 * Don't update playlist revision with result hints if it's already out of date. 2011-09-12 13:52:54 +02:00
Christian Muehlhaeuser
0e069c6b88 * Eliminate extra margin on OSX. 2011-09-12 11:33:55 +02:00
Christian Muehlhaeuser
f4ccb9f802 * Updated README. 2011-09-12 11:09:47 +02:00
Christian Muehlhaeuser
3bf2fa1237 * Fixed not finding / using local libquazip. 2011-09-12 10:56:39 +02:00
Christian Muehlhaeuser
7609906994 * Fix compiling. 2011-09-12 10:46:48 +02:00
Christian Muehlhaeuser
c626a161cd * A 'little' spring cleaning. Or at least that's what it feels like. Exhausted. 2011-09-12 10:41:39 +02:00
Christian Muehlhaeuser
bcf84c2b8c * Store last processed dbcmd guid in Source in case a DBSyncConnection dies on us. 2011-09-12 08:30:36 +02:00
Christian Muehlhaeuser
d15878555f * Let's put an 'empty dbcmd list' assert in DBSyncConnection and see if we ever hit this condition. 2011-09-12 08:18:31 +02:00
Christian Muehlhaeuser
5121d060db * Moved more debug output to LOGVERBOSE level. 2011-09-12 07:58:15 +02:00
Christian Muehlhaeuser
f48c2c9b5c * Cleanup debug output a bit. 2011-09-12 07:28:40 +02:00
Christian Muehlhaeuser
2c9c5ea8bb * Fixed shutdown sequence while ongoing database replication. 2011-09-12 07:16:47 +02:00
Christian Muehlhaeuser
2b8a1fa2ca * Request last known guid from command queue if it's filled. 2011-09-12 06:33:22 +02:00
Christian Muehlhaeuser
6c55d1e510 * Make DBSyncConnection simpler and hopefully more fail-safe. 2011-09-12 06:29:40 +02:00
Christian Muehlhaeuser
577a706b9f * Remove breakpad related stuff again. 2011-09-12 02:54:59 +02:00
Christian Muehlhaeuser
e7d78ea52e * Moved AtticaManager and all its deps into libtomahawk. 2011-09-12 02:52:52 +02:00
Dominik Schmidt
2b947254d5 Convert quazip to unix linebreaks 2011-09-12 01:24:35 +02:00
Dominik Schmidt
32da3965f8 Fix win compilations 2011-09-12 01:21:10 +02:00
Leo Franchi
44e10db28d Slightly wider dialog 2011-09-11 18:16:24 -04:00
Leo Franchi
bc96846839 Merge branch 'ghns'
Conflicts:
	src/settingsdialog.cpp
	src/stackedsettingsdialog.ui
2011-09-11 18:15:30 -04:00
Leo Franchi
1425b68c39 Fix compile without libattica 2011-09-11 17:29:37 -04:00
Leo Franchi
f3e45bd240 Sort by download count for now, and only fetch a proper url 2011-09-11 17:18:51 -04:00
Leo Franchi
d2bd6b8744 Support resolver icons 2011-09-11 17:18:51 -04:00
Leo Franchi
dbb9d14deb Refactor the resolver system a bit so we have real objects instead of paths 2011-09-11 17:18:35 -04:00
Leo Franchi
6ec2fae320 Better title for dialog :) 2011-09-11 17:18:35 -04:00
Leo Franchi
ef81026ffb Enable as soon as we install a resolver 2011-09-11 17:18:34 -04:00
Leo Franchi
45a276cf33 Be safer 2011-09-11 17:18:29 -04:00
Leo Franchi
c6259d2feb make compile without attica 2011-09-11 17:18:28 -04:00
Leo Franchi
3a7cab851d Functional downloading, installing, uninstalling, managing 2011-09-11 17:18:22 -04:00
Leo Franchi
158bbff8de add quazip and some code to unpack 2011-09-11 17:18:22 -04:00
Leo Franchi
3f457d4a00 Add a view for libattica-provided GHNS resolvers 2011-09-11 17:17:56 -04:00
Christian Muehlhaeuser
9cb06d70b2 * Added .DS_Store to .gitignore. 2011-09-11 10:48:59 +02:00
Christian Muehlhaeuser
e616e33239 * Tweak some more on OS X. 2011-09-11 09:15:58 +02:00
Christian Muehlhaeuser
c2c6ace3e5 * Fix layout some more. 2011-09-11 08:58:11 +02:00
Christian Muehlhaeuser
7fa7fe3886 * Try to fix settings dialog margin a bit. 2011-09-11 08:54:34 +02:00
Christian Muehlhaeuser
8f61715b6d * Remove obsolete filepath picker method. 2011-09-11 08:46:36 +02:00
Christian Muehlhaeuser
e4918e777e * Fixed TWK-91: Support multi-folder scanning. 2011-09-11 08:41:29 +02:00
Jeff Mitchell
19da9ef754 Properly check for empty directory so the right code path for deleting individual files on scan is hit...doesn't fix update problems though, but at least the right file urls are now making it to Collection::deleteTracks 2011-09-10 17:39:51 -04:00
Jeff Mitchell
0a07750efb How about not telling the source list we're done until we're actually done 2011-09-10 17:13:42 -04:00
Jeff Mitchell
c78fe2f701 Actually remove deleted files from the collection 2011-09-10 14:49:19 -04:00
Jeff Mitchell
9ea1fa7f4b Pedantic whitespace fixing 2011-09-10 14:07:51 -04:00
Christian Muehlhaeuser
b9087ad7b7 * Make results singletons, based on its url. Now we can call Result's toQuery() without re-resolving. Much nicer. 2011-09-10 13:16:38 +02:00
Christian Muehlhaeuser
efaa1eb18f * If we couldn't shorten the url, emit the longUrl as shortUrl. 2011-09-10 12:07:22 +02:00
Christian Muehlhaeuser
89f39f1a1f * Use short-urls when copying track url to clipboard. 2011-09-10 12:00:30 +02:00
Christian Muehlhaeuser
b0ae9fead5 * Fix GlobalActionManager's shortenUrl. 2011-09-10 11:46:05 +02:00
Alejandro Wainzinger
983acfc7e4 Fix URL encoding. 2011-09-10 02:34:25 -07:00
Alejandro Wainzinger
79920efe4f Add error checking when can't get short url. 2011-09-10 02:16:15 -07:00
Alejandro Wainzinger
b250d13362 Add support for getting short links, make Adium use it by default. 2011-09-10 02:16:15 -07:00
Alejandro Wainzinger
df13198c5c First work at shorten-link stuff, does not compile. 2011-09-10 02:16:15 -07:00
Christian Muehlhaeuser
202c4b821e * No need to access SourceList's singleton inside SourceList. 2011-09-10 09:35:50 +02:00
Christian Muehlhaeuser
e789066b9b * Fixed SourceList's get( id ) for id being 0. 2011-09-10 09:34:17 +02:00
Christian Muehlhaeuser
46ffedf530 * Set current track's playlist correctly. 2011-09-10 09:29:17 +02:00
Christian Muehlhaeuser
fd72e7fa4e * Remove obsolete ruby scripts in liblastfm. 2011-09-10 09:28:40 +02:00
Christian Muehlhaeuser
a9e08a7104 * Gnah. Fix wrong include. 2011-09-10 08:44:21 +02:00
Christian Muehlhaeuser
442a933f9b * Fixed OS X compile, some more. 2011-09-10 08:41:51 +02:00
Christian Muehlhaeuser
a2d6d82d83 * Fix OS X compile. 2011-09-10 08:37:29 +02:00
Christian Muehlhaeuser
2a7adda968 * Manually crafted layout for the social actions in AudioControls. 2011-09-10 07:21:06 +02:00
Christian Muehlhaeuser
98aaec0ffd * Queue refreshs in RecentPlaylistsModel. Prevents nasty flickering on startup. 2011-09-10 07:02:43 +02:00
Christian Muehlhaeuser
c0183aa359 * Can't reparent nam in liblastfm. 2011-09-10 07:02:03 +02:00
Christian Muehlhaeuser
c3197a39b0 * Be consistent with 'My Collection'. 2011-09-10 06:16:00 +02:00
Christian Muehlhaeuser
6789c1f032 * Improved collection syncing, this should prevent any dupes. 2011-09-10 06:00:19 +02:00
Christian Muehlhaeuser
6fe1d178dd * Thread-safety for liblastfm. 2011-09-10 05:45:57 +02:00
Christian Muehlhaeuser
859d2e8641 * Fixed crash in AudioEngine. 2011-09-10 05:32:31 +02:00
Christian Muehlhaeuser
3787eefa48 * Added Xspf.h to moc headers. 2011-09-10 05:20:21 +02:00
Christian Muehlhaeuser
54f280f792 * Yet another final annoying win fix... :-/ 2011-09-10 05:11:10 +02:00
Christian Muehlhaeuser
401f691359 * Yet another final win fix... :-/ 2011-09-10 05:08:45 +02:00
Christian Muehlhaeuser
77b0adaf7f * Another final win fix... :-/ 2011-09-10 05:05:48 +02:00
Christian Muehlhaeuser
7b5ab89fef * Final win fix. 2011-09-10 05:02:45 +02:00
Christian Muehlhaeuser
464170cca9 * Try fix win compiling some more. 2011-09-10 04:59:38 +02:00
Christian Muehlhaeuser
dcdb937cf3 * Fixed ws.cpp with Qt 4.8. 2011-09-10 04:50:54 +02:00
Christian Muehlhaeuser
2c180c6123 * Try fixing win compile some more. 2011-09-10 04:45:44 +02:00
Christian Muehlhaeuser
1540b7b5bf * Fixed win32 compile. 2011-09-10 04:38:31 +02:00
Christian Muehlhaeuser
030b91ba9f * Updated liblastfm2 to latest snapshot. 2011-09-10 04:34:34 +02:00
Christian Muehlhaeuser
76d4821295 * Moved OS X definitions to CMakeLists.txt, so we can easily re-merge upstream of miniupnp. 2011-09-10 03:43:35 +02:00
Christian Muehlhaeuser
e72cf5423c * Updated README. 2011-09-09 13:07:59 +02:00
Christian Muehlhaeuser
ad7ac35422 * Fixed layout margins after adding QSplitters. 2011-09-09 13:04:06 +02:00
Christian Muehlhaeuser
ea21848811 * Greatly improved sidebar performance by pre-caching all QIcons. 2011-09-09 12:14:40 +02:00
Christian Muehlhaeuser
a65d037def * Fixed crash bug in AudioEngine: timer-events can arrive after we called stop. 2011-09-09 11:29:22 +02:00
Christian Muehlhaeuser
a667fbd8b4 * Fixed ToggleButton not staying 'down' as it should. 2011-09-09 10:42:00 +02:00
Christian Muehlhaeuser
92240b6e0c * Added InfoSystem support to TreeModel.
* Added 'Official Releases Only' toggle-button on Artist Page.
* Cleaned up a few sources.
2011-09-09 10:27:37 +02:00
Christian Muehlhaeuser
20eeaf73ac * Added ToggleButton, a header-style PushButton with a toggle state. 2011-09-09 10:24:29 +02:00
Christian Muehlhaeuser
a1314347f9 * Try to fix OS X compile. 2011-09-09 02:31:38 +02:00
Christian Muehlhaeuser
fab69e3cae * Updated miniupnp and added blocked devices support to libportfwd. 2011-09-09 02:26:22 +02:00
Christian Muehlhaeuser
cc2cc8397e * Added debug output to DBSyncConnection. 2011-09-07 20:32:47 +02:00
Christian Muehlhaeuser
fe7d128056 * Fixed TWK-499: Update playlist either wether it's been a move or a copy. 2011-09-07 05:33:13 +02:00
Christian Muehlhaeuser
d3a8f57e1c * Always use tr() when defining user visible text. 2011-09-07 05:23:29 +02:00
Christian Muehlhaeuser
96c279275e * On non X11 set our default volume to 75%. 2011-09-07 05:11:00 +02:00
Christian Muehlhaeuser
d6a504c38b * Fixed TWK-416: Show when a playlist was created. 2011-09-07 04:53:15 +02:00
Christian Muehlhaeuser
b1224c0a2b * Fixed TWK-379: Properly parent 'Export Playlist' dialog and store/restore last used path. 2011-09-07 04:42:05 +02:00
Christian Muehlhaeuser
694787c8d6 * Update ChangeLog. 2011-09-07 04:41:26 +02:00
Christian Muehlhaeuser
8a6254c47e * Fixed TWK-101: Don't cancel system logout / shutdown. 2011-09-07 04:17:11 +02:00
Dominik Schmidt
216d4511f7 Fix cmake for clang 2011-09-06 23:45:33 +02:00
Christian Muehlhaeuser
043aa8755d * Use Q_WS_* instead of WIN32 / Q_OS_*. 2011-09-06 08:53:08 +02:00
Christian Muehlhaeuser
e772dcecad * Fixed TWK-438: Get rid of splitter handles in the sidebar. 2011-09-06 08:16:43 +02:00
Christian Muehlhaeuser
ac99970bd4 * Get rid of compiler warning. 2011-09-06 08:13:47 +02:00
Christian Muehlhaeuser
7547250631 * Fixed TWK-464: Remove items from queue if you manually start them from there. 2011-09-06 07:45:42 +02:00
Christian Muehlhaeuser
06bd6edc8c * Fixed TWK-380: Added & cleaned up splitters on a few pages. 2011-09-06 07:26:26 +02:00
Christian Muehlhaeuser
98aa2a447e * Fixed TWK-436: Use search icon for search pages. 2011-09-06 06:52:39 +02:00
Christian Muehlhaeuser
00973e6365 * Use cached sortname instead of recalculating it over and over again. 2011-09-06 06:43:52 +02:00
Christian Muehlhaeuser
dc11760640 * Fixed TWK-281: Ignore leading the when sorting by artist name. 2011-09-06 06:35:14 +02:00
Christian Muehlhaeuser
1f955ae8d5 * Be prepared for avatar-less sources. 2011-09-06 05:59:47 +02:00
Christian Muehlhaeuser
8c6ef2f533 * Fixed TWK-378: Show source avatar when viewing a collection. 2011-09-06 05:49:33 +02:00
Christian Muehlhaeuser
d4f12d6d33 * Fixed TWK-481: New Playlist dialog is too small. 2011-09-06 05:35:01 +02:00
Christian Muehlhaeuser
00f2195dd2 * Cleaned up StyleHelper and use it in ContextWidget. 2011-09-06 05:14:45 +02:00
Christian Muehlhaeuser
23ecf1264f * Renamed contextual view to 'Footnotes'. 2011-09-06 04:55:50 +02:00
Christian Muehlhaeuser
7fcdbe9c9e * Improved score calculation and handling. Tomahawk now calculates all the scores internally and doesn't rely on resolvers providing it anymore. 2011-09-06 04:40:08 +02:00
Christian Muehlhaeuser
8fa8f9b733 * Fixed crashing when quickly resetting filter patterns in TreeProxyModel. 2011-09-06 03:45:13 +02:00
Christian Muehlhaeuser
7a731c0fa5 * Guard Connection pointers with a QWeakPointer. 2011-09-06 03:06:56 +02:00
Jason Herskowitz
700e53eb2c Adding images for footnotes and queue headers. Open, close, expand and collapse. 2011-09-05 08:45:25 -04:00
Christian Muehlhaeuser
5968d6c903 * Installing a scene filter doesn't work. Not needed either. 2011-09-05 12:28:46 +02:00
Christian Muehlhaeuser
c7317dbe54 * Updated ChangeLog. 2011-09-05 12:26:00 +02:00
Christian Muehlhaeuser
031f52f6b7 * Only linux seems to behave wrong here... maybe it's Oxygen-style. Need to investigate. 2011-09-05 11:58:07 +02:00
Christian Muehlhaeuser
fa6579f8f0 * Static gradient for InfoBar speeds up window resizing. 2011-09-05 11:04:02 +02:00
Christian Muehlhaeuser
c9c99d58ab * Fixed search-input layout on non-OSX. 2011-09-05 10:56:29 +02:00
Christian Muehlhaeuser
b9d6548243 * Moved infobar/ out of the playlist/ dir. 2011-09-05 10:40:12 +02:00
Christian Muehlhaeuser
914c02b7ab * Moved widgets out of utils/ dir. 2011-09-05 10:37:14 +02:00
Christian Muehlhaeuser
b83a7bed00 * Properly elide artist's biography on artist-page. 2011-09-05 10:28:21 +02:00
Christian Muehlhaeuser
f3c19779cd * Fine-tuned filtering tree-models. 2011-09-05 09:26:45 +02:00
Christian Muehlhaeuser
9ef5894685 * Move TreeModel filtering to TreeProxyModel. 2011-09-05 06:32:40 +02:00
Christian Muehlhaeuser
71117d3c42 * Filter word by word, not the total term, e.g. 'rock you we will' finds 'we will rock you'. 2011-09-05 05:50:08 +02:00
Casey Link
079f758b66 Update the WhatsHot widget to fetch and correctly display charts based on the selection in the breadcrumb. For the moment I've removed the right panel, but it will be coming back (probably). 2011-09-04 22:37:09 -05:00
Casey Link
dd83f121c8 When the selected crumb doesn't have any children, emit the parent as having been selected. 2011-09-04 22:37:09 -05:00
Casey Link
8f326ee41b Add a signal to tell the outside world when the crumb changed. 2011-09-04 22:37:09 -05:00
Casey Link
f32320fd67 Fix detection of tracks/artists charts in lastfm 2011-09-04 22:37:09 -05:00
Casey Link
0a7e49f6d5 Change how chart lists and charts are passed through the info system. 2011-09-04 22:37:09 -05:00
Christian Muehlhaeuser
33d8c0314c * Allow filtering by album name. 2011-09-05 04:56:11 +02:00
Christian Muehlhaeuser
b73d5b4424 * Fixed filtering by artist name. 2011-09-05 04:52:28 +02:00
Christian Muehlhaeuser
c4a450e5de * Add filter capabilities to TreeModel / -View. 2011-09-05 04:50:30 +02:00
Jason Herskowitz
b32ac0cf04 New filter icon if we can use it with native search component 2011-09-04 22:10:47 -04:00
Christian Muehlhaeuser
52c0e9993b * Fixed filter behaviour. 2011-09-05 03:52:41 +02:00
Christian Muehlhaeuser
1c3b3e9173 * Bring back the filter, move deps into libtomahawk/thirdparty/. 2011-09-05 02:51:41 +02:00
Christian Muehlhaeuser
9690276079 * Fixed TWK-278: Store columns after reordering and introduce ViewHeader as a base-class for self-restoring QHeaderViews. 2011-09-04 12:35:52 +02:00
Christian Muehlhaeuser
58362883b3 * Some more cleanups. 2011-09-04 08:58:09 +02:00
Christian Muehlhaeuser
5b8f35294b * Don't react to hover events unless TrackView is in Detailed mode. 2011-09-04 08:49:37 +02:00
Christian Muehlhaeuser
12c5b18b05 * Resize ContextPage's columns. 2011-09-04 08:45:31 +02:00
Christian Muehlhaeuser
05315b14bd * Add forgotten ui file. 2011-09-04 07:25:21 +02:00
Christian Muehlhaeuser
dd842a1393 * Removed ugly queue button for good. 2011-09-04 07:23:54 +02:00
Christian Muehlhaeuser
a467b8f2e8 * Added initial ContextView. Yikes. 2011-09-04 04:23:10 +02:00
1928 changed files with 529527 additions and 18143 deletions

1
.gitignore vendored
View File

@@ -17,3 +17,4 @@ clang/
win/
gcc/
tags
.DS_Store

6
.gitmodules vendored
View File

@@ -1,6 +0,0 @@
[submodule "thirdparty/jreen"]
path = thirdparty/jreen
url = git://github.com/euroelessar/jreen.git
[submodule "thirdparty/qtweetlib/QTweetLib"]
path = thirdparty/qtweetlib/QTweetLib
url = git://github.com/minimoog/QTweetLib.git

View File

@@ -15,15 +15,18 @@ SET( TOMAHAWK_APPLICATION_NAME "Tomahawk" )
SET( TOMAHAWK_DESCRIPTION_SUMMARY "The social media player" )
SET( TOMAHAWK_VERSION_MAJOR 0 )
SET( TOMAHAWK_VERSION_MINOR 2 )
SET( TOMAHAWK_VERSION_PATCH 99 )
SET( TOMAHAWK_VERSION_MINOR 4 )
SET( TOMAHAWK_VERSION_PATCH 2 )
#SET( TOMAHAWK_VERSION_RC 0 )
# enforce proper symbol exporting on all platforms
add_definitions( "-fvisibility=hidden" )
# build options
option(BUILD_GUI "Build Tomahawk with GUI" ON)
option(BUILD_RELEASE "Generate TOMAHAWK_VERSION without GIT info" OFF)
option(LEGACY_KDE_INTEGRATION "Install tomahawk.protocol file, deprecated since 4.6.0" OFF)
# generate version string
@@ -48,13 +51,15 @@ IF( NOT BUILD_RELEASE )
ENDIF()
# set paths
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
# make predefined install dirs available everywhere
INCLUDE(GNUInstallDirs)
# installer creation
INCLUDE( TomahawkCPack.cmake )
@@ -69,7 +74,7 @@ IF( NOT BUILD_GUI )
MESSAGE( STATUS "Building Tomahawk ${TOMAHAWK_VERSION} in HEADLESS mode ***" )
ELSE()
MESSAGE( STATUS "Building Tomahawk ${TOMAHAWK_VERSION} full GUI version ***" )
LIST(APPEND NEEDED_QT4_COMPONENTS "QtGui" "QtWebkit" )
LIST(APPEND NEEDED_QT4_COMPONENTS "QtGui" "QtWebkit" "QtUiTools" )
ENDIF()
IF( BUILD_GUI AND UNIX AND NOT APPLE )
@@ -77,7 +82,7 @@ IF( BUILD_GUI AND UNIX AND NOT APPLE )
ENDIF()
macro_optional_find_package(Qt4 4.7.0 COMPONENTS ${NEEDED_QT4_COMPONENTS} )
macro_log_feature(QT4_FOUND "Qt" "A cross-platform application and UI framework" "http://qt.nokia.com" TRUE "" "If you see this, although libqt4-devel is installed, check whether \n the qtwebkit-devel package is installed as well")
macro_log_feature(QT4_FOUND "Qt" "A cross-platform application and UI framework" "http://qt.nokia.com" TRUE "" "If you see this, although libqt4-devel is installed, check whether the \n qtwebkit-devel package and whatever contains QtUiTools is installed too")
macro_optional_find_package(Phonon 4.5.0)
macro_log_feature(PHONON_FOUND "Phonon" "The Phonon multimedia library" "http://phonon.kde.org" TRUE "" "")
@@ -85,8 +90,8 @@ if(PHONON_FOUND)
message(STATUS "Phonon found; ensure that phonon-vlc is at least 0.4")
endif()
macro_optional_find_package(LibEchonest 1.1.7)
macro_log_feature(LIBECHONEST_FOUND "Echonest" "Qt library for communicating with The Echo Nest" "http://projects.kde.org/libechonest" TRUE "" "libechonest 1.1.8 is needed for dynamic playlists and the infosystem")
macro_optional_find_package(LibEchonest 1.1.10)
macro_log_feature(LIBECHONEST_FOUND "Echonest" "Qt library for communicating with The Echo Nest" "http://projects.kde.org/libechonest" TRUE "" "libechonest 1.1.10 is needed for dynamic playlists and the infosystem")
macro_optional_find_package(CLucene 0.9.23)
macro_log_feature(CLucene_FOUND "CLucene" "The open-source, C++ search engine" "http://clucene.sf.net" TRUE "" "CLucene is used for indexing the collection")
@@ -105,40 +110,50 @@ macro_log_feature(Boost_FOUND "Boost" "Provides free peer-reviewed portable C++
macro_optional_find_package(QCA2)
macro_log_feature(QCA2_FOUND "QCA2" "Provides encryption and signing functions required for Grooveshark resolver" "http://delta.affinix.com/qca/" FALSE "" "")
macro_optional_find_package(LibAttica)
macro_log_feature(LIBATTICA_FOUND "libattica" "Provides support for automatic fetching and managing of resolvers from the tomahawk website" "https://projects.kde.org/projects/kdesupport/attica" FALSE "" "")
macro_optional_find_package(QuaZip)
macro_log_feature(QuaZip_FOUND "QuaZip" "Provides support for extracting downloaded resolvers automatically." "http://quazip.sourceforge.net/" FALSE "" "")
macro_optional_find_package(Jreen)
macro_log_feature(LIBJREEN_FOUND "Jreen" "Qt XMPP Library" "https://github.com/euroelessar/jreen" FALSE "" "Jreen is needed for the Jabber SIP plugin.\n")
macro_optional_find_package(QTweetLib)
macro_log_feature(QTWEETLIB_FOUND "QTweetLib" "Qt Twitter Library" "https://github.com/minimoog/QTweetLib" FALSE "" "QTweetLib is needed for the Twitter SIP plugin.\n")
IF( NOT QuaZip_FOUND )
add_subdirectory( ${CMAKE_SOURCE_DIR}/src/libtomahawk/thirdparty/quazip )
SET( QuaZip_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/libtomahawk/thirdparty/quazip )
SET( QuaZip_LIBRARY quazip )
SET( QuaZip_LIBRARIES ${QuaZip_LIBRARY} )
SET( QuaZip_FOUND true )
macro_log_feature(QuaZip_FOUND "QuaZip" "Provides support for extracting downloaded resolvers automatically. Building internal copy" "http://quazip.sourceforge.net/" FALSE "" "")
# copy headers to build/quazip so we can use proper includes inside the code
FILE( COPY ${CMAKE_SOURCE_DIR}/src/libtomahawk/thirdparty/quazip/quazip/ DESTINATION ${CMAKE_BINARY_DIR}/libtomahawk/thirdparty/quazip )
ENDIF()
# required
#While we distribute our own liblastfm2, don't need to look for it
#macro_optional_find_package(LibLastFm 0.3.3)
#macro_log_feature(LIBLASTFM_FOUND "LastFm" "Qt library for the Last.fm webservices" "https://github.com/mxcl/liblastfm" FALSE "" "liblastfm is needed for scrobbling tracks to Last.fm and fetching cover artwork")
set(LIBLASTFM_FOUND true)
#### submodules start
# automatically init submodules here, don't delete this code we may add submodules again
# this installs headers and such and should really be handled in a separate package by packagers
IF( INTERNAL_JREEN )
ADD_SUBDIRECTORY( ${THIRDPARTY_DIR}/jreen )
SET( LIBJREEN_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/thirdparty/jreen/include )
SET( LIBJREEN_LIBRARY jreen )
SET( LIBJREEN_LIBRARIES ${LIBJREEN_LIBRARY} )
SET( LIBJREEN_FOUND true )
MESSAGE(STATUS "INTERNAL libjreen: ${LIBJREEN_INCLUDE_DIR}, ${LIBJREEN_LIBRARY}")
ELSE( INTERNAL_JREEN )
macro_optional_find_package(Jreen)
ENDIF( INTERNAL_JREEN )
macro_log_feature(LIBJREEN_FOUND "Jreen" "Qt XMPP Library" "https://github.com/euroelessar/jreen" FALSE "" "Jreen is needed for the Jabber SIP plugin. \n\n Use -DINTERNAL_JREEN=ON to build the git submodule inside Tomahawk \n Be aware this installs a full jreen with headers and everything!\n")
# this installs headers and such and should really be handled in a separate package by packagers
IF( INTERNAL_QTWEETLIB )
ADD_SUBDIRECTORY( ${THIRDPARTY_DIR}/qtweetlib )
# copy headers to build/QTweetLib so we can use proper includes inside the code
FILE( COPY ${CMAKE_SOURCE_DIR}/thirdparty/qtweetlib/QTweetLib/src/ DESTINATION ${CMAKE_BINARY_DIR}/QTweetLib )
SET( QTWEETLIB_INCLUDE_DIR ${CMAKE_BINARY_DIR} )
SET( QTWEETLIB_LIBRARY tomahawk_qtweetlib )
SET( QTWEETLIB_LIBRARIES ${QTWEETLIB_LIBRARY} )
SET( QTWEETLIB_FOUND true )
MESSAGE(STATUS "INTERNAL libQTweetLib: ${QTWEETLIB_INCLUDE_DIR}, ${QTWEETLIB_LIBRARY}")
ELSE( INTERNAL_QTWEETLIB )
macro_optional_find_package(QTweetLib)
ENDIF( INTERNAL_QTWEETLIB )
macro_log_feature(QTWEETLIB_FOUND "QTweetLib" "Qt Twitter Library" "https://github.com/minimoog/QTweetLib" FALSE "" "QTweetLib is needed for the Twitter SIP plugin. \n\n Use -DINTERNAL_QTWEETLIB=ON to build the git submodule inside Tomahawk \n")
# IF( FALSE )
# IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.gitmodules)
# EXECUTE_PROCESS(COMMAND git submodule init WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
# EXECUTE_PROCESS(COMMAND git submodule update WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
# ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.gitmodules)
# ENDIF()
#### submodules end
### libportfwd
SET( LIBPORTFWD_INCLUDE_DIR ${THIRDPARTY_DIR}/libportfwd/include )
@@ -147,8 +162,8 @@ SET( LIBPORTFWD_LIBRARIES ${LIBPORTFWD_LIBRARY} )
ADD_SUBDIRECTORY( ${THIRDPARTY_DIR}/libportfwd )
# we need pthreads too
macro_optional_find_package(Threads)
macro_log_feature(THREADS_FOUND "Threads" "Threading Library" "" TRUE "" "Platform specific library for threading")
#macro_optional_find_package(Threads)
#macro_log_feature(THREADS_FOUND "Threads" "Threading Library" "" TRUE "" "Platform specific library for threading")
macro_optional_find_package(KDE4)
macro_optional_find_package(KDE4Installed)
@@ -158,9 +173,12 @@ macro_optional_find_package(KDE4Installed)
# macro_optional_find_package(KDE4)
IF(KDE4_FOUND)
#KDE4 adds and removes some compiler flags that we don't like
STRING( REPLACE "-std=iso9899:1990" "" CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
IF( CMAKE_C_FLAGS )
# KDE4 adds and removes some compiler flags that we don't like
# (only for gcc not for clang e.g.)
STRING( REPLACE "-std=iso9899:1990" "" CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
ENDIF()
ELSE()
SET( CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
ENDIF()
@@ -195,3 +213,9 @@ ADD_SUBDIRECTORY( src/libtomahawk )
SET( TOMAHAWK_LIBRARIES tomahawklib )
ADD_SUBDIRECTORY( src )
ADD_SUBDIRECTORY( admin )
IF( BUILD_GUI )
IF( NOT DISABLE_CRASHREPORTER )
ADD_SUBDIRECTORY( src/breakpad/CrashReporter )
ENDIF()
ENDIF()

View File

@@ -2,6 +2,7 @@
# This module looks for clucene (http://clucene.sf.net) support
# It will define the following values
#
# CLUCENE_INCLUDE_DIRS = CLUCENE_INCLUDE_DIR + CLUCENE_LIBRARY_DIR
# CLUCENE_INCLUDE_DIR = where CLucene/StdHeader.h can be found
# CLUCENE_LIBRARY_DIR = where CLucene/clucene-config.h can be found
# CLUCENE_LIBRARIES = the libraries to link against CLucene
@@ -12,7 +13,16 @@
INCLUDE(CheckSymbolExists)
INCLUDE(FindLibraryWithDebug)
# try to locate a patched unstable version (for comp's sake *sigh*) first
FIND_PACKAGE(CLuceneUnstable)
IF(CLUCENEUNSTABLE_FOUND)
SET(CLucene_FOUND TRUE)
SET(CLUCENE_INCLUDE_DIR ${CLUCENE_UNSTABLE_INCLUDE_DIRS})
SET(CLUCENE_INCLUDE_DIRS ${CLUCENE_INCLUDE_DIR})
SET(CLUCENE_LIBRARIES ${CLUCENE_UNSTABLE_LIBS})
#MESSAGE(FATAL_ERROR NARF)
ELSE(CLUCENEUNSTABLE_FOUND)
IF(CLucene_FIND_VERSION)
SET(CLUCENE_MIN_VERSION ${CLucene_FIND_VERSION})
ELSEIF()
@@ -98,8 +108,11 @@ ENDIF (CLUCENE_LIBRARY_DIR)
IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
SET(CLucene_FOUND TRUE)
SET(CLUCENE_INCLUDE_DIRS ${CLUCENE_LIBRARY_DIR} ${CLUCENE_INCLUDE_DIR})
ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
ENDIF(CLUCENEUNSTABLE_FOUND)
IF(CLucene_FOUND)
IF(NOT CLucene_FIND_QUIETLY)
MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARIES} version ${CLUCENE_VERSION}")
@@ -111,7 +124,8 @@ ELSE(CLucene_FOUND)
ENDIF(CLucene_FOUND)
MARK_AS_ADVANCED(
CLUCENE_INCLUDE_DIR
CLUCENE_LIBRARY_DIR
CLUCENE_INCLUDE_DIRS
CLUCENE_INCLUDE_DIR
CLUCENE_LIBRARY_DIR
CLUCENE_LIBRARIES
)

View File

@@ -0,0 +1,37 @@
# - Try to find clucene-unstable
# This is a workaround for distros, that want to ship a recent enough clucene but don't want to replace the old version
#
# CLUCENEUNSTABLE_FOUND - system has clucene-unstable
# CLUCENE_UNSTABLE_INCLUDE_DIR - the clucene-unstable include directories
# CLUCENE_UNSTABLE_LIBS - link these to use clucene-unstable
#
# (c) Dominik Schmidt <dev@dominik-schmidt.de>
#
# Include dir
find_path(CLUCENE_UNSTABLE_INCLUDE_DIR
NAMES CLucene.h
PATH_SUFFIXES clucene-unstable
PATHS ${KDE4_INCLUDE_DIR}
)
# Finally the library itself
find_library(CLUCENE_UNSTABLE_SHARED_LIB
NAMES clucene-unstable-shared
PATHS ${KDE4_LIB_DIR}
)
find_library(CLUCENE_UNSTABLE_CORE_LIB
NAMES clucene-unstable-core
PATHS ${KDE4_LIB_DIR}
)
SET( CLUCENE_UNSTABLE_LIBS ${CLUCENE_UNSTABLE_SHARED_LIB} ${CLUCENE_UNSTABLE_CORE_LIB} )
SET( CLUCENE_UNSTABLE_INCLUDE_DIRS ${CLUCENE_UNSTABLE_INCLUDE_DIR})
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLuceneUnstable DEFAULT_MSG CLUCENE_UNSTABLE_LIBS CLUCENE_UNSTABLE_INCLUDE_DIRS)
MARK_AS_ADVANCED(CLUCENE_UNSTABLE_LIBS CLUCENE_UNSTABLE_INCLUDE_DIRS)

View File

@@ -0,0 +1,63 @@
# Try to find the Attica library
# Once done this will define
#
# LIBATTICA_FOUND Indicates that Attica was found
# LIBATTICA_LIBRARIES Libraries needed to use Attica
# LIBATTICA_LIBRARY_DIRS Paths needed for linking against Attica
# LIBATTICA_INCLUDE_DIR Path needed for finding Attica include files
#
# The minimum required version of LibAttica can be specified using the
# standard syntax, e.g. find_package(LibAttica 0.20)
# Copyright (c) 2009 Frederik Gladhorn <gladhorn@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# Support LIBATTICA_MIN_VERSION for compatibility:
IF(NOT LibAttica_FIND_VERSION)
SET(LibAttica_FIND_VERSION "${LIBATTICA_MIN_VERSION}")
ENDIF(NOT LibAttica_FIND_VERSION)
# the minimum version of LibAttica we require
IF(NOT LibAttica_FIND_VERSION)
SET(LibAttica_FIND_VERSION "0.1.0")
ENDIF(NOT LibAttica_FIND_VERSION)
IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(PC_LIBATTICA QUIET libattica)
SET(LIBATTICA_DEFINITIONS ${PC_ATTICA_CFLAGS_OTHER})
ENDIF (NOT WIN32)
FIND_PATH(LIBATTICA_INCLUDE_DIR attica/provider.h
HINTS
${PC_LIBATTICA_INCLUDEDIR}
${PC_LIBATTICA_INCLUDE_DIRS}
PATH_SUFFIXES attica
)
# Store the version number in the cache, so we don't have to search everytime:
IF(LIBATTICA_INCLUDE_DIR AND NOT LIBATTICA_VERSION)
FILE(READ ${LIBATTICA_INCLUDE_DIR}/attica/version.h LIBATTICA_VERSION_CONTENT)
STRING (REGEX MATCH "LIBATTICA_VERSION_STRING \".*\"\n" LIBATTICA_VERSION_MATCH "${LIBATTICA_VERSION_CONTENT}")
IF(LIBATTICA_VERSION_MATCH)
STRING(REGEX REPLACE "LIBATTICA_VERSION_STRING \"(.*)\"\n" "\\1" _LIBATTICA_VERSION ${LIBATTICA_VERSION_MATCH})
ENDIF(LIBATTICA_VERSION_MATCH)
SET(LIBATTICA_VERSION "${_LIBATTICA_VERSION}" CACHE STRING "Version number of LibAttica" FORCE)
ENDIF(LIBATTICA_INCLUDE_DIR AND NOT LIBATTICA_VERSION)
FIND_LIBRARY(LIBATTICA_LIBRARIES NAMES attica libattica
HINTS
${PC_LIBATTICA_LIBDIR}
${PC_LIBATTICA_LIBRARY_DIRS}
)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibAttica REQUIRED_VARS LIBATTICA_LIBRARIES LIBATTICA_INCLUDE_DIR
VERSION_VAR LIBATTICA_VERSION)
MARK_AS_ADVANCED(LIBATTICA_INCLUDE_DIR LIBATTICA_LIBRARIES)

View File

@@ -19,53 +19,19 @@ macro(_phonon_find_version)
file(READ ${_phonon_namespace_header_file} _phonon_header LIMIT 5000 OFFSET 1000)
string(REGEX MATCH "define PHONON_VERSION_STR \"(4\\.[0-9]+\\.[0-9a-z]+)\"" _phonon_version_match "${_phonon_header}")
set(PHONON_VERSION "${CMAKE_MATCH_1}")
message(STATUS "Phonon Version: ${PHONON_VERSION}")
endmacro(_phonon_find_version)
if(PHONON_FOUND)
# Already found, nothing more to do except figuring out the version
# the dirs listed with HINTS are searched before the default sets of dirs
find_library(PHONON_LIBRARY NAMES phonon HINTS ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR})
find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h HINTS ${KDE4_INCLUDE_INSTALL_DIR} ${QT_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR} ${QT_LIBRARY_DIR})
if(PHONON_INCLUDE_DIR AND PHONON_LIBRARY)
set(PHONON_LIBS ${phonon_LIB_DEPENDS} ${PHONON_LIBRARY})
set(PHONON_INCLUDES ${PHONON_INCLUDE_DIR}/KDE ${PHONON_INCLUDE_DIR})
_phonon_find_version()
else(PHONON_FOUND)
if(PHONON_INCLUDE_DIR AND PHONON_LIBRARY)
set(PHONON_FIND_QUIETLY TRUE)
endif(PHONON_INCLUDE_DIR AND PHONON_LIBRARY)
endif(PHONON_INCLUDE_DIR AND PHONON_LIBRARY)
# As discussed on kde-buildsystem: first look at CMAKE_PREFIX_PATH, then at the suggested PATHS (kde4 install dir)
find_library(PHONON_LIBRARY NAMES phonon phonon4 PATHS ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR})
# then at the default system locations (CMAKE_SYSTEM_PREFIX_PATH, i.e. /usr etc.)
find_library(PHONON_LIBRARY NAMES phonon phonon4)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Phonon DEFAULT_MSG PHONON_INCLUDE_DIR PHONON_LIBRARY)
find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h PATHS ${KDE4_INCLUDE_INSTALL_DIR} ${QT_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR} ${QT_LIBRARY_DIR})
find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h)
_phonon_find_version()
if(PHONON_INCLUDE_DIR AND PHONON_LIBRARY AND NOT PHONON_VERSION VERSION_LESS ${Phonon_FIND_VERSION})
set(PHONON_LIBS ${phonon_LIB_DEPENDS} ${PHONON_LIBRARY})
set(PHONON_INCLUDES ${PHONON_INCLUDE_DIR}/KDE ${PHONON_INCLUDE_DIR})
set(PHONON_FOUND TRUE)
else(PHONON_INCLUDE_DIR AND PHONON_LIBRARY AND NOT PHONON_VERSION VERSION_LESS ${Phonon_FIND_VERSION})
set(PHONON_FOUND FALSE)
endif(PHONON_INCLUDE_DIR AND PHONON_LIBRARY AND NOT PHONON_VERSION VERSION_LESS ${Phonon_FIND_VERSION})
if(PHONON_FOUND)
if(NOT PHONON_FIND_QUIETLY)
message(STATUS "Found Phonon: ${PHONON_LIBRARY}")
message(STATUS "Found Phonon Includes: ${PHONON_INCLUDES}")
endif(NOT PHONON_FIND_QUIETLY)
else(PHONON_FOUND)
if(Phonon_FIND_REQUIRED)
if(NOT PHONON_INCLUDE_DIR)
message(STATUS "Phonon includes NOT found!")
endif(NOT PHONON_INCLUDE_DIR)
if(NOT PHONON_LIBRARY)
message(STATUS "Phonon library NOT found!")
endif(NOT PHONON_LIBRARY)
message(FATAL_ERROR "Phonon library or includes NOT found!")
else(Phonon_FIND_REQUIRED)
message(STATUS "Unable to find Phonon")
endif(Phonon_FIND_REQUIRED)
endif(PHONON_FOUND)
mark_as_advanced(PHONON_INCLUDE_DIR PHONON_LIBRARY PHONON_INCLUDES)
endif(PHONON_FOUND)
mark_as_advanced(PHONON_INCLUDE_DIR PHONON_LIBRARY)

View File

@@ -0,0 +1,11 @@
find_package(Qt4)
find_path(QuaZip_INCLUDE_DIR quazip.h ${CMAKE_INSTALL_PREFIX}/include/quazip ${CMAKE_INSTALL_PREFIX}/include /usr/include/quazip /usr/local/include/quazip ${QT_INCLUDE_DIR}/quazip ${QT_INCLUDE_DIR} ${QUAZIP_DIR}/include/quazip ${QUAZIP_DIR}/quazip ${QUAZIP_DIR}/include)
find_library(QuaZip_LIBRARY NAMES quazip PATHS ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/Library/Frameworks ${QUAZIP_DIR}/lib64 ${QUAZIP_DIR}/lib ${QUAZIP_DIR}/quazip ${QUAZIP_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(quazip DEFAULT_MSG QuaZip_LIBRARY QuaZip_INCLUDE_DIR)
set(QuaZip_LIBRARIES ${QuaZip_LIBRARY})
mark_as_advanced(QuaZip_LIBRARY QuaZip_INCLUDE_DIR)
if(QuaZip_LIBRARY AND QuaZip_INCLUDE_DIR)
set(QuaZip_FOUND TRUE)
endif()

View File

@@ -56,7 +56,7 @@ ELSE()
include(FindLibraryWithDebug)
include(FindPackageHandleStandardArgs)
find_path(TAGLIB_CFLAGS
find_path(TAGLIB_INCLUDES
NAMES
tag.h
PATH_SUFFIXES taglib

View File

@@ -0,0 +1,182 @@
# - Define GNU standard installation directories
# Provides install directory variables as defined for GNU software:
# http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
# Inclusion of this module defines the following variables:
# CMAKE_INSTALL_<dir> - destination for files of a given type
# CMAKE_INSTALL_FULL_<dir> - corresponding absolute path
# where <dir> is one of:
# BINDIR - user executables (bin)
# SBINDIR - system admin executables (sbin)
# LIBEXECDIR - program executables (libexec)
# SYSCONFDIR - read-only single-machine data (etc)
# SHAREDSTATEDIR - modifiable architecture-independent data (com)
# LOCALSTATEDIR - modifiable single-machine data (var)
# LIBDIR - object code libraries (lib or lib64)
# INCLUDEDIR - C header files (include)
# OLDINCLUDEDIR - C header files for non-gcc (/usr/include)
# DATAROOTDIR - read-only architecture-independent data root (share)
# DATADIR - read-only architecture-independent data (DATAROOTDIR)
# INFODIR - info documentation (DATAROOTDIR/info)
# LOCALEDIR - locale-dependent data (DATAROOTDIR/locale)
# MANDIR - man documentation (DATAROOTDIR/man)
# DOCDIR - documentation root (DATAROOTDIR/doc/PROJECT_NAME)
# Each CMAKE_INSTALL_<dir> value may be passed to the DESTINATION options of
# install() commands for the corresponding file type. If the includer does
# not define a value the above-shown default will be used and the value will
# appear in the cache for editing by the user.
# Each CMAKE_INSTALL_FULL_<dir> value contains an absolute path constructed
# from the corresponding destination by prepending (if necessary) the value
# of CMAKE_INSTALL_PREFIX.
#=============================================================================
# Copyright 2011 Nikita Krupen'ko <krnekit@gmail.com>
# Copyright 2011 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
# Installation directories
#
if(NOT DEFINED CMAKE_INSTALL_BINDIR)
set(CMAKE_INSTALL_BINDIR "bin" CACHE PATH "user executables (bin)")
endif()
if(NOT DEFINED CMAKE_INSTALL_SBINDIR)
set(CMAKE_INSTALL_SBINDIR "sbin" CACHE PATH "system admin executables (sbin)")
endif()
if(NOT DEFINED CMAKE_INSTALL_LIBEXECDIR)
set(CMAKE_INSTALL_LIBEXECDIR "libexec" CACHE PATH "program executables (libexec)")
endif()
if(NOT DEFINED CMAKE_INSTALL_SYSCONFDIR)
set(CMAKE_INSTALL_SYSCONFDIR "etc" CACHE PATH "read-only single-machine data (etc)")
endif()
if(NOT DEFINED CMAKE_INSTALL_SHAREDSTATEDIR)
set(CMAKE_INSTALL_SHAREDSTATEDIR "com" CACHE PATH "modifiable architecture-independent data (com)")
endif()
if(NOT DEFINED CMAKE_INSTALL_LOCALSTATEDIR)
set(CMAKE_INSTALL_LOCALSTATEDIR "var" CACHE PATH "modifiable single-machine data (var)")
endif()
if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
set(_LIBDIR_DEFAULT "lib")
# Override this default 'lib' with 'lib64' iff:
# - we are on Linux system but NOT cross-compiling
# - we are NOT on debian
# - we are on a 64 bits system
# reason is: amd64 ABI: http://www.x86-64.org/documentation/abi.pdf
# Note that the future of multi-arch handling may be even
# more complicated than that: http://wiki.debian.org/Multiarch
if(CMAKE_SYSTEM_NAME MATCHES "Linux"
AND NOT CMAKE_CROSSCOMPILING
AND NOT EXISTS "/etc/debian_version")
if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
message(AUTHOR_WARNING
"Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. "
"Please enable at least one language before including GNUInstallDirs.")
else()
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
set(_LIBDIR_DEFAULT "lib64")
endif()
endif()
endif()
set(CMAKE_INSTALL_LIBDIR "${_LIBDIR_DEFAULT}" CACHE PATH "object code libraries (${_LIBDIR_DEFAULT})")
endif()
if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "C header files (include)")
endif()
if(NOT DEFINED CMAKE_INSTALL_OLDINCLUDEDIR)
set(CMAKE_INSTALL_OLDINCLUDEDIR "/usr/include" CACHE PATH "C header files for non-gcc (/usr/include)")
endif()
if(NOT DEFINED CMAKE_INSTALL_DATAROOTDIR)
set(CMAKE_INSTALL_DATAROOTDIR "share" CACHE PATH "read-only architecture-independent data root (share)")
endif()
#-----------------------------------------------------------------------------
# Values whose defaults are relative to DATAROOTDIR. Store empty values in
# the cache and store the defaults in local variables if the cache values are
# not set explicitly. This auto-updates the defaults as DATAROOTDIR changes.
if(NOT CMAKE_INSTALL_DATADIR)
set(CMAKE_INSTALL_DATADIR "" CACHE PATH "read-only architecture-independent data (DATAROOTDIR)")
set(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}")
endif()
if(NOT CMAKE_INSTALL_INFODIR)
set(CMAKE_INSTALL_INFODIR "" CACHE PATH "info documentation (DATAROOTDIR/info)")
set(CMAKE_INSTALL_INFODIR "${CMAKE_INSTALL_DATAROOTDIR}/info")
endif()
if(NOT CMAKE_INSTALL_LOCALEDIR)
set(CMAKE_INSTALL_LOCALEDIR "" CACHE PATH "locale-dependent data (DATAROOTDIR/locale)")
set(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DATAROOTDIR}/locale")
endif()
if(NOT CMAKE_INSTALL_MANDIR)
set(CMAKE_INSTALL_MANDIR "" CACHE PATH "man documentation (DATAROOTDIR/man)")
set(CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_DATAROOTDIR}/man")
endif()
if(NOT CMAKE_INSTALL_DOCDIR)
set(CMAKE_INSTALL_DOCDIR "" CACHE PATH "documentation root (DATAROOTDIR/doc/PROJECT_NAME)")
set(CMAKE_INSTALL_DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}")
endif()
#-----------------------------------------------------------------------------
mark_as_advanced(
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_SBINDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_SYSCONFDIR
CMAKE_INSTALL_SHAREDSTATEDIR
CMAKE_INSTALL_LOCALSTATEDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_DATADIR
CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_DOCDIR
)
# Result directories
#
foreach(dir
BINDIR
SBINDIR
LIBEXECDIR
SYSCONFDIR
SHAREDSTATEDIR
LOCALSTATEDIR
LIBDIR
INCLUDEDIR
OLDINCLUDEDIR
DATAROOTDIR
DATADIR
INFODIR
LOCALEDIR
MANDIR
DOCDIR
)
if(NOT IS_ABSOLUTE ${CMAKE_INSTALL_${dir}})
set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_${dir}}")
else()
set(CMAKE_INSTALL_FULL_${dir} "${CMAKE_INSTALL_${dir}}")
endif()
endforeach()

View File

@@ -28,8 +28,8 @@
; We use official release plugins
; mingw32-vlc from obs misses a lot and has even broken ones probably
!define VLC_PATH "${SOURCE_PATH}\admin\win\vlc\prefix" ; SIC! ^
!define VLC_BIN "${VLC_PATH}\bin"
!define VLC_PATH "${SOURCE_PATH}\admin\win\vlc\" ; SIC! ^
!define VLC_BIN "${VLC_PATH}"
!define VLC_PLUGIN_PATH "${VLC_BIN}\plugins"
!define NSI_PATH "${SOURCE_PATH}/admin/win/nsi"
@@ -273,6 +273,9 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
;Main executable.
File "${INSTALL_PATH}\bin\tomahawk.exe"
File "${INSTALL_PATH}\bin\tomahawk_crash_reporter.exe"
File "${INSTALL_PATH}\bin\libtomahawk_breakpad.dll"
File "${INSTALL_PATH}\bin\libqxtweb-standalone.dll"
File "${INSTALL_PATH}\bin\libtomahawk_portfwd.dll"
File "${INSTALL_PATH}\bin\libtomahawk_lastfm2.dll"
@@ -283,6 +286,9 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
;Main executable.
File "${BUILD_PATH}\tomahawk.exe"
File "${BUILD_PATH}\tomahawk_crash_reporter.exe"
File "${BUILD_PATH}\libtomahawk_breakpad.dll"
File "${BUILD_PATH}\libtomahawklib.dll"
File "${BUILD_PATH}\libqxtweb-standalone.dll"
File "${BUILD_PATH}\libtomahawk_portfwd.dll"
@@ -299,8 +305,10 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
File "${QT_DLL_PATH}\QtGui4.dll"
File "${QT_DLL_PATH}\QtNetwork4.dll"
File "${QT_DLL_PATH}\QtSql4.dll"
File "${QT_DLL_PATH}\QtXml4.dll"
File "${QT_DLL_PATH}\QtScript4.dll"
File "${QT_DLL_PATH}\QtUiTools4.dll"
File "${QT_DLL_PATH}\QtWebKit4.dll"
File "${QT_DLL_PATH}\QtXml4.dll"
;SQLite driver
SetOutPath "$INSTDIR\sqldrivers"
@@ -321,31 +329,17 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
File "${MING_BIN}\libstdc++-6.dll"
;Phonon stuff
;Fix the phonon build to not use Dbus
File "${QT_DLL_PATH}\QtDbus4.dll"
File "${MING_BIN}\libdbus-1-3.dll"
File "${MING_BIN}\dbus-daemon.exe"
File "${VLC_BIN}\libphonon.dll"
File "${MING_BIN}\libphonon.dll"
SetOutPath "$INSTDIR\phonon_backend"
File "${VLC_BIN}\phonon_backend\phonon_vlc.dll"
SetOutPath "$INSTDIR"
;VLC
;SetOutPath "$INSTDIR\phonon_backend"
File "${VLC_BIN}\libvlc.dll"
File "${VLC_BIN}\libvlccore.dll"
SetOutPath "$INSTDIR\plugins"
File /r "${VLC_PLUGIN_PATH}\*.dll"
SetOutPath "$INSTDIR"
File "${MING_BIN}\libmad-0.dll" ; MP3
File "${MING_BIN}\libFLAC-8.dll" ; FLAC
File "${MING_BIN}\libogg-0.dll" ; OGG, FLAC
File "${MING_BIN}\libvorbis-0.dll" ; OGG
File "${MING_BIN}\libvorbisenc-2.dll" ; OGG
; Other
File "${MING_BIN}\libqjson.dll"
@@ -356,6 +350,7 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
File "${MING_BIN}\libechonest.dll"
File "${MING_BIN}\libQTweetLib.dll"
File "${MING_BIN}\libquazip.dll"
; Jabber
File "${MING_BIN}\libjreen.dll"
@@ -370,6 +365,7 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
File "${MING_LIB}\libclucene-shared.dll"
File "${MING_BIN}\libqtsparkle.dll"
File "${MING_BIN}\libattica.dll"
SectionEnd
SectionGroup "Shortcuts"
@@ -459,7 +455,8 @@ Section -post
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tomahawk" "NoRepair" "1"
; Register tomahawk:// protocol handler
WriteRegStr HKCR "tomahawk" "" "URL: Tomahawk Protocol"
WriteRegStr HKCR "tomahawk" "" "URL:Tomahawk Protocol"
WriteRegStr HKCR "tomahawk" "URL Protocol" ""
WriteRegStr HKCR "tomahawk\DefaultIcon" "" $INSTDIR\tomahawk.exe,1
WriteRegStr HKCR "tomahawk\shell" "" "open"
WriteRegStr HKCR "tomahawk\shell\open\command" "" '"$INSTDIR\tomahawk.exe" "%1"'

165
ChangeLog
View File

@@ -1,6 +1,171 @@
Version 0.4.2:
* Updated translations for various languages.
* Resuming playback restores correct volume settings.
* Reduced CPU usage during playback.
* Fixed not starting up due to case sensitivity issue on OS X.
* Fixed volume issue (too quiet) on Windows.
Version 0.4.1:
* Fixed various crashes.
* Fixed issues with auto-updating XSPF playlists.
* Double-clicking a playlist starts playing it.
* Resolvers can now return disc number and album position for results.
* Fixed sorting playlists by track number.
* Fixed issues with changing proxy.
* Fixed Twitter authentication issues.
* Fixed Grooveshark support on Windows.
Version 0.4.0:
* Added visual notification for database indexing job.
* Fixed icons not appearing in resolvers list.
* Fixed various UI glitches and stray error messages in stations.
* Fixed bug where album page would resolve bottom-to-top.
* Fixed bug where Footnotes would not update when changing selected album in Album View.
* Fixed dragging albums and artists from charts, album, and artist views.
* Fixed bug where filter text would be one step behind filter value.
* Fixed bug where resolvers would enable themselves after auto-updating.
* Fixed occasional crash when dropping tracks onto New Station item.
* Added jump-to-current-track support for search results page.
* Fixed non-resolving tracks when dragging from album view.
* Fixed fetching album covers for albums with special characters.
* Show errors and continue gracefully when resolved audio is not available.
* Fixed various crashes on exit.
* Added basic command-line options for playback control.
* Bumped up web api timeouts to allow web clients to finish resolving.
* Added filename suggestion when exporting a playlist.
* Cleaned up highlighting of artist names in album view.
* Cleaned up alignment of playlist items.
* Fixed potential crash when searching.
* Added support for disc number.
* Added SoundCloudWall.com charts.
* Added ability to "lock on" to a user when listening along, to skip along.
* Fixed bug where loved tracks would be refreshed much too often.
* Fixed some font size issues.
* Sped up Tomahawk startup by moving chart loading into a separate thread.
* Added support for parsing Grooveshark and Tinysong tracks and playlists.
* Reorganized sidebar to follow more logical item groupings.
* Added artist and album results to global searches.
* Fixed style and contrast issues when using GTK styles.
* Fixed paths to artwork when using MPRIS2 interface.
* Fixed out of sync Show/Hide menu items on OS X when hidden with cmd-h.
* Fixed /Volumes directory not showing up on OS X.
* Fixed startup crash on OS X.
Version 0.3.3:
* Automatically load Super Collection tracks when no official release
information is available.
* Fixed stations not fetching new tracks under certain circumstances.
* Fixed Footnotes not always updating when selecting a new track.
* Added support for ow.ly, fb.me, itun.es and tinyurl.com URL shorteners.
* Fixed playback issues with non-latin filenames on Windows.
* Fixed tomahawk:// protocol not working properly on Windows.
* Fixed dupe menu entry appearing on OS X.
* Fixed invisible sidebar items on Linux.
Version 0.3.2:
* Improved syncing process, it's faster and more reliable now.
* Fixed UPnP issues.
* Fixed not updating collections and views after a collection changes.
* Fixed not showing a source's proper name at all times.
* Improved music scanner reliability.
* Fixed various labels not being painted in the right color when selected.
* Support .oga (ogg mimetype) files.
* Fixed stuck Now Playing indicator icon.
* Fixed sidebar width of settings dialog on Windows.
* Fixed not always showing delete icon on hovered temporary pages.
* Fixed inability to select externally mounted drives.
* Fixed bug where speaker would be stuck next to a playlist.
* Fixed bug where first startup would show a loading spinner in the
Dashboard's "Recent Additions" forever.
* Automatically upgrade resolvers when an update is found.
* Fixed last played track of a friend never expiring.
* Fixed parsing of rdio tracks.
* Changed steering mechanism in stations to be user-friendlier.
* Fixed loading biographies of artist names with special characters.
* Fixed behaviour of dropping Spotify playlists on the sidebar.
* Fixed hard to read source-name in the audio control area on OS X.
* Fixed crashes when playing Grooveshark tracks.
* Fixed bug where clicking the latch button would flicker and unlatch.
* Fixed Jabber accounts not connecting properly when proxy is in use.
Version 0.3.1:
* Fixed not resolving to local files.
* Fixed shutdown crash on Windows.
* Support more widget types in Javascript resolver configs.
* Fixed bug where red headphone would be visible on My Collection
when listened along to source went offline.
* Draw author name as well as avatar in recently played playlists.
* Fixed Tomahawk integration in Unity.
* Fixed incorrect item selected in source tree when deleting temporary
pages.
* Fixed currently played label disappearing after 10 minutes regardless
of length of track.
* Fixed crash on Sparkle upgrade on OS X.
Version 0.3.0:
* Make artist names in the album view clickable.
* Don't start playing if a tomahawk:// link was clicked while Tomahawk
is paused.
* Make artist name clickable in header of Album pages.
* Added a drop shadow to cover images, and put placeholder in jewel case.
* Added shuffle and repeat support to tree view.
* Draw a speaker next to the currently playing playlist.
* Refresh station previews whenever a filter is changed.
* Support and show official releases on album and track pages.
* Filter out duplicates from station previews and upcoming tracks.
* Added YouTube resolver.
* Fixed bug where going offline then online would not re-connect to many
peers.
* Added support for auto-updating live XSPF playlists.
* Don't show an age of 41 years for tracks that have no age information.
* Show config UI for resolvers that have them as soon as you add them.
* Add support for Echo Nest Personal Catalogs and User Radio. Synchronize
your catalog with The Echo Nest and enable personal recommendations
from you and your friends.
* Added support for Grooveshark resolver (requires Grooveshark Anywhere).
* Fixed re-resolving when resolvers or sources go off- / online.
* Correctly sort recently played tracks on the Dashboard.
* Show a Lion full-screen toggle button if running on Lion.
* Show a list of users who are currently listening along to you.
* Show headphone icon in source item to allow users to listen along; paint
headphones red on a source if you are currently listening along to it.
* Added new job status view in the bottom of the source list that displays
current jobs such as resolving, parsing playlists, and loading from
database.
* Parse and convert a Spotify playlist URL when dropped anywhere on the
sidebar.
* Convert resolvers to use asynchronous calls to avoid blocking Tomahawk's
UI, greatly increasing responsiveness of Tomahawk while resolving.
* Fixed no playlists overlay not disappearing when playlists were added.
* Add support for parsing itunes track, artist and album links.
* Fixed crash when syncing playlists with peers.
* Add support for browsing, downloading and rating resolvers from within
Tomahawk directly.
* Support multi-folder selection and scanning.
* Fixed handling of special characters in tomahawk:// links
* Improve sidebar performance by caching pixmaps and shrinking them.
* Send updated playlists to peers when tracks are moved/copied.
* Remove splitter handles in sidebar.
* Fixed Tomahawk preventing system shutdown / logout.
* Ignore leading 'The' when sorting artists.
* Added Charts page, which shows various sources' top hits & artists.
* The Collection tree-views can now be filtered.
* Fixed crash when pressing enter in an empty playlist.
* Moved the song queue to the bottom of the sidebar.
* Added Footnotes, a contextual view that you can slide it.
* Show recently added playlists in dashboard rather than recently opened
playlists.
* Fixed seek slider and give it some smooth animation between ticks.
* Fixed Twitter issue where it would repeatedly send DMs to friends.
* Add a new drag and drop menu when dropping items onto playlists,
allowing users to drop the dragged tracks, the whole album, or
the whole artists's tracks.
* Bring Tomahawk window to the front when clicking a Tomahawk link.
* Fixed crash in source list when initially syncing with remote sources.
* Open temporary artist, album, and search playlists as temporary items
in the sidebar.
* Fixed sorting of playlists and items in the artist view.
* Allow dragging and dropping albums and artists to playlists.
* Added MPRIS 2.1 support.
Version 0.2.3:

27
README
View File

@@ -27,18 +27,25 @@ Doxygen Documentation
Dependencies
------------
CMake 2.8.0 http://www.cmake.org/
Qt 4.7.0 http://qt.nokia.com/
QJson 0.7.1 http://qjson.sourceforge.net/
SQLite 3.6.22 http://www.sqlite.org/
TagLib 1.6.2 http://developer.kde.org/~wheeler/taglib.html
Boost 1.3x http://www.boost.org/
CLucene 0.9.23 (0.9.21 will fail) http://clucene.sourceforge.net/download.shtml
libechonest 1.1.8 http://projects.kde.org/projects/playground/libs/libechonest/
CMake 2.8.0 - http://www.cmake.org/
Qt 4.7.0 - http://qt.nokia.com/
QJson 0.7.1 - http://qjson.sourceforge.net/
SQLite 3.6.22 - http://www.sqlite.org/
TagLib 1.6.2 - http://developer.kde.org/~wheeler/taglib.html
Boost 1.3 - http://www.boost.org/
CLucene 0.9.23 (0.9.21 will fail) - http://clucene.sourceforge.net/download.shtml
libechonest 1.2.0 - http://projects.kde.org/projects/playground/libs/libechonest/
The following dependencies are optional, but recommended:
Attica 0.2.0 - ftp://ftp.kde.org/pub/kde/stable/attica/
QuaZip 0.4.3 - http://quazip.sourceforge.net/
Jreen 1.0.3 - https://github.com/euroelessar/jreen
QTweetLib 0.5.0 - https://github.com/minimoog/QTweetLib
Third party libraries that we ship with our source:
MiniUPnP http://miniupnp.free.fr/
liblastfm 0.4.0 http://github.com/jonocole/liblastfm/
MiniUPnP 1.6 - http://miniupnp.free.fr/
liblastfm 0.4.0 - http://github.com/jonocole/liblastfm/
Enjoy!

View File

@@ -1,3 +1,3 @@
IF(WIN32)
INSTALL(DIRECTORY win DESTINATION share/tomahawk/admin )
ENDIF(WIN32)
ENDIF(WIN32)

5
admin/copy_syms.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
DUMPID=`head -n1 $1 | cut -f4 -d' '`
mkdir -p $2/$DUMPID
cp $1 $2/$DUMPID/

View File

@@ -41,7 +41,7 @@ VERSION=$1
header "Copying Sparkle framework"
cp -R /Library/Frameworks/Sparkle.framework Contents/Frameworks
header "Creating DMG"
cd ..

View File

@@ -207,7 +207,7 @@ TOMAHAWK_PLUGINS = [
]
QT_PLUGINS_SEARCH_PATH=[
'/usr/local/Cellar/qt/4.7.3/plugins',
'/usr/local/Cellar/qt/4.7.4/plugins',
]
@@ -491,7 +491,7 @@ def FindVLCPlugin(name):
FixBinary(binary)
for plugin in VLC_PLUGINS:
FixVLCPlugin(FindVLCPlugin(plugin), '.')
FixVLCPlugin(FindVLCPlugin(plugin), '../Frameworks/vlc/plugins')
for plugin in TOMAHAWK_PLUGINS:
FixPlugin(plugin, '../MacOS')
@@ -500,6 +500,11 @@ try:
FixPlugin('spotify_tomahawkresolver', '../MacOS')
except:
print 'Failed to find spotify resolver'
try:
FixPlugin('tomahawk_crash_reporter', '../MacOS')
except:
print 'Failed to find tomahawk_crash_reporter'
for plugin in QT_PLUGINS:
FixPlugin(FindQtPlugin(plugin), os.path.dirname(plugin))

View File

@@ -4,8 +4,9 @@ Version=1.0
Name=Tomahawk
GenericName=Music Player
TryExec=tomahawk
Exec=tomahawk
Exec=tomahawk %u
Comment=Tomahawk - Social Music Player
Icon=tomahawk
Terminal=false
Categories=Qt;AudioVideo;Audio;Player;
MimeType=x-scheme-handler/tomahawk;

View File

@@ -3,9 +3,12 @@ SET(MINGW_PREFIX "i686-w64-mingw32")
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
# specify the cross compiler
SET(CMAKE_C_COMPILER ccache ${MINGW_PREFIX}-gcc)
SET(CMAKE_C_FLAGS "-fno-keep-inline-dllexport")
SET(CMAKE_CXX_COMPILER ccache ${MINGW_PREFIX}-g++)
SET(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
SET(CMAKE_RC_COMPILER /usr/bin/${MINGW_PREFIX}-windres)
# where is the target environment containing libraries
@@ -15,13 +18,6 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# libs with broken find modules
SET(TAGLIB_FOUND true)
SET(TAGLIB_LIBRARIES ${CMAKE_FIND_ROOT_PATH}/lib/libtag.dll.a)
SET(TAGLIB_INCLUDES ${CMAKE_FIND_ROOT_PATH}/include/taglib)
# configure qt variables
SET(QT_LIBRARY_DIR /usr/${MINGW_PREFIX}/bin)
SET(QT_PLUGINS_DIR ${CMAKE_FIND_ROOT_PATH}/lib/qt4/plugins/)
SET(QT_QTUITOOLS_LIBRARY_RELEASE ${CMAKE_FIND_ROOT_PATH}/lib/libQtUiTools.a)
SET(QT_QTUITOOLS_LIBRARY_DEBUG ${CMAKE_FIND_ROOT_PATH}/lib/libQtUiToolsd.a)
SET(QT_QTUITOOLS_LIBRARY ${QT_QTUITOOLS_LIBRARY_RELEASE})

View File

@@ -1,42 +1,52 @@
#!/bin/bash
echo "Remove old vlc dir..."
mkdir -p vlc/
cd vlc/
if [ "$1" = "-c" ] ; then
echo "Continuing last download.."
rm -rvf vlc/
else
echo "Update archive..."
fi
#rm -vf vlc-*.7z
#rm -rf vlc/
rm -rvf vlc/
echo "Download specified binary..."
#wget -c "http://downloads.sourceforge.net/project/vlc/1.1.9/win32/vlc-1.1.9-win32.7z?r=http%3A%2F%2Fwww.videolan.org%2Fvlc%2Fdownload-windows.html&ts=1306272584&use_mirror=leaseweb"
#wget -c "http://download.tomahawk-player.org/tomahawk-vlc-0.1.zip"
wget -c http://people.videolan.org/~jb/phonon/phonon-vlc-last.7z
echo "Download phonon archive..."
# wget -c "http://downloads.sourceforge.net/project/vlc/1.1.9/win32/vlc-1.1.9-win32.7z?r=http%3A%2F%2Fwww.videolan.org%2Fvlc%2Fdownload-windows.html&ts=1306272584&use_mirror=leaseweb"
# wget -c "http://download.tomahawk-player.org/tomahawk-vlc-0.1.zip"
# wget -c http://people.videolan.org/~jb/phonon/phonon-vlc-last.7z
# wget -c http://people.videolan.org/~jb/phonon/phonon_phonon-vlc_20111128.7z
wget -c http://download.tomahawk-player.org/test/pvlc.tar.bz2
echo "Extract binary..."
7z x phonon-vlc-last.7z
#mv -v vlc-*/ vlc/
#unzip tomahawk-vlc-0.1.zip
# 7z x phonon*.7z
# mv -v vlc-*/ vlc/
# unzip tomahawk-vlc-0.1.zip
tar xvjf pvlc.tar.bz2
echo "Strip unneeded plugins from vlc/plugins..."
cd prefix/bin/plugins
rm -rvf libold* libvcd* libdvd* liblibass* libx264* libschroe* liblibmpeg2* \
libstream_out_* libmjpeg_plugin* libh264_plugin* libzvbi_plugin* lib*sub* \
*qt4* *skins2* libaccess_bd_plugin.dll \
libaudiobargraph_* libball_plugin.dll \
libdirac_plugin.dll \
libgnutls_plugin.dll \
libcaca_plugin.dll \
libfreetype_plugin.dll \
libaccess_output_shout_plugin.dll \
libremoteosd_plugin.dll \
libsdl_image_plugin.dll \
libvout_sdl_plugin.dll \
libpng_plugin.dll \
libgoom_plugin.dll \
libatmo_plugin.dll \
libmux_ts_plugin.dll \
libkate_plugin.dll \
libtaglib_plugin.dll
# echo "Download phonon_vlc_no_video.dll..."
# wget -c http://people.videolan.org/~jb/phonon/phonon_vlc_no_video.dll
# cp -v phonon_vlc_no_video.dll prefix/bin/phonon_backend/phonon_vlc.dll
# echo "Strip unneeded plugins from vlc/plugins..."
# cd prefix/bin/plugins
# rm -rvf libold* libvcd* libdvd* liblibass* libx264* libschroe* liblibmpeg2* \
# libstream_out_* libmjpeg_plugin* libh264_plugin* libzvbi_plugin* lib*sub* \
# *qt4* *skins2* libaccess_bd_plugin.dll \
# libaudiobargraph_* libball_plugin.dll \
# libdirac_plugin.dll \
# libgnutls_plugin.dll \
# libcaca_plugin.dll \
# libfreetype_plugin.dll \
# libaccess_output_shout_plugin.dll \
# libremoteosd_plugin.dll \
# libsdl_image_plugin.dll \
# libvout_sdl_plugin.dll \
# libpng_plugin.dll \
# libgoom_plugin.dll \
# libatmo_plugin.dll \
# libmux_ts_plugin.dll \
# libkate_plugin.dll \
# libtaglib_plugin.dll
# this is for vlc-1.2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 KiB

BIN
data/images/apply-check.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
data/images/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
data/images/collapse.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

BIN
data/images/downloading.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
data/images/grooveshark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
data/images/headphones.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
data/images/itunes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
data/images/open.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
data/images/rdio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
data/images/star-hover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
data/images/starred.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 563 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
data/images/uploading.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -2,7 +2,7 @@
// if run in phantomjs add fake Tomahawk environment
if(window.Tomahawk === undefined)
{
alert("PHANTOMJS ENVIRONMENT");
// alert("PHANTOMJS ENVIRONMENT");
var Tomahawk = {
fakeEnv: function()
{
@@ -184,6 +184,21 @@ Tomahawk.syncRequest = function(url)
}
};
Tomahawk.asyncRequest = function(url, callback)
{
var xmlHttpRequest = new XMLHttpRequest();
xmlHttpRequest.open('GET', url, true);
xmlHttpRequest.onreadystatechange = function() {
if (xmlHttpRequest.readyState == 4 && xmlHttpRequest.status == 200) {
callback.call(window, xmlHttpRequest);
} else if (xmlHttpRequest.readyState === 4) {
Tomahawk.log("Failed to do GET request: to: " + url);
Tomahawk.log("Status Code was: " + xmlHttpRequest.status);
}
}
xmlHttpRequest.send(null);
};
/**
*
* Secure Hash Algorithm (SHA256)

View File

@@ -0,0 +1,10 @@
-- Script to migate from db version 26 to 27
-- Nothing to do
CREATE TABLE IF NOT EXISTS collection_attributes (
id INTEGER REFERENCES source(id) ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED, -- source id, null for local source
k TEXT NOT NULL,
v TEXT NOT NULL
);
UPDATE settings SET v = '27' WHERE k == 'schema_version';

View File

@@ -0,0 +1,7 @@
-- Script to migate from db version 27 to 28.
-- Added albumartist and discnumber to file_join
ALTER TABLE file_join ADD COLUMN composer INTEGER REFERENCES artist(id) ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE file_join ADD COLUMN discnumber INTEGER;
UPDATE settings SET v = '28' WHERE k == 'schema_version';

3541
lang/tomahawk_bg.ts Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3541
lang/tomahawk_en.ts Normal file

File diff suppressed because it is too large Load Diff

3532
lang/tomahawk_es.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,11 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/lang">
<file>tomahawk_en.qm</file>
<file>tomahawk_de.qm</file>
<file>tomahawk_sv.qm</file>
<file>tomahawk_es.qm</file>
<file>tomahawk_bg.qm</file>
<file>tomahawk_pl.qm</file>
<file>tomahawk_pt_BR.qm</file>
</qresource>
</RCC>

3530
lang/tomahawk_pl.ts Normal file

File diff suppressed because it is too large Load Diff

3530
lang/tomahawk_pt_BR.ts Normal file

File diff suppressed because it is too large Load Diff

3515
lang/tomahawk_sv.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,6 @@
<file>data/images/avatar-dude.png</file>
<file>data/images/back-pressed.png</file>
<file>data/images/back-rest.png</file>
<file>data/images/cover-shadow.png</file>
<file>data/images/filter.png</file>
<file>data/images/loved.png</file>
<file>data/images/not-loved.png</file>
@@ -13,6 +12,7 @@
<file>data/images/track-placeholder.png</file>
<file>data/images/now-playing-panel.png</file>
<file>data/images/now-playing-speaker.png</file>
<file>data/images/now-playing-speaker-dark.png</file>
<file>data/images/pause-pressed.png</file>
<file>data/images/pause-rest.png</file>
<file>data/images/play-pressed.png</file>
@@ -72,6 +72,7 @@
<file>data/images/music-icon.png</file>
<file>data/images/configure.png</file>
<file>data/images/create-playlist.png</file>
<file>data/images/private-listening.png</file>
<file>data/images/add.png</file>
<file>data/images/recently-played.png</file>
<file>data/images/supercollection.png</file>
@@ -91,9 +92,13 @@
<file>data/images/artist-icon.png</file>
<file>data/images/album-icon.png</file>
<file>data/images/search-icon.png</file>
<file>data/images/star-hover.png</file>
<file>data/images/starred.png</file>
<file>data/images/star-unstarred.png</file>
<file>data/images/track-icon-22x22.png</file>
<file>data/images/track-icon-32x32.png</file>
<file>data/images/track-icon-16x16.png</file>
<file>data/images/apply-check.png</file>
<file>data/stylesheets/topbar-radiobuttons.css</file>
<file>data/icons/tomahawk-icon-16x16.png</file>
<file>data/icons/tomahawk-icon-32x32.png</file>
@@ -108,6 +113,7 @@
<file>data/sql/dbmigrate-23_to_24.sql</file>
<file>data/sql/dbmigrate-24_to_25.sql</file>
<file>data/sql/dbmigrate-25_to_26.sql</file>
<file>data/sql/dbmigrate-26_to_27.sql</file>
<file>data/js/tomahawk.js</file>
<file>data/images/avatar_frame.png</file>
<file>data/images/drop-all-songs.png</file>
@@ -115,5 +121,20 @@
<file>data/images/drop-top-songs.png</file>
<file>data/images/drop-song.png</file>
<file>data/images/drop-album.png</file>
<file>data/images/spotify-logo.png</file>
<file>data/images/itunes.png</file>
<file>data/images/uploading.png</file>
<file>data/images/downloading.png</file>
<file>data/images/headphones.png</file>
<file>data/images/headphones-off.png</file>
<file>data/images/headphones-sidebar.png</file>
<file>data/images/closed-padlock.png</file>
<file>data/images/open-padlock.png</file>
<file>data/images/headphones-bigger.png</file>
<file>data/images/no-album-no-case.png</file>
<file>data/images/rdio.png</file>
<file>data/images/grooveshark.png</file>
<file>data/sql/dbmigrate-27_to_28.sql</file>
<file>data/images/process-stop.png</file>
</qresource>
</RCC>

View File

@@ -1,15 +1,10 @@
SET( OS_SPECIFIC_LINK_LIBRARIES
${OS_SPECIFIC_LINK_LIBRARIES}
tomahawklib
)
FILE( GLOB _icons "${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon-*.png" )
FOREACH( _file ${_icons} )
STRING( REPLACE "${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon-" "" _res ${_file} )
STRING( REPLACE ".png" "" _res ${_res} )
INSTALL( FILES ${_file} RENAME tomahawk.png DESTINATION share/icons/hicolor/${_res}/apps )
INSTALL( FILES ${_file} RENAME tomahawk.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${_res}/apps )
ENDFOREACH( _file )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon.svg RENAME tomahawk.svg DESTINATION share/icons/hicolor/scalable )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon.svg RENAME tomahawk.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/admin/unix/tomahawk.desktop DESTINATION share/applications )
INSTALL( FILES ${CMAKE_SOURCE_DIR}/admin/unix/tomahawk.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )

View File

@@ -1,10 +1,11 @@
SET( TOMAHAWK_LIBRARIES tomahawklib )
SET( TOMAHAWK_LIBRARIES tomahawklib )
SET( OS_SPECIFIC_LINK_LIBRARIES
${OS_SPECIFIC_LINK_LIBRARIES}
${COREAUDIO_LIBRARY}
${COREFOUNDATION_LIBRARY}
crypto
SPMediaKeyTap
/System/Library/Frameworks/AppKit.framework
@@ -26,12 +27,15 @@ if (APPLE)
# Uses Darwin kernel version.
# 9.8.0 -> 10.5/Leopard
# 10.4.0 -> 10.6/Snow Leopard
# 11.x.x -> Lion
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${CMAKE_HOST_SYSTEM_VERSION})
if (DARWIN_VERSION GREATER 9)
if (DARWIN_VERSION GREATER 10)
SET(LION 1)
elseif (DARWIN_VERSION GREATER 9)
SET(SNOW_LEOPARD 1)
elseif (DARWIN_VERSION GREATER 8)
SET(LEOPARD 1)
endif (DARWIN_VERSION GREATER 9)
endif (DARWIN_VERSION GREATER 10)
# Use two different sparkle update tracks for debug and release
# We have to change the URL in the Info.plist file :-/
@@ -54,4 +58,7 @@ if (APPLE)
FILE(COPY ${CMAKE_SOURCE_DIR}/admin/mac/sparkle_pub.pem
DESTINATION "${CMAKE_BINARY_DIR}/tomahawk.app/Contents/Resources")
FILE(COPY /usr/bin/SetFile DESTINATION "${CMAKE_BINARY_DIR}/tomahawk.app/Contents/MacOS")
FILE(COPY /usr/bin/GetFileInfo DESTINATION "${CMAKE_BINARY_DIR}/tomahawk.app/Contents/MacOS")
endif (APPLE)

View File

@@ -13,6 +13,8 @@ SET( QT_USE_QTNETWORK TRUE )
SET( QT_USE_QTXML TRUE )
SET( QT_USE_QTWEBKIT TRUE )
add_definitions( -DQT_SHAREDPOINTER_TRACK_POINTERS )
INCLUDE( ${QT_USE_FILE} )
INCLUDE( AddAppIconMacro )
@@ -37,12 +39,10 @@ ENDIF()
SET( tomahawkSources ${tomahawkSources}
web/api_v1.cpp
resolvers/scriptresolver.cpp
resolvers/qtscriptresolver.cpp
musicscanner.cpp
shortcuthandler.cpp
scanmanager.cpp
ubuntuunityhack.cpp
tomahawkapp.cpp
main.cpp
)
@@ -60,14 +60,16 @@ SET( tomahawkSourcesGui ${tomahawkSourcesGui}
sourcetree/sourcedelegate.cpp
sourcetree/animationhelper.cpp
sourcetree/items/sourcetreeitem.cpp
sourcetree/items/collectionitem.cpp
sourcetree/items/sourceitem.cpp
sourcetree/items/playlistitems.cpp
sourcetree/items/categoryitems.cpp
sourcetree/items/genericpageitems.cpp
sourcetree/items/temporarypageitem.cpp
sourcetree/items/groupitem.cpp
sourcetree/items/historyitem.cpp
breakpad/BreakPad.cpp
transferview.cpp
PipelineStatusView.cpp
tomahawktrayicon.cpp
audiocontrols.cpp
settingsdialog.cpp
@@ -78,6 +80,7 @@ SET( tomahawkSourcesGui ${tomahawkSourcesGui}
settingslistdelegate.cpp
resolversmodel.cpp
tomahawkwindow.cpp
LoadXSPFDialog.cpp
)
SET( tomahawkHeaders ${tomahawkHeaders}
@@ -85,11 +88,9 @@ SET( tomahawkHeaders ${tomahawkHeaders}
web/api_v1.h
resolvers/scriptresolver.h
resolvers/qtscriptresolver.h
musicscanner.h
scanmanager.h
ubuntuunityhack.h
shortcuthandler.h
)
@@ -99,6 +100,12 @@ IF(LIBLASTFM_FOUND)
)
ENDIF(LIBLASTFM_FOUND)
IF(LIBATTICA_FOUND)
SET( tomahawkSourcesGui ${tomahawkSourcesGui} GetNewStuffDialog.cpp GetNewStuffDelegate.cpp GetNewStuffModel.cpp )
SET( tomahawkHeadersGui ${tomahawkHeadersGui} GetNewStuffDialog.h GetNewStuffDelegate.h GetNewStuffModel.h )
INCLUDE_DIRECTORIES( ${LIBATTICA_INCLUDE_DIR} )
ENDIF(LIBATTICA_FOUND)
SET( tomahawkHeadersGui ${tomahawkHeadersGui}
sourcetree/sourcesmodel.h
@@ -107,14 +114,14 @@ SET( tomahawkHeadersGui ${tomahawkHeadersGui}
sourcetree/sourcedelegate.h
sourcetree/animationhelper.h
sourcetree/items/sourcetreeitem.h
sourcetree/items/collectionitem.h
sourcetree/items/sourceitem.h
sourcetree/items/playlistitems.h
sourcetree/items/categoryitems.h
sourcetree/items/genericpageitems.h
sourcetree/items/temporarypageitem.h
sourcetree/items/groupitem.h
sourcetree/items/historyitem.h
transferview.h
PipelineStatusView.h
tomahawktrayicon.h
audiocontrols.h
settingsdialog.h
@@ -126,8 +133,7 @@ SET( tomahawkHeadersGui ${tomahawkHeadersGui}
resolversmodel.h
delegateconfigwrapper.h
tomahawkwindow.h
Qocoa/qsearchfield.h
LoadXSPFDialog.h
)
SET( tomahawkUI ${tomahawkUI}
@@ -137,6 +143,9 @@ SET( tomahawkUI ${tomahawkUI}
proxydialog.ui
audiocontrols.ui
GetNewStuffDialog.ui
LoadXSPFDialog.ui
)
INCLUDE_DIRECTORIES(
@@ -157,6 +166,7 @@ INCLUDE_DIRECTORIES(
${THIRDPARTY_DIR}/qxt/qxtweb-standalone/qxtweb
${THIRDPARTY_DIR}/qtweetlib/qtweetlib/src
${THIRDPARTY_DIR}/qtweetlib/tomahawk-custom
${THIRDPARTY_DIR}/breakpad
${TAGLIB_INCLUDES}
${PHONON_INCLUDES}
@@ -168,23 +178,21 @@ INCLUDE_DIRECTORIES(
SET( OS_SPECIFIC_LINK_LIBRARIES "" )
IF( WIN32 )
INCLUDE( "CMakeLists.win32.txt" )
INCLUDE( "CMakeLists.win32.cmake" )
ENDIF( WIN32 )
IF( UNIX )
INCLUDE( "CMakeLists.unix.txt" )
INCLUDE( "CMakeLists.unix.cmake" )
ENDIF( UNIX )
IF( APPLE )
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/thirdparty/SPMediaKeyTap )
SET( tomahawkHeaders ${tomahawkHeaders} mac/tomahawkapp_mac.h mac/macshortcuthandler.h )
SET( tomahawkSources ${tomahawkSources} mac/tomahawkapp_mac.mm mac/macshortcuthandler.cpp Qocoa/qsearchfield_mac.mm )
SET( tomahawkHeaders ${tomahawkHeaders} mac/tomahawkapp_mac.h mac/macshortcuthandler.h )
SET( tomahawkSources ${tomahawkSources} mac/tomahawkapp_mac.mm mac/macshortcuthandler.cpp )
IF(HAVE_SPARKLE)
SET( tomahawkHeaders ${tomahawkHeaders} ${SPARKLE}/Headers )
ENDIF(HAVE_SPARKLE)
ELSE( APPLE )
SET( tomahawkSources ${tomahawkSources} Qocoa/qsearchfield.cpp )
ENDIF( APPLE )
IF(GLOOX_FOUND)
@@ -198,10 +206,7 @@ IF(QCA2_FOUND)
INCLUDE_DIRECTORIES( ${QCA2_INCLUDE_DIR} )
ENDIF(QCA2_FOUND)
kde4_add_app_icon( tomahawkSources "${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon-*.png" )
qt4_add_resources( RC_SRCS "../resources.qrc" )
qt4_wrap_cpp( tomahawkMoc ${tomahawkHeaders} )
INCLUDE(GNUInstallDirs)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
@@ -209,13 +214,17 @@ include( ${CMAKE_SOURCE_DIR}/lang/translations.cmake )
SET( final_src ${final_src} ${tomahawkMoc} ${tomahawkSources} ${tomahawkHeaders} ${trans_outfile})
IF( "${gui}" STREQUAL "no" )
ELSE()
IF( BUILD_GUI )
LIST(APPEND tomahawkHeaders ${tomahawkHeadersGui})
LIST(APPEND tomahawkSources ${tomahawkSourcesGui})
qt4_wrap_ui( tomahawkUI_H ${tomahawkUI} )
qt4_wrap_cpp( tomahawkMocGui ${tomahawkHeadersGui} )
SET( final_src ${final_src} ${tomahawkUI_H} ${tomahawkMocGui} ${tomahawkSourcesGui} ${RC_SRCS} )
ENDIF()
kde4_add_app_icon( tomahawkSources "${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon-*.png" )
qt4_add_resources( RC_SRCS "../resources.qrc" )
qt4_wrap_cpp( tomahawkMoc ${tomahawkHeaders} )
SET( final_src ${final_src} ${tomahawkUI_H} ${tomahawkMoc} ${tomahawkSources} ${RC_SRCS} )
IF( UNIX AND NOT APPLE )
ADD_EXECUTABLE( tomahawk ${final_src} )
ENDIF( UNIX AND NOT APPLE )
@@ -237,12 +246,12 @@ ENDIF(LIBLASTFM_FOUND)
IF(GLOOX_FOUND)
SET(LINK_LIBRARIES ${LINK_LIBRARIES} ${GLOOX_LIBRARIES} )
ENDIF(GLOOX_FOUND)
IF(QCA2_FOUND)
SET(LINK_LIBRARIES ${LINK_LIBRARIES} ${QCA2_LIBRARIES} )
ENDIF(QCA2_FOUND)
TARGET_LINK_LIBRARIES( tomahawk
tomahawk_breakpad
${LINK_LIBRARIES}
${TOMAHAWK_LIBRARIES}
${PHONON_LIBS}
@@ -263,12 +272,12 @@ IF( APPLE )
ENDIF(HAVE_SPARKLE)
ENDIF( APPLE )
INSTALL( TARGETS tomahawk BUNDLE DESTINATION . RUNTIME DESTINATION bin )
INSTALL( TARGETS tomahawk BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
IF( UNIX AND NOT APPLE AND KDE4_INSTALLED ) #install protocol file
IF( UNIX AND NOT APPLE AND KDE4_INSTALLED AND LEGACY_KDE_INTEGRATION ) #install protocol file
FILE( READ ${CMAKE_SOURCE_DIR}/admin/unix/tomahawk.protocol protocol )
STRING( REPLACE "/path/to/binary" # match this
"${CMAKE_INSTALL_PREFIX}/bin/tomahawk" # this is linux (kde) so pretty safe I think
"${CMAKE_INSTALL_FULL_BINDIR}/tomahawk" # this is linux (kde) so pretty safe I think
edited_protocol # save in this variable
"${protocol}" # from the contents of this var
)
@@ -276,7 +285,7 @@ IF( UNIX AND NOT APPLE AND KDE4_INSTALLED ) #install protocol file
IF( ${SERVICES_INSTALL_DIR} )
SET( PROTOCOL_INSTALL_DIR ${SERVICES_INSTALL_DIR} )
ELSE()
SET( PROTOCOL_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/kde4/services" )
SET( PROTOCOL_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/kde4/services" )
ENDIF()
INSTALL( FILES ${CMAKE_BINARY_DIR}/tomahawk.protocol DESTINATION ${PROTOCOL_INSTALL_DIR} )
ENDIF()

View File

@@ -4,12 +4,12 @@ ADD_DEFINITIONS( -g )
ADD_DEFINITIONS( -fno-operator-names )
ADD_DEFINITIONS( -fPIC )
SET( QXTWEB_LIBRARIES qxtweb-standalone )
SET( QXTWEB_LIBRARIES qxtweb-standalone )
IF( APPLE )
INCLUDE( "CMakeLists.osx.txt" )
INCLUDE( "CMakeLists.osx.cmake" )
ENDIF( APPLE )
IF( UNIX AND NOT APPLE )
INCLUDE( "CMakeLists.linux.txt" )
INCLUDE( "CMakeLists.linux.cmake" )
ENDIF( UNIX AND NOT APPLE )

View File

@@ -3,6 +3,7 @@ SET( CMAKE_BUILD_TYPE "Release" )
ADD_DEFINITIONS( /DNOMINMAX )
ADD_DEFINITIONS( /DWIN32_LEAN_AND_MEAN )
ADD_DEFINITIONS( -static-libgcc )
ADD_DEFINITIONS( -DUNICODE )
SET( QXTWEB_LIBRARIES qxtweb-standalone )

323
src/GetNewStuffDelegate.cpp Normal file
View File

@@ -0,0 +1,323 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GetNewStuffDelegate.h"
#include "GetNewStuffModel.h"
#include "utils/tomahawkutils.h"
#include "utils/logger.h"
#include <QtGui/QPainter>
#include <QApplication>
#include <QMouseEvent>
#include "AtticaManager.h"
#define PADDING 4
#define PADDING_BETWEEN_STARS 2
#define STAR_SIZE 12
#ifdef Q_WS_MAC
#define SIZEHINT_HEIGHT 70
#else
#define SIZEHINT_HEIGHT 60
#endif
GetNewStuffDelegate::GetNewStuffDelegate( QObject* parent )
: QStyledItemDelegate ( parent )
, m_widestTextWidth( 0 )
, m_hoveringOver( -1 )
{
m_defaultCover.load( RESPATH "images/sipplugin-online.png" );
m_ratingStarPositive.load( RESPATH "images/starred.png" );
m_ratingStarNegative.load( RESPATH "images/star-unstarred.png" );
m_onHoverStar.load( RESPATH "images/star-hover.png" );
m_ratingStarPositive = m_ratingStarPositive.scaled( STAR_SIZE, STAR_SIZE, Qt::KeepAspectRatio, Qt::SmoothTransformation );
m_ratingStarNegative = m_ratingStarNegative.scaled( STAR_SIZE, STAR_SIZE, Qt::KeepAspectRatio, Qt::SmoothTransformation );
m_onHoverStar = m_onHoverStar.scaled( STAR_SIZE, STAR_SIZE, Qt::KeepAspectRatio, Qt::SmoothTransformation );
const int w = SIZEHINT_HEIGHT - 2*PADDING;
m_defaultCover = m_defaultCover.scaled( w, w, Qt::KeepAspectRatio, Qt::SmoothTransformation );
// save the widest wifth
QFont f( QApplication::font() );
f.setPointSize( f.pointSize() - 1 );
QFontMetrics fm( f );
QStringList l = QStringList() << tr( "Installed" ) << tr( "Installing" ) << tr( "Failed" ) << tr( "Uninstalling" );
foreach ( const QString& str, l )
{
if ( fm.width( str ) > m_widestTextWidth )
m_widestTextWidth = fm.width( str );
}
}
void
GetNewStuffDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
QStyleOptionViewItemV4 opt = option;
initStyleOption( &opt, index );
QApplication::style()->drawPrimitive( QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget );
painter->setRenderHint( QPainter::Antialiasing );
QFont titleFont = opt.font;
titleFont.setBold( true );
titleFont.setPointSize( titleFont.pointSize() + 2 );
QFontMetrics titleMetrics( titleFont );
QFont authorFont = opt.font;
authorFont.setItalic( true );
authorFont.setPointSize( authorFont.pointSize() - 1 );
QFontMetrics authorMetrics( authorFont );
QFont descFont = authorFont;
descFont.setItalic( false );
QFontMetrics descMetrics( descFont );
QFont installFont = opt.font;
installFont.setPointSize( installFont.pointSize() - 1 );
QFontMetrics installMetrics( descFont );
const int height = opt.rect.height();
const int center = height / 2 + opt.rect.top();
// Pixmap
QPixmap p = index.data( Qt::DecorationRole ).value< QPixmap >();
const int pixmapWidth = height - 2*PADDING;
QRect pixmapRect( PADDING, PADDING + opt.rect.top(), pixmapWidth, pixmapWidth );
if ( p.isNull() ) // default image... TODO
p = m_defaultCover;
else
p = p.scaled( pixmapRect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation );
painter->drawPixmap( pixmapRect, p );
// Go from right edge now, stars, install button, and downloaded info
// install / status button
AtticaManager::ResolverState state = static_cast< AtticaManager::ResolverState >( index.data( GetNewStuffModel::StateRole ).toInt() );
QString actionText;
switch( state )
{
case AtticaManager::Uninstalled:
actionText = tr( "Install" );
break;
case AtticaManager::Installing:
actionText = tr( "Installing" );
break;
case AtticaManager::Upgrading:
actionText = tr( "Upgrading" );
break;
case AtticaManager::Failed:
actionText = tr( "Failed" );
break;
case AtticaManager::Installed:
actionText = tr( "Uninstall" );
break;
case AtticaManager::NeedsUpgrade:
actionText = tr( "Upgrade" );
break;
}
const int btnWidth = m_widestTextWidth + 7;
const int leftEdge = opt.rect.width() - PADDING - btnWidth - 3;
const QRect btnRect( leftEdge, center - ( installMetrics.height() + 4 ) / 2, btnWidth, installMetrics.height() + 4 );
m_cachedButtonRects[ QPair<int, int>(index.row(), index.column()) ] = btnRect;
QPen saved = painter->pen();
painter->setPen( opt.palette.color( QPalette::Active, QPalette::AlternateBase ) );
QPainterPath btnPath;
const int radius = 3;
//btnPath.addRoundedRect( btnRect, 3, 3 );
// draw top half gradient
const int btnCenter = btnRect.bottom() - ( btnRect.height() / 2 );
btnPath.moveTo( btnRect.left(), btnCenter );
btnPath.lineTo( btnRect.left(), btnRect.top() + radius );
btnPath.quadTo( QPoint( btnRect.topLeft() ), QPoint( btnRect.left() + radius, btnRect.top() ) );
btnPath.lineTo( btnRect.right() - radius, btnRect.top() );
btnPath.quadTo( QPoint( btnRect.topRight() ), QPoint( btnRect.right(), btnRect.top() + radius ) );
btnPath.lineTo( btnRect.right(),btnCenter );
btnPath.lineTo( btnRect.left(), btnCenter );
QLinearGradient g;
g.setColorAt( 0, QColor(54, 127, 211) );
g.setColorAt( 0.5, QColor(43, 104, 182) );
//painter->setPen( bg.darker() );
painter->fillPath( btnPath, g );
//painter->drawPath( btnPath );
btnPath = QPainterPath();
btnPath.moveTo( btnRect.left(), btnCenter );
btnPath.lineTo( btnRect.left(), btnRect.bottom() - radius );
btnPath.quadTo( QPoint( btnRect.bottomLeft() ), QPoint( btnRect.left() + radius, btnRect.bottom() ) );
btnPath.lineTo( btnRect.right() - radius, btnRect.bottom() );
btnPath.quadTo( QPoint( btnRect.bottomRight() ), QPoint( btnRect.right(), btnRect.bottom() - radius ) );
btnPath.lineTo( btnRect.right(), btnCenter );
btnPath.lineTo( btnRect.left(), btnCenter );
g.setColorAt( 0, QColor(34, 85, 159) );
g.setColorAt( 0.5, QColor(35, 79, 147) );
painter->fillPath( btnPath, g );
painter->setFont( installFont );
painter->drawText( btnRect, Qt::AlignCenter, actionText );
painter->setPen( saved );
// rating stars
int rating = index.data( GetNewStuffModel::RatingRole ).toInt();
const int ratingWidth = 5 * ( m_ratingStarPositive.width() + PADDING_BETWEEN_STARS );
int runningEdge = ( btnRect.right() - btnRect.width() / 2 ) - ratingWidth / 2;
for ( int i = 1; i < 6; i++ )
{
QRect r( runningEdge, btnRect.top() - m_ratingStarPositive.height() - PADDING, m_ratingStarPositive.width(), m_ratingStarPositive.height() );
if ( i == 1 )
m_cachedStarRects[ QPair<int, int>(index.row(), index.column()) ] = r;
const bool userHasRated = index.data( GetNewStuffModel::UserHasRatedRole ).toBool();
if ( !userHasRated && // Show on-hover animation if the user hasn't rated it yet, and is hovering over it
m_hoveringOver > -1 &&
m_hoveringItem == index )
{
if ( i <= m_hoveringOver ) // positive star
painter->drawPixmap( r, m_onHoverStar );
else
painter->drawPixmap( r, m_ratingStarNegative );
}
else
{
if ( i <= rating ) // positive or rated star
{
if ( userHasRated )
painter->drawPixmap( r, m_onHoverStar );
else
painter->drawPixmap( r, m_ratingStarPositive );
}
else
painter->drawPixmap( r, m_ratingStarNegative );
}
runningEdge += m_ratingStarPositive.width() + PADDING_BETWEEN_STARS;
}
// downloaded num times, underneath button
QString count = tr( "%1 downloads" ).arg( index.data( GetNewStuffModel::DownloadCounterRole ).toInt() );
const QRect countRect( btnRect.left(), btnRect.bottom() + PADDING, btnRect.width(), opt.rect.bottom() - PADDING - btnRect.bottom() );
QFont countFont = descFont;
countFont.setPointSize( countFont.pointSize() - 2 );
countFont.setBold( true );
painter->setFont( countFont );
painter->drawText( countRect, Qt::AlignCenter | Qt::TextWordWrap, count );
// author and version
QString author = index.data( GetNewStuffModel::AuthorRole ).toString();
const int authorWidth = authorMetrics.width( author );
const int topTextLine = opt.rect.top() + PADDING;
const QRect authorRect( btnRect.x() - 3*PADDING - authorWidth, topTextLine, authorWidth + 6, authorMetrics.height() );
painter->setFont( authorFont );
painter->drawText( authorRect, Qt::AlignCenter, author );
const QRect versionRect = authorRect.translated( 0, authorRect.height() );
QString version = index.data( GetNewStuffModel::VersionRole ).toString();
painter->drawText( versionRect, Qt::AlignCenter, version );
// title
QString title = index.data( Qt::DisplayRole ).toString();
const int rightTitleEdge = authorRect.left() - PADDING;
const int leftTitleEdge = pixmapRect.right() + PADDING;
const QRect textRect( leftTitleEdge, topTextLine, rightTitleEdge - leftTitleEdge, versionRect.bottom() - opt.rect.top() - PADDING );
painter->setFont( titleFont );
painter->drawText( textRect, Qt::AlignVCenter | Qt::AlignLeft, title );
// description
QString desc = index.data( GetNewStuffModel::DescriptionRole ).toString();
const int descWidth = btnRect.left() - leftTitleEdge - PADDING;
const QRect descRect( leftTitleEdge, versionRect.bottom(), descWidth, opt.rect.bottom() - versionRect.bottom() + PADDING );
painter->setFont( descFont );
painter->drawText( descRect, Qt::AlignLeft | Qt::TextWordWrap, desc );
}
QSize
GetNewStuffDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
Q_UNUSED( option );
Q_UNUSED( index );
return QSize( 200, SIZEHINT_HEIGHT );
}
bool
GetNewStuffDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index )
{
Q_UNUSED( option );
if ( event->type() != QEvent::MouseButtonRelease &&
event->type() != QEvent::MouseMove )
return false;
if ( event->type() == QEvent::MouseButtonRelease && m_cachedButtonRects.contains( QPair<int, int>( index.row(), index.column() ) ) )
{
QRect rect = m_cachedButtonRects[ QPair<int, int>( index.row(), index.column() ) ];
QMouseEvent* me = static_cast< QMouseEvent* >( event );
if ( rect.contains( me->pos() ) )
{
model->setData( index, true );
return true;
}
}
if ( m_cachedStarRects.contains( QPair<int, int>( index.row(), index.column() ) ) )
{
QRect fullStars = m_cachedStarRects[ QPair<int, int>( index.row(), index.column() ) ];
const int starsWidth = 5 * ( m_ratingStarPositive.width() + PADDING_BETWEEN_STARS );
fullStars.setWidth( starsWidth );
QMouseEvent* me = static_cast< QMouseEvent* >( event );
if ( fullStars.contains( me->pos() ) )
{
const int eachStar = starsWidth / 5;
const int clickOffset = me->pos().x() - fullStars.x();
const int whichStar = (clickOffset / eachStar) + 1;
if ( event->type() == QEvent::MouseButtonRelease )
{
model->setData( index, whichStar, GetNewStuffModel::RatingRole );
}
else if ( event->type() == QEvent::MouseMove )
{
// 0-indexed
m_hoveringOver = whichStar;
m_hoveringItem = index;
}
return true;
}
}
if ( m_hoveringOver > -1 )
{
emit update( m_hoveringItem );
m_hoveringOver = -1;
m_hoveringItem = QPersistentModelIndex();
}
return false;
}

50
src/GetNewStuffDelegate.h Normal file
View File

@@ -0,0 +1,50 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GETNEWSTUFFDELEGATE_H
#define GETNEWSTUFFDELEGATE_H
#include <QStyledItemDelegate>
class
GetNewStuffDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
explicit GetNewStuffDelegate( QObject* parent = 0 );
virtual void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
virtual QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
signals:
void update( const QModelIndex& idx );
protected:
virtual bool editorEvent( QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index );
private:
QPixmap m_defaultCover, m_onHoverStar, m_ratingStarPositive, m_ratingStarNegative;
int m_widestTextWidth;
int m_hoveringOver;
QPersistentModelIndex m_hoveringItem;
mutable QHash< QPair<int, int>, QRect > m_cachedButtonRects;
mutable QHash< QPair<int, int>, QRect > m_cachedStarRects;
};
#endif // GETNEWSTUFFDELEGATE_H

54
src/GetNewStuffDialog.cpp Normal file
View File

@@ -0,0 +1,54 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GetNewStuffDialog.h"
#include "ui_GetNewStuffDialog.h"
#include "GetNewStuffDelegate.h"
#include "GetNewStuffModel.h"
GetNewStuffDialog::GetNewStuffDialog( QWidget* parent, Qt::WindowFlags f )
: QDialog( parent, f )
, ui( new Ui::GetNewStuffDialog )
, m_model( new GetNewStuffModel( this ) )
{
ui->setupUi( this );
ui->listView->setModel( m_model );
GetNewStuffDelegate* del = new GetNewStuffDelegate( ui->listView );
connect( del, SIGNAL( update( QModelIndex ) ), ui->listView, SLOT( update( QModelIndex ) ) );
ui->listView->setItemDelegate( del );
ui->listView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
ui->listView->setMouseTracking( true );
setMinimumSize( 560, 350 );
#ifdef Q_WS_MAC
setMaximumSize( 560, 350 );
setSizeGripEnabled( false );
ui->listView->setAttribute( Qt::WA_MacShowFocusRect, false );
#endif
}
GetNewStuffDialog::~GetNewStuffDialog()
{
delete ui;
}

41
src/GetNewStuffDialog.h Normal file
View File

@@ -0,0 +1,41 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GETNEWSTUFFDIALOG_H
#define GETNEWSTUFFDIALOG_H
#include <QDialog>
class GetNewStuffModel;
namespace Ui {
class GetNewStuffDialog;
}
class GetNewStuffDialog : public QDialog
{
Q_OBJECT
public:
explicit GetNewStuffDialog( QWidget *parent = 0, Qt::WindowFlags f = 0 );
~GetNewStuffDialog();
private:
Ui::GetNewStuffDialog *ui;
GetNewStuffModel* m_model;
};
#endif // GETNEWSTUFFDIALOG_H

67
src/GetNewStuffDialog.ui Normal file
View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GetNewStuffDialog</class>
<widget class="QDialog" name="GetNewStuffDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>449</width>
<height>282</height>
</rect>
</property>
<property name="windowTitle">
<string>Download New Resolvers</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QListView" name="listView"/>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>GetNewStuffDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>GetNewStuffDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

156
src/GetNewStuffModel.cpp Normal file
View File

@@ -0,0 +1,156 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GetNewStuffModel.h"
#include "utils/tomahawkutils.h"
#include "utils/logger.h"
#include <QPixmap>
#include <QUrl>
#include "AtticaManager.h"
GetNewStuffModel::GetNewStuffModel( QObject* parent )
: QAbstractListModel ( parent )
{
if ( AtticaManager::instance()->resolversLoaded() )
m_contentList = AtticaManager::instance()->resolvers();
connect( AtticaManager::instance(), SIGNAL( resolversReloaded( Attica::Content::List ) ), this, SLOT( resolversReloaded( Attica::Content::List ) ) );
connect( AtticaManager::instance(), SIGNAL( resolverStateChanged( QString ) ), this, SLOT( resolverStateChanged( QString ) ) );
}
GetNewStuffModel::~GetNewStuffModel()
{
}
void
GetNewStuffModel::resolversReloaded( const Attica::Content::List& resolvers )
{
beginResetModel();
m_contentList = resolvers;
endResetModel();
}
void
GetNewStuffModel::resolverStateChanged( const QString& resolverId )
{
for ( int i = 0; i < m_contentList.count(); i++ )
{
const Attica::Content resolver = m_contentList[ i ];
if ( resolver.id() == resolverId )
{
QModelIndex idx = index( i, 0, QModelIndex() );
emit dataChanged( idx, idx );
}
}
}
QVariant
GetNewStuffModel::data( const QModelIndex& index, int role ) const
{
if ( !index.isValid() || !hasIndex( index.row(), index.column(), index.parent() ) )
return QVariant();
Attica::Content resolver = m_contentList[ index.row() ];
switch ( role )
{
case Qt::DisplayRole:
return resolver.name();
case Qt::DecorationRole:
return QVariant::fromValue< QPixmap >( AtticaManager::instance()->iconForResolver( resolver ) );
case DownloadUrlRole:
// TODO
return QUrl();
case RatingRole:
return resolver.rating() / 20; // rating is out of 100
case DownloadCounterRole:
return resolver.downloads();
case VersionRole:
return resolver.version();
case DescriptionRole:
return resolver.description();
case TypeRole:
return ResolverType;
case AuthorRole:
return resolver.author();
case StateRole:
return (int)AtticaManager::instance()->resolverState( resolver );
case UserHasRatedRole:
return AtticaManager::instance()->userHasRated( resolver );
}
return QVariant();
}
int
GetNewStuffModel::rowCount( const QModelIndex& parent ) const
{
Q_UNUSED( parent );
return m_contentList.count();
}
bool
GetNewStuffModel::setData( const QModelIndex &index, const QVariant &value, int role )
{
Q_UNUSED( value );
if ( !hasIndex( index.row(), index.column(), index.parent() ) )
return false;
Attica::Content resolver = m_contentList[ index.row() ];
AtticaManager::ResolverState state = AtticaManager::instance()->resolverState( resolver );
if ( role == Qt::EditRole )
{
switch( state )
{
case AtticaManager::Uninstalled:
// install
AtticaManager::instance()->installResolver( resolver );
break;
case AtticaManager::Installing:
case AtticaManager::Upgrading:
// Do nothing, busy
break;
case AtticaManager::Installed:
// Uninstall
AtticaManager::instance()->uninstallResolver( resolver );
break;
case AtticaManager::NeedsUpgrade:
AtticaManager::instance()->upgradeResolver( resolver );
break;
default:
//FIXME -- this handles e.g. Failed
break;
};
} else if ( role == RatingRole )
{
// For now only allow rating if a resolver is installed!
if ( state != AtticaManager::Installed && state != AtticaManager::NeedsUpgrade )
return false;
if ( AtticaManager::instance()->userHasRated( resolver ) )
return false;
m_contentList[ index.row() ].setRating( value.toInt() * 20 );
AtticaManager::instance()->uploadRating( m_contentList[ index.row() ] );
}
emit dataChanged( index, index );
return true;
}

64
src/GetNewStuffModel.h Normal file
View File

@@ -0,0 +1,64 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GETNEWSTUFFMODEL_H
#define GETNEWSTUFFMODEL_H
#include <QModelIndex>
#include <attica/content.h>
#include <QPixmap>
class GetNewStuffModel: public QAbstractListModel
{
Q_OBJECT
public:
enum NewStuffRoles {
// DisplayRole is title
// DecorationRole is qicon for item
DownloadUrlRole = Qt::UserRole + 1,
RatingRole = Qt::UserRole + 2,
DownloadCounterRole = Qt::UserRole + 3,
VersionRole = Qt::UserRole + 4,
DescriptionRole = Qt::UserRole + 5,
TypeRole = Qt::UserRole + 6, // Category in attica-speak. What sort of item this is (resolver, etc).
AuthorRole = Qt::UserRole + 7,
StateRole = Qt::UserRole + 8,
UserHasRatedRole = Qt::UserRole + 9
};
enum Types {
ResolverType = 0,
};
explicit GetNewStuffModel( QObject* parent = 0 );
virtual ~GetNewStuffModel();
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
virtual int rowCount( const QModelIndex& parent = QModelIndex() ) const;
virtual bool setData( const QModelIndex &index, const QVariant &value, int role );
private slots:
void resolversReloaded( const Attica::Content::List& );
void resolverStateChanged( const QString& resolverId );
private:
Attica::Content::List m_contentList;
};
#endif // GETNEWSTUFFMODEL_H

61
src/LoadXSPFDialog.cpp Normal file
View File

@@ -0,0 +1,61 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "LoadXSPFDialog.h"
#include "ui_LoadXSPFDialog.h"
#include <QFileDialog>
LoadXSPFDialog::LoadXSPFDialog( QWidget* parent, Qt::WindowFlags f )
: QDialog( parent, f )
, m_ui( new Ui_LoadXSPF )
{
m_ui->setupUi( this );
#ifdef Q_WS_MAC
m_ui->horizontalLayout->setContentsMargins( 0, 0, 0, 0 );
m_ui->horizontalLayout->setSpacing( 5 );
m_ui->verticalLayout->setContentsMargins( 0, 10, 0, 0 );
m_ui->verticalLayout->setSpacing( 0 );
#endif
connect( m_ui->navigateButton, SIGNAL( clicked( bool ) ), this, SLOT( getLocalFile() ) );
}
LoadXSPFDialog::~LoadXSPFDialog()
{
}
void
LoadXSPFDialog::getLocalFile()
{
QString url = QFileDialog::getOpenFileName( this, tr( "Load XSPF File" ), QDir::homePath(), tr( "XSPF Files (*.xspf)" ) );
m_ui->lineEdit->setText( url );
}
QString
LoadXSPFDialog::xspfUrl() const
{
return m_ui->lineEdit->text();
}
bool
LoadXSPFDialog::autoUpdate() const
{
return m_ui->autoUpdate->isChecked();
}

43
src/LoadXSPFDialog.h Normal file
View File

@@ -0,0 +1,43 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOADXSPFDIALOG_H
#define LOADXSPFDIALOG_H
#include <QDialog>
class Ui_LoadXSPF;
class LoadXSPFDialog : public QDialog
{
Q_OBJECT
public:
explicit LoadXSPFDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
virtual ~LoadXSPFDialog();
QString xspfUrl() const;
bool autoUpdate() const;
public slots:
void getLocalFile();
private:
Ui_LoadXSPF* m_ui;
};
#endif // LOADXSPFDIALOG_H

102
src/LoadXSPFDialog.ui Normal file
View File

@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>LoadXSPF</class>
<widget class="QDialog" name="LoadXSPF">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>444</width>
<height>121</height>
</rect>
</property>
<property name="windowTitle">
<string>Load XSPF</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Playlist Url</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit">
<property name="placeholderText">
<string>Enter URL...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="navigateButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="autoUpdate">
<property name="text">
<string>Automatically update</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>LoadXSPF</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>LoadXSPF</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@@ -1,6 +1,7 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +17,7 @@
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "PipelineStatusView.h"
#include "JobStatusView.h"
#include <QHeaderView>
#include <QVBoxLayout>
@@ -28,7 +29,7 @@
using namespace Tomahawk;
PipelineStatusView::PipelineStatusView( AnimatedSplitter* parent )
JobStatusView::JobStatusView( AnimatedSplitter* parent )
: AnimatedWidget( parent )
, m_parent( parent )
{
@@ -76,7 +77,7 @@ PipelineStatusView::PipelineStatusView( AnimatedSplitter* parent )
void
PipelineStatusView::onPipelineUpdate( const query_ptr& query )
JobStatusView::onPipelineUpdate( const query_ptr& query )
{
QTreeWidgetItem* ti = m_tree->invisibleRootItem()->child( 0 );
@@ -100,7 +101,7 @@ PipelineStatusView::onPipelineUpdate( const query_ptr& query )
QSize
PipelineStatusView::sizeHint() const
JobStatusView::sizeHint() const
{
unsigned int y = 0;
y += m_tree->header()->height();

View File

@@ -1,6 +1,7 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2011, Leo Franchi <lfranchi@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,23 +17,24 @@
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PIPELINESTATUSVIEW_H
#define PIPELINESTATUSVIEW_H
#ifndef JOBSTATUSVIEW_H
#define JOBSTATUSVIEW_H
#include <QTreeWidget>
#include "typedefs.h"
#include "utils/animatedsplitter.h"
#include "widgets/animatedsplitter.h"
#include "query.h"
class StreamConnection;
class PipelineStatusView : public AnimatedWidget
class JobStatusView : public AnimatedWidget
{
Q_OBJECT
public:
explicit PipelineStatusView( AnimatedSplitter* parent );
virtual ~PipelineStatusView()
explicit JobStatusView( AnimatedSplitter* parent );
virtual ~JobStatusView()
{
}
@@ -42,8 +44,8 @@ private slots:
void onPipelineUpdate( const Tomahawk::query_ptr& query = Tomahawk::query_ptr() );
private:
QTreeWidget* m_tree;
QTreeView* m_tree;
AnimatedSplitter* m_parent;
};
#endif // TRANSFERVIEW_H
#endif // JOBSTATUSVIEW_H

View File

@@ -19,35 +19,30 @@
#include "audiocontrols.h"
#include "ui_audiocontrols.h"
#include <QNetworkReply>
#include <QDropEvent>
#include <QMouseEvent>
#include <QtNetwork/QNetworkReply>
#include <QtGui/QDropEvent>
#include <QtGui/QMouseEvent>
#include "audio/audioengine.h"
#include "viewmanager.h"
#include "playlist/playlistview.h"
#include "database/database.h"
#include "database/databasecommand_socialaction.h"
#include "album.h"
#include "utils/imagebutton.h"
#include "widgets/imagebutton.h"
#include "utils/tomahawkutils.h"
#include "utils/logger.h"
#include <globalactionmanager.h>
#include "album.h"
#include "dropjob.h"
#include "globalactionmanager.h"
#include "viewmanager.h"
using namespace Tomahawk;
static QString s_acInfoIdentifier = QString( "AUDIOCONTROLS" );
AudioControls::AudioControls( QWidget* parent )
: QWidget( parent )
, ui( new Ui::AudioControls )
, m_repeatMode( PlaylistInterface::NoRepeat )
, m_shuffled( false )
, m_dropAreaExpanded( false )
, m_lastSliderCheck( 0 )
{
ui->setupUi( this );
setAcceptDrops( true );
@@ -89,18 +84,23 @@ AudioControls::AudioControls( QWidget* parent )
ui->loveButton->setPixmap( RESPATH "images/not-loved.png" );
ui->loveButton->setCheckable( true );
#ifdef Q_WS_MAC
ui->ownerLabel->setForegroundRole( QPalette::Text );
#else
ui->ownerLabel->setForegroundRole( QPalette::Dark );
#endif
ui->metaDataArea->setStyleSheet( "QWidget#metaDataArea {\nborder-width: 4px;\nborder-image: url(" RESPATH "images/now-playing-panel.png) 4 4 4 4 stretch stretch; }" );
ui->seekSlider->setEnabled( true );
ui->seekSlider->setTimeLine( &m_sliderTimeLine );
ui->volumeSlider->setRange( 0, 100 );
ui->volumeSlider->setValue( AudioEngine::instance()->volume() );
m_sliderTimeLine.setCurveShape( QTimeLine::LinearCurve );
ui->seekSlider->setTimeLine( &m_sliderTimeLine );
m_phononTickCheckTimer.setSingleShot( true );
connect( &m_phononTickCheckTimer, SIGNAL( timeout() ), SLOT( phononTickCheckTimeout() ) );
connect( &m_sliderTimeLine, SIGNAL( frameChanged( int ) ), ui->seekSlider, SLOT( setValue( int ) ) );
connect( ui->seekSlider, SIGNAL( valueChanged( int ) ), AudioEngine::instance(), SLOT( seek( int ) ) );
connect( ui->volumeSlider, SIGNAL( valueChanged( int ) ), AudioEngine::instance(), SLOT( setVolume( int ) ) );
connect( ui->prevButton, SIGNAL( clicked() ), AudioEngine::instance(), SLOT( previous() ) );
@@ -110,8 +110,8 @@ AudioControls::AudioControls( QWidget* parent )
connect( ui->volumeLowButton, SIGNAL( clicked() ), AudioEngine::instance(), SLOT( lowerVolume() ) );
connect( ui->volumeHighButton, SIGNAL( clicked() ), AudioEngine::instance(), SLOT( raiseVolume() ) );
connect( ui->playPauseButton, SIGNAL( clicked() ), this, SIGNAL( playPressed() ) );
connect( ui->pauseButton, SIGNAL( clicked() ), this, SIGNAL( pausePressed() ) );
connect( ui->playPauseButton, SIGNAL( clicked() ), SIGNAL( playPressed() ) );
connect( ui->pauseButton, SIGNAL( clicked() ), SIGNAL( pausePressed() ) );
connect( ui->repeatButton, SIGNAL( clicked() ), SLOT( onRepeatClicked() ) );
connect( ui->shuffleButton, SIGNAL( clicked() ), SLOT( onShuffleClicked() ) );
@@ -131,15 +131,6 @@ AudioControls::AudioControls( QWidget* parent )
connect( AudioEngine::instance(), SIGNAL( timerMilliSeconds( qint64 ) ), SLOT( onPlaybackTimer( qint64 ) ) );
connect( AudioEngine::instance(), SIGNAL( volumeChanged( int ) ), SLOT( onVolumeChanged( int ) ) );
m_defaultCover = QPixmap( RESPATH "images/no-album-art-placeholder.png" )
.scaled( ui->coverImage->size(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
connect( Tomahawk::InfoSystem::InfoSystem::instance(),
SIGNAL( info( Tomahawk::InfoSystem::InfoRequestData, QVariant ) ),
SLOT( infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData, QVariant ) ) );
connect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ), SLOT( infoSystemFinished( QString ) ) );
ui->buttonAreaLayout->setSpacing( 0 );
ui->stackedLayout->setSpacing( 0 );
ui->stackedLayout->setContentsMargins( 0, 0, 0, 0 );
@@ -149,46 +140,6 @@ AudioControls::AudioControls( QWidget* parent )
ui->stackedLayout->setSizeConstraint( QLayout::SetFixedSize );
onPlaybackStopped(); // initial state
m_dragAnimation = new QPropertyAnimation( this, "dropAreaSize", this );
m_dragAnimation->setStartValue( 0 );
m_dragAnimation->setDuration( 300 );
m_dragAnimation->setEasingCurve( QEasingCurve::Linear );
connect( m_dragAnimation, SIGNAL( finished() ), SLOT(dragAnimationFinished()));
m_dropAreaCollapseTimer.setInterval( 300 );
m_dropAreaCollapseTimer.setSingleShot( true );
connect( &m_dropAreaCollapseTimer, SIGNAL( timeout() ), this, SLOT( collapseDropMenu() ) );
connect( ui->metaDataDropArea, SIGNAL( dropReceived( QDropEvent* ) ), this, SLOT( dropReceived( QDropEvent* ) ) );
connect( ui->metaDataDropArea, SIGNAL( mouseLeft() ), &m_dropAreaCollapseTimer, SLOT( start() ) );
DropMenuEntry *trackEntry = new DropMenuEntry( QPixmap(":/data/images/drop-song.png" ).scaledToWidth( 32, Qt::SmoothTransformation ),
"Track",
DropJob::DropFlagTrack );
ui->metaDataDropArea->addEntry( trackEntry, true );
DropMenuEntry *albumEntry = new DropMenuEntry( QPixmap(":/data/images/drop-album.png" ).scaledToWidth( 32, Qt::SmoothTransformation ),
"Album",
DropJob::DropFlagAlbum );
ui->metaDataDropArea->addEntry( albumEntry );
DropMenuEntry *artistEntry = new DropMenuEntry( QPixmap(":/data/images/drop-all-songs.png" ).scaledToWidth( 32, Qt::SmoothTransformation ),
"Artist",
DropJob::DropFlagArtist );
ui->metaDataDropArea->addEntry( artistEntry );
DropMenuEntry *localEntry = new DropMenuEntry( QPixmap(":/data/images/drop-local-songs.png" ).scaledToWidth( 32, Qt::SmoothTransformation ),
"Local",
DropJob::DropFlagAlbum | DropJob::DropFlagLocal );
ui->metaDataDropArea->addEntry( localEntry );
DropMenuEntry *top10Entry = new DropMenuEntry( QPixmap(":/data/images/drop-top-songs.png" ).scaledToWidth( 32, Qt::SmoothTransformation ),
"Top 10",
DropJob::DropFlagArtist | DropJob::DropFlagTop10 );
ui->metaDataDropArea->addEntry( top10Entry );
}
@@ -214,6 +165,13 @@ AudioControls::changeEvent( QEvent* e )
}
void
AudioControls::phononTickCheckTimeout()
{
onPlaybackTimer( m_lastSliderCheck );
}
void
AudioControls::onVolumeChanged( int volume )
{
@@ -226,11 +184,9 @@ AudioControls::onVolumeChanged( int volume )
void
AudioControls::onPlaybackStarted( const Tomahawk::result_ptr& result )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
if ( result.isNull() )
return;
if ( m_currentTrack.isNull() || ( !m_currentTrack.isNull() && m_currentTrack.data()->id() != result.data()->id() ) )
onPlaybackLoading( result );
@@ -238,117 +194,117 @@ AudioControls::onPlaybackStarted( const Tomahawk::result_ptr& result )
if ( duration == -1 )
duration = result.data()->duration() * 1000;
ui->seekSlider->setRange( 0, duration );
ui->seekSlider->setValue( 0 );
ui->seekSlider->setEnabled( AudioEngine::instance()->canSeek() );
m_phononTickCheckTimer.stop();
m_sliderTimeLine.stop();
m_sliderTimeLine.setDuration( duration );
m_sliderTimeLine.setFrameRange( 0, duration );
m_sliderTimeLine.setCurrentTime( 0 );
m_seekMsecs = -1;
ui->seekSlider->setVisible( true );
Tomahawk::InfoSystem::InfoCriteriaHash trackInfo;
trackInfo["artist"] = result->artist()->name();
trackInfo["album"] = result->album()->name();
ui->seekSlider->setVisible( true );
Tomahawk::InfoSystem::InfoRequestData requestData;
requestData.caller = s_acInfoIdentifier;
requestData.type = Tomahawk::InfoSystem::InfoAlbumCoverArt;
requestData.input = QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo );
requestData.customData = QVariantMap();
int updateRate = (double)1000 / ( (double)ui->seekSlider->contentsRect().width() / (double)( duration / 1000 ) );
m_sliderTimeLine.setUpdateInterval( qBound( 40, updateRate, 500 ) );
Tomahawk::InfoSystem::InfoSystem::instance()->getInfo( requestData );
}
void
AudioControls::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVariant output )
{
if ( requestData.caller != s_acInfoIdentifier || requestData.type != Tomahawk::InfoSystem::InfoAlbumCoverArt )
{
return;
}
if ( m_currentTrack.isNull() )
{
tLog() << "Current track is null when trying to apply fetched cover art";
return;
}
if ( !output.canConvert< QVariantMap >() )
{
tDebug( LOGINFO ) << "Cannot convert fetched art from a QByteArray";
return;
}
QVariantMap returnedData = output.value< QVariantMap >();
const QByteArray ba = returnedData["imgbytes"].toByteArray();
if ( ba.length() )
{
QPixmap pm;
pm.loadFromData( ba );
if ( pm.isNull() )
ui->coverImage->setPixmap( m_defaultCover );
else
ui->coverImage->setPixmap( pm.scaled( ui->coverImage->size(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation ) );
}
}
void
AudioControls::infoSystemFinished( QString target )
{
Q_UNUSED( target );
m_noTimeChange = false;
m_lastSliderCheck = 0;
}
void
AudioControls::onPlaybackLoading( const Tomahawk::result_ptr& result )
{
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
if ( !m_currentTrack.isNull() )
{
disconnect( m_currentTrack->album().data(), SIGNAL( updated() ), this, SLOT( onAlbumCoverUpdated() ) );
disconnect( m_currentTrack->toQuery().data(), SIGNAL( socialActionsLoaded() ), this, SLOT( onSocialActionsLoaded() ) );
}
m_currentTrack = result;
connect( m_currentTrack->album().data(), SIGNAL( updated() ), SLOT( onAlbumCoverUpdated() ) );
connect( m_currentTrack->toQuery().data(), SIGNAL( socialActionsLoaded() ), SLOT( onSocialActionsLoaded() ) );
ui->artistTrackLabel->setResult( result );
ui->albumLabel->setResult( result );
ui->ownerLabel->setText( result->friendlySource() );
ui->coverImage->setPixmap( m_defaultCover );
const QString duration = TomahawkUtils::timeToString( result.data()->duration() );
ui->timeLabel->setFixedWidth( ui->timeLabel->fontMetrics().width( QString( duration.length(), QChar( '0' ) ) ) );
ui->timeLabel->setText( TomahawkUtils::timeToString( 0 ) );
ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( result.data()->duration() ) );
ui->timeLeftLabel->setFixedWidth( ui->timeLeftLabel->fontMetrics().width( QString( duration.length() + 1, QChar( '0' ) ) ) );
ui->timeLeftLabel->setText( "-" + duration );
m_lastTextSecondShown = 0;
ui->stackedLayout->setCurrentWidget( ui->pauseButton );
ui->loveButton->setEnabled( true );
ui->loveButton->setVisible( true );
result->loadSocialActions();
connect( result.data(), SIGNAL( socialActionsLoaded() ), this, SLOT( socialActionsLoaded() ) );
setAlbumCover();
setSocialActions();
}
void
AudioControls::socialActionsLoaded()
{
Result* r = qobject_cast< Result* >( sender() );
Q_ASSERT( r );
if ( m_currentTrack.data() == r )
void
AudioControls::onAlbumCoverUpdated()
{
Album* album = qobject_cast< Album* >( sender() );
if ( !album || album != m_currentTrack->album().data() )
return;
setAlbumCover();
}
void
AudioControls::setAlbumCover()
{
if ( !m_currentTrack->album()->cover( ui->coverImage->size() ).isNull() )
{
if ( m_currentTrack->loved() )
{
ui->loveButton->setPixmap( RESPATH "images/loved.png" );
ui->loveButton->setChecked( true );
}
else
{
ui->loveButton->setPixmap( RESPATH "images/not-loved.png" );
ui->loveButton->setChecked( false );
}
QPixmap cover;
cover = m_currentTrack->album()->cover( ui->coverImage->size() );
ui->coverImage->setPixmap( cover );
}
else
ui->coverImage->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultAlbumCover, TomahawkUtils::ScaledCover, ui->coverImage->size() ) );
}
void
AudioControls::onSocialActionsLoaded()
{
Query* query = qobject_cast< Query* >( sender() );
if ( !query || !m_currentTrack || query != m_currentTrack->toQuery().data() )
return;
query_ptr currentQuery = m_currentTrack->toQuery();
if ( query->artist() == currentQuery->artist() &&
query->track() == currentQuery->track() &&
query->album() == currentQuery->album() )
{
setSocialActions();
}
}
void
AudioControls::setSocialActions()
{
if ( m_currentTrack->toQuery()->loved() )
{
ui->loveButton->setPixmap( RESPATH "images/loved.png" );
ui->loveButton->setChecked( true );
}
else
{
ui->loveButton->setPixmap( RESPATH "images/not-loved.png" );
ui->loveButton->setChecked( false );
}
}
@@ -361,6 +317,7 @@ AudioControls::onPlaybackPaused()
m_sliderTimeLine.setPaused( true );
}
void
AudioControls::onPlaybackResumed()
{
@@ -377,6 +334,7 @@ AudioControls::onPlaybackSeeked( qint64 msec )
tDebug( LOGEXTRA ) << Q_FUNC_INFO << " setting current timer to " << msec;
m_sliderTimeLine.setPaused( true );
m_sliderTimeLine.setCurrentTime( msec );
m_lastSliderCheck = msec;
m_seekMsecs = msec;
}
@@ -406,32 +364,61 @@ AudioControls::onPlaybackStopped()
void
AudioControls::onPlaybackTimer( qint64 msElapsed )
{
//tDebug( LOGEXTRA ) << Q_FUNC_INFO << " msElapsed = " << msElapsed << " and timer current time = " << m_sliderTimeLine.currentTime() << " and m_seekMsecs = " << m_seekMsecs;
if ( m_currentTrack.isNull() )
const int seconds = msElapsed / 1000;
if ( seconds != m_lastTextSecondShown && !m_currentTrack.isNull() )
{
ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) );
ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) );
m_lastTextSecondShown = seconds;
}
//tDebug( LOGEXTRA ) << Q_FUNC_INFO << "msElapsed =" << msElapsed << "and timer current time =" << m_sliderTimeLine.currentTime() << "and m_seekMsecs =" << m_seekMsecs;
if ( msElapsed > 0 && msElapsed != m_lastSliderCheck && m_seekMsecs == -1 && msElapsed - 500 < m_lastSliderCheck )
return;
m_lastSliderCheck = msElapsed;
if ( m_currentTrack.isNull() )
{
m_sliderTimeLine.stop();
return;
}
ui->seekSlider->blockSignals( true );
const int seconds = msElapsed / 1000;
ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) );
ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) );
if ( sender() != &m_phononTickCheckTimer )
m_phononTickCheckTimer.start( 1000 );
if ( m_sliderTimeLine.currentTime() > msElapsed || m_seekMsecs != -1 )
int currentTime = m_sliderTimeLine.currentTime();
if ( m_noTimeChange )
{
if ( currentTime != msElapsed )
{
m_sliderTimeLine.setPaused( true );
m_noTimeChange = false;
m_sliderTimeLine.setCurrentTime( msElapsed );
m_seekMsecs = -1;
m_sliderTimeLine.resume();
}
}
else if ( currentTime >= msElapsed || m_seekMsecs != -1 )
{
m_sliderTimeLine.setPaused( true );
m_noTimeChange = false;
if ( currentTime == msElapsed )
m_noTimeChange = true;
m_sliderTimeLine.setCurrentTime( msElapsed );
m_seekMsecs = -1;
if ( AudioEngine::instance()->state() != AudioEngine::Paused )
if ( AudioEngine::instance()->state() != AudioEngine::Paused && sender() != &m_phononTickCheckTimer )
m_sliderTimeLine.resume();
}
else if ( m_sliderTimeLine.duration() > msElapsed && m_sliderTimeLine.state() == QTimeLine::NotRunning )
else if ( m_sliderTimeLine.duration() > msElapsed && m_sliderTimeLine.state() == QTimeLine::NotRunning && AudioEngine::instance()->state() == AudioEngine::Playing )
{
ui->seekSlider->setEnabled( AudioEngine::instance()->canSeek() );
m_sliderTimeLine.resume();
m_sliderTimeLine.start();
}
else if ( m_sliderTimeLine.state() == QTimeLine::Paused && AudioEngine::instance()->state() != AudioEngine::Paused )
{
ui->seekSlider->setEnabled( AudioEngine::instance()->canSeek() );
m_sliderTimeLine.resume();
}
@@ -562,36 +549,7 @@ void
AudioControls::dragEnterEvent( QDragEnterEvent* e )
{
if ( DropJob::acceptsMimeData( e->mimeData() ) )
{
e->acceptProposedAction();
m_dropAreaCollapseTimer.stop();
DropJob::DropFlags flags = DropJob::DropFlagsNone;
if ( e->mimeData()->hasFormat( "application/tomahawk.query.list" )
|| e->mimeData()->hasFormat( "application/tomahawk.result.list" )
|| e->mimeData()->hasFormat( "application/tomahawk.result" ) )
flags = DropJob::DropFlagsAll;
if ( e->mimeData()->hasFormat( "application/tomahawk.metadata.album" ) )
flags = DropJob::DropFlagAlbum | DropJob::DropFlagArtist | DropJob::DropFlagLocal | DropJob::DropFlagTop10;
if ( e->mimeData()->hasFormat( "application/tomahawk.metadata.artist" ) )
flags = DropJob::DropFlagArtist | DropJob::DropFlagLocal | DropJob::DropFlagTop10;
ui->metaDataDropArea->setFilter( flags );
if( !m_dropAreaExpanded )
{
m_dragAnimation->stop();
m_dragAnimation->setDirection( QAbstractAnimation::Forward );
m_dragAnimation->setStartValue( dropAreaSize() );
m_dragAnimation->setEndValue( ui->metaDataArea->height() );
m_dragAnimation->start();
m_dropAreaExpanded = true;
}
}
}
@@ -603,32 +561,6 @@ AudioControls::dragMoveEvent( QDragMoveEvent* /* e */ )
}
void
AudioControls::dragLeaveEvent( QDragLeaveEvent * )
{
qDebug() << "******************************** dragLeaveEvent" << ui->metaDataDropArea->hovered();
if( !ui->metaDataDropArea->hovered() )
m_dropAreaCollapseTimer.start();
}
void
AudioControls::collapseDropMenu()
{
// Check if the menu is hovered now...
if( ui->metaDataDropArea->hovered() )
return;
m_dropAreaExpanded = false;
m_dragAnimation->stop();
// m_dragAnimation->setDirection( QAbstractAnimation::Backward );
m_dragAnimation->setStartValue( dropAreaSize() );
m_dragAnimation->setEndValue( 0 );
m_dragAnimation->start();
}
void
AudioControls::dropEvent( QDropEvent* e )
{
@@ -636,12 +568,10 @@ AudioControls::dropEvent( QDropEvent* e )
if ( DropJob::acceptsMimeData( e->mimeData() ) )
{
DropJob *dj = new DropJob();
dj->setDropAction( DropJob::Append );
connect( dj, SIGNAL( tracks( QList<Tomahawk::query_ptr> ) ), this, SLOT( droppedTracks( QList<Tomahawk::query_ptr> ) ) );
dj->setDropFlags( ui->metaDataDropArea->activeEntry()->dropFlags() );
dj->tracksFromMimeData( e->mimeData() );
QTimer::singleShot( 0, this, SLOT( collapseDropMenu() ) );
e->accept();
}
}
@@ -652,8 +582,8 @@ AudioControls::droppedTracks( QList< query_ptr > tracks )
{
if ( !tracks.isEmpty() )
{
// queue and play the first if nothign is playing
GlobalActionManager::instance()->handleOpenTrack( tracks.first() );
// queue and play the first no matter what
GlobalActionManager::instance()->handlePlayTrack( tracks.first() );
// just queue the rest
for ( int i = 1; i < tracks.size(); i++ )
@@ -667,55 +597,17 @@ AudioControls::droppedTracks( QList< query_ptr > tracks )
void
AudioControls::onLoveButtonClicked( bool checked )
{
Tomahawk::InfoSystem::InfoCriteriaHash trackInfo;
trackInfo["title"] = m_currentTrack->track();
trackInfo["artist"] = m_currentTrack->artist()->name();
trackInfo["album"] = m_currentTrack->album()->name();
if ( checked )
{
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
s_acInfoIdentifier, Tomahawk::InfoSystem::InfoLove,
QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) );
DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( m_currentTrack, QString( "Love" ), QString( "true") );
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
ui->loveButton->setPixmap( RESPATH "images/loved.png" );
m_currentTrack->toQuery()->setLoved( true );
}
else
{
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
s_acInfoIdentifier, Tomahawk::InfoSystem::InfoUnLove,
QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) );
DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( m_currentTrack, QString( "Love" ), QString( "false" ) );
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
ui->loveButton->setPixmap( RESPATH "images/not-loved.png" );
m_currentTrack->toQuery()->setLoved( false );
}
}
void
AudioControls::dragAnimationFinished()
{
}
int
AudioControls::dropAreaSize()
{
return ui->metaDataDropArea->maximumHeight();
}
void
AudioControls::setDropAreaSize( int size )
{
ui->metaDataDropArea->setMaximumHeight( size );
ui->metaDataInfoArea->setMaximumHeight( ui->metaDataArea->height() - size );
}
void
AudioControls::dropReceived( QDropEvent *event )
{
dropEvent( event );
}

View File

@@ -19,19 +19,18 @@
#ifndef AUDIOCONTROLS_H
#define AUDIOCONTROLS_H
#include <QWidget>
#include <QTimeLine>
#include <QPropertyAnimation>
#include <QTimer>
#include <QtGui/QWidget>
#include <QtCore/QTimer>
#include <QtCore/QTimeLine>
#include "result.h"
#include "playlistinterface.h"
#include "infosystem/infosystem.h"
#include "utils/dropmenu.h"
#include "query.h"
class QDropEvent;
class QDragEnterEvent;
class QDragMoveEvent;
namespace Ui
{
class AudioControls;
@@ -40,7 +39,6 @@ namespace Ui
class AudioControls : public QWidget
{
Q_OBJECT
Q_PROPERTY( int dropAreaSize READ dropAreaSize WRITE setDropAreaSize )
public:
AudioControls( QWidget* parent = 0 );
@@ -53,18 +51,16 @@ signals:
public slots:
void onRepeatModeChanged( Tomahawk::PlaylistInterface::RepeatMode mode );
void onShuffleModeChanged( bool enabled );
protected:
void changeEvent( QEvent* e );
void dragEnterEvent ( QDragEnterEvent* );
void dragMoveEvent ( QDragMoveEvent* );
void dragLeaveEvent( QDragLeaveEvent * );
void dropEvent ( QDropEvent* );
int dropAreaSize();
void setDropAreaSize( int size );
private slots:
void phononTickCheckTimeout();
void onPlaybackStarted( const Tomahawk::result_ptr& result );
void onPlaybackLoading( const Tomahawk::result_ptr& result );
void onPlaybackPaused();
@@ -83,32 +79,28 @@ private slots:
void onTrackClicked();
void onLoveButtonClicked( bool );
void infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVariant output );
void infoSystemFinished( QString target );
void onAlbumCoverUpdated();
void droppedTracks( QList<Tomahawk::query_ptr> );
void socialActionsLoaded();
void collapseDropMenu();
void dragAnimationFinished();
void dropReceived( QDropEvent *event );
void onSocialActionsLoaded();
private:
Ui::AudioControls *ui;
void setAlbumCover();
void setSocialActions();
QPixmap m_defaultCover;
Ui::AudioControls *ui;
Tomahawk::result_ptr m_currentTrack;
Tomahawk::PlaylistInterface::RepeatMode m_repeatMode;
bool m_shuffled;
QTimer m_phononTickCheckTimer;
QTimeLine m_sliderTimeLine;
qint64 m_seekMsecs;
QPropertyAnimation *m_dragAnimation;
bool m_dropAreaExpanded;
QTimer m_dropAreaCollapseTimer;
qint64 m_lastSliderCheck;
bool m_noTimeChange;
qint64 m_lastTextSecondShown;
};
#endif // AUDIOCONTROLS_H

View File

@@ -28,9 +28,6 @@
<height>80</height>
</size>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="topMargin">
<number>0</number>
@@ -84,14 +81,14 @@
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<item>
<widget class="ImageButton" name="playPauseButton">
<property name="text">
<string>Play</string>
</property>
</widget>
</item>
<item row="0" column="0">
<item>
<widget class="ImageButton" name="pauseButton">
<property name="text">
<string>Pause</string>
@@ -125,269 +122,268 @@
</item>
<item>
<widget class="QWidget" name="metaDataArea" native="true">
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="margin">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>74</height>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>12</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="DropMenu" name="metaDataDropArea" native="true">
<widget class="QLabel" name="coverImage">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>58</width>
<height>58</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>0</height>
<width>58</width>
<height>58</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="metaDataInfoArea" native="true">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>74</height>
</size>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>4</number>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>12</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="coverImage">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>58</width>
<height>58</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>58</width>
<height>58</height>
</size>
</property>
<property name="text">
<string>TextLabel</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,0,0,0">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="trackLabelLayout">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QueryLabel" name="artistTrackLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>Artist</string>
</property>
</widget>
</item>
<item>
<widget class="QueryLabel" name="albumLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>Album</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>4</width>
<height>8</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="ImageButton" name="loveButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>love</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>13</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="ownerLabel">
<property name="font">
<font>
<pointsize>7</pointsize>
</font>
</property>
<property name="text">
<string>Owner</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>4</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>4</number>
</property>
<item>
<widget class="QLabel" name="timeLabel">
<property name="text">
<string>Time</string>
</property>
</widget>
</item>
<item>
<widget class="SeekSlider" name="seekSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="timeLeftLabel">
<property name="text">
<string>Time Left</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<property name="topMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,0,0">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="trackLabelLayout">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QueryLabel" name="artistTrackLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>Artist</string>
</property>
</widget>
</item>
<item>
<widget class="QueryLabel" name="albumLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>Album</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>4</width>
<height>8</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="ownerLabel">
<property name="font">
<font>
<pointsize>7</pointsize>
</font>
</property>
<property name="text">
<string>Owner</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTop</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="socialLayout">
<item>
<spacer name="socialSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ImageButton" name="loveButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string>love</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>4</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>4</number>
</property>
<item>
<widget class="QLabel" name="timeLabel">
<property name="text">
<string>Time</string>
</property>
<property name="alignment">
<set>Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="SeekSlider" name="seekSlider">
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="timeLeftLabel">
<property name="text">
<string>Time Left</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
<zorder>metaDataInfoArea</zorder>
<zorder>metaDataDropArea</zorder>
</widget>
</item>
<item>
@@ -558,18 +554,12 @@
<customwidget>
<class>ImageButton</class>
<extends>QPushButton</extends>
<header>utils/imagebutton.h</header>
<header>widgets/imagebutton.h</header>
</customwidget>
<customwidget>
<class>QueryLabel</class>
<extends>QLabel</extends>
<header>utils/querylabel.h</header>
</customwidget>
<customwidget>
<class>DropMenu</class>
<extends>QWidget</extends>
<header>utils/dropmenu.h</header>
<container>1</container>
<header>widgets/querylabel.h</header>
</customwidget>
</customwidgets>
<resources/>

179
src/breakpad/BreakPad.cpp Normal file
View File

@@ -0,0 +1,179 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "BreakPad.h"
#include "config.h"
#include "utils/logger.h"
#include <QCoreApplication>
#include <QString>
#include <QFileInfo>
#include <string.h>
#define CRASH_REPORTER_BINARY "tomahawk_crash_reporter"
bool s_active = true;
#ifndef WIN32
#include <unistd.h>
static bool
LaunchUploader( const char* dump_dir, const char* minidump_id, void* that, bool succeeded )
{
// DON'T USE THE HEAP!!!
// So that indeed means, no QStrings, no qDebug(), no QAnything, seriously!
if ( !succeeded )
return false;
const char* crashReporter = static_cast<BreakPad*>(that)->crashReporter();
if ( !s_active || strlen( crashReporter ) == 0 )
return false;
pid_t pid = fork();
if ( pid == -1 ) // fork failed
return false;
if ( pid == 0 )
{
// we are the fork
execl( crashReporter,
crashReporter,
dump_dir,
minidump_id,
minidump_id,
(char*) 0 );
// execl replaces this process, so no more code will be executed
// unless it failed. If it failed, then we should return false.
printf( "Error: Can't launch CrashReporter!\n" );
return false;
}
// we called fork()
return true;
}
BreakPad::BreakPad( const QString& path, bool active )
#ifdef Q_OS_LINUX
: google_breakpad::ExceptionHandler( path.toStdString(), 0, LaunchUploader, this, true )
#else
: google_breakpad::ExceptionHandler( path.toStdString(), 0, LaunchUploader, this, true, 0 )
#endif
{
s_active = active;
QString reporter;
QString localReporter = QString( "%1/%2" ).arg( qApp->applicationDirPath() ).arg( CRASH_REPORTER_BINARY );
QString globalReporter = QString( "%1/%2" ).arg( CMAKE_INSTALL_FULL_LIBEXECDIR ).arg( CRASH_REPORTER_BINARY );
if ( QFileInfo( localReporter ).exists() )
reporter = localReporter;
else if ( QFileInfo( globalReporter ).exists() )
reporter = globalReporter;
else
tLog() << "Could not find \"" CRASH_REPORTER_BINARY "\" in \"" CMAKE_INSTALL_FULL_LIBEXECDIR "\" or application path";
char* creporter;
std::string sreporter = reporter.toStdString();
creporter = new char[ sreporter.size() + 1 ];
strcpy( creporter, sreporter.c_str() );
m_crashReporter = creporter;
}
#else
static bool
LaunchUploader( const wchar_t* dump_dir, const wchar_t* minidump_id, void* that, EXCEPTION_POINTERS *exinfo, MDRawAssertionInfo *assertion, bool succeeded )
{
if ( !succeeded )
return false;
// DON'T USE THE HEAP!!!
// So that indeed means, no QStrings, no qDebug(), no QAnything, seriously!
// broken in mingw, hardcode it for now
// const char* productName = static_cast<BreakPad*>(that)->productName();s
// convert productName to widechars, which sadly means the product name must be Latin1
wchar_t product_name[ 256 ] = L"tomahawk";;
// char* out = (char*)product_name;
// const char* in = productName - 1;
// do {
// *out++ = *++in; //latin1 chars fit in first byte of each wchar
// *out++ = '\0'; //every second byte is NULL
// }
// while (*in);
wchar_t command[MAX_PATH * 3 + 6];
wcscpy( command, CRASH_REPORTER_BINARY L" \"" );
wcscat( command, dump_dir );
wcscat( command, L"\" \"" );
wcscat( command, minidump_id );
wcscat( command, L"\" \"" );
wcscat( command, product_name );
wcscat( command, L"\"" );
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof( si ) );
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_SHOWNORMAL;
ZeroMemory( &pi, sizeof(pi) );
if ( CreateProcess( NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ) )
{
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
TerminateProcess( GetCurrentProcess(), 1 );
}
return false;
}
BreakPad::BreakPad( const QString& path, bool active )
: google_breakpad::ExceptionHandler( path.toStdWString(), 0, LaunchUploader, this, true )
{
s_active = active;
}
#endif // WIN32
void
BreakPad::setActive( bool enabled )
{
s_active = enabled;
}
bool
BreakPad::isActive()
{
return s_active;
}

50
src/breakpad/BreakPad.h Normal file
View File

@@ -0,0 +1,50 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QString>
#ifdef __APPLE__
# include "client/mac/handler/exception_handler.h"
#elif defined WIN32
# include "client/windows/handler/exception_handler.h"
#elif defined __linux__
# include "client/linux/handler/exception_handler.h"
#endif
class BreakPad : public google_breakpad::ExceptionHandler
{
const char* m_productName; // yes! It MUST be const char[]
const char* m_crashReporter; // again, const char[]
public:
BreakPad( const QString& dump_write_dirpath, bool active );
~BreakPad()
{}
static void setActive( bool enabled );
static bool isActive();
void setProductName( const char* s ) { m_productName = s; };
const char* productName() const { return m_productName; }
void setCrashReporter( const char* s ) { m_crashReporter = s; };
const char* crashReporter() const { return m_crashReporter; }
};
#undef char

View File

@@ -0,0 +1,24 @@
PROJECT( CrashReporter )
FIND_PACKAGE( Qt4 REQUIRED )
SET( QT_USE_QTNETWORK TRUE )
SET( crashreporter_SOURCES main.cpp CrashReporter.cpp )
SET( crashreporter_HEADERS CrashReporter.h )
SET( crashreporter_UI CrashReporter.ui )
SET( crashreporter_RC ../../../resources.qrc )
QT4_WRAP_CPP( crashreporter_HEADERS_MOC ${crashreporter_HEADERS} )
QT4_WRAP_UI( crashreporter_UI_HEADERS ${crashreporter_UI} )
QT4_ADD_RESOURCES( crashreporter_RC_RCC ${crashreporter_RC} )
INCLUDE( ${QT_USE_FILE} )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src ../../libtomahawk )
ADD_DEFINITIONS( ${QT_DEFINITIONS} )
ADD_EXECUTABLE( tomahawk_crash_reporter WIN32 ${crashreporter_SOURCES} ${crashreporter_HEADERS_MOC} ${crashreporter_UI_HEADERS} ${crashreporter_RC_RCC} )
TARGET_LINK_LIBRARIES( tomahawk_crash_reporter ${QT_LIBRARIES} tomahawklib )
install(TARGETS tomahawk_crash_reporter RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})

View File

@@ -0,0 +1,186 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CrashReporter.h"
#include <QIcon>
#include <QDebug>
#include <QTimer>
#include <QDir>
#include <QDateTime>
#include <QHttp>
#include "utils/tomahawkutils.h"
#define LOGFILE TomahawkUtils::appLogDir().filePath( "Tomahawk.log" ).toLocal8Bit()
#define RESPATH ":/data/"
CrashReporter::CrashReporter( const QStringList& args )
{
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
ui.setupUi( this );
ui.logoLabel->setPixmap( QPixmap( RESPATH "icons/tomahawk-icon-128x128.png" ).scaled( QSize( 55, 55 ), Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
ui.progressBar->setRange( 0, 100 );
ui.progressBar->setValue( 0 );
ui.progressLabel->setPalette( Qt::gray );
#ifdef Q_WS_MAC
QFont f = ui.bottomLabel->font();
f.setPointSize( 10 );
ui.bottomLabel->setFont( f );
f.setPointSize( 11 );
ui.progressLabel->setFont( f );
ui.progressLabel->setIndent( 3 );
#else
ui.vboxLayout->setSpacing( 16 );
ui.progressBar->setTextVisible( false );
ui.progressLabel->setIndent( 1 );
ui.bottomLabel->setDisabled( true );
ui.bottomLabel->setIndent( 1 );
// adjust the spacer since we adjusted the spacing above
for ( int x = 0; x < ui.vboxLayout->count(); ++x )
{
if ( QSpacerItem* spacer = ui.vboxLayout->itemAt( x )->spacerItem() )
{
spacer->changeSize( 6, 2, QSizePolicy::Minimum, QSizePolicy::Fixed );
break;
}
}
#endif //Q_WS_MAC
m_http = new QHttp( "oops.tomahawk-player.org", 80, this );
connect( m_http, SIGNAL( done( bool ) ), SLOT( onDone() ), Qt::QueuedConnection );
connect( m_http, SIGNAL( dataSendProgress( int, int ) ), SLOT( onProgress( int, int ) ) );
m_dir = args.value( 1 );
m_minidump = m_dir + '/' + args.value( 2 ) + ".dmp";
m_product_name = args.value( 3 );
setFixedSize( sizeHint() );
QTimer::singleShot( 0, this, SLOT( send() ) );
}
static QByteArray
contents( const QString& path )
{
QFile f( path );
f.open( QFile::ReadOnly );
return f.readAll();
}
void
CrashReporter::send()
{
QByteArray body;
// socorro expects a 10 digit build id
QRegExp rx( "(\\d+\\.\\d+\\.\\d+).(\\d+)" );
rx.exactMatch( TomahawkUtils::appFriendlyVersion() );
QString const version = rx.cap( 1 );
QString const buildId = rx.cap( 2 ).leftJustified( 10, '0' );
// add parameters
typedef QPair<QByteArray, QByteArray> Pair;
QList<Pair> pairs;
pairs << Pair( "BuildID", buildId.toUtf8() )
<< Pair( "ProductName", m_product_name.toUtf8() )
<< Pair( "Version", TomahawkUtils::appFriendlyVersion().toLocal8Bit() )
<< Pair( "Vendor", "Tomahawk" )
<< Pair( "timestamp", QByteArray::number( QDateTime::currentDateTime().toTime_t() ) );
foreach ( Pair const pair, pairs )
{
body += "--thkboundary\r\n";
body += "Content-Disposition: form-data; name=\"" +
pair.first + "\"\r\n\r\n" +
pair.second + "\r\n";
}
// add minidump file
body += "--thkboundary\r\n";
body += "Content-Disposition: form-data; name=\"upload_file_minidump\"; filename=\""
+ QFileInfo( m_minidump ).fileName() + "\"\r\n";
body += "Content-Type: application/octet-stream\r\n";
body += "\r\n";
body += contents( m_minidump );
body += "\r\n";
// add logfile
body += "--thkboundary\r\n";
body += "Content-Disposition: form-data; name=\"upload_file_tomahawklog\"; filename=\"Tomahawk.log\"\r\n";
body += "Content-Type: application/x-gzip\r\n";
body += "\r\n";
body += qCompress( contents( LOGFILE ) );
body += "\r\n";
body += "--thkboundary--\r\n";
QHttpRequestHeader header( "POST", "/addreport.php" );
header.setContentType( "multipart/form-data; boundary=thkboundary" );
header.setValue( "HOST", "oops.tomahawk-player.org" );
m_http->request( header, body );
}
void
CrashReporter::onProgress( int done, int total )
{
if ( total )
{
QString const msg = tr( "Uploaded %L1 of %L2 KB." ).arg( done / 1024 ).arg( total / 1024 );
ui.progressBar->setMaximum( total );
ui.progressBar->setValue( done );
ui.progressLabel->setText( msg );
}
}
void
CrashReporter::onDone()
{
QByteArray data = m_http->readAll();
ui.progressBar->setValue( ui.progressBar->maximum() );
ui.button->setText( tr( "Close" ) );
QString const response = QString::fromUtf8( data );
if ( m_http->error() != QHttp::NoError || !response.startsWith( "CrashID=" ) )
{
onFail( m_http->error(), m_http->errorString() );
}
else
ui.progressLabel->setText( tr( "Sent! <b>Many thanks</b>." ) );
}
void
CrashReporter::onFail( int error, const QString& errorString )
{
ui.button->setText( tr( "Close" ) );
ui.progressLabel->setText( tr( "Failed to send crash info." ) );
qDebug() << "Error:" << error << errorString;
}

Some files were not shown because too many files have changed in this diff Show More