Commit Graph

129 Commits

Author SHA1 Message Date
David Sansome bacef04405 Refactoring: remove a couple of the AlbumCoverLoader instances and instead use a shared CurrentArtLoader. 2012-02-26 14:40:51 +00:00
David Sansome 48f15c9fc7 Refactoring: instead of passing individual pointers to useful core classes (like TaskManager or LibraryBackend) to each class that uses them, pass one singleton-like Application instance everywhere. 2012-02-26 14:40:51 +00:00
David Sansome bbf99fdd0b Change Spotify to use the new MessageHandler, remove SpotifyMessageHandler 2012-01-08 15:10:11 +00:00
David Sansome 68a379ef26 Use pb::spotify instead of spotify_pb for the protobuf namespace 2012-01-07 23:26:27 +00:00
David Sansome 9be641ee87 The external tagreader mostly works now:
* Make TagReaderClient a singleton until it's easier to pass dependencies around
 * Add a WaitForSignal() that uses a local event loop to wait for a signal to be emitted
 * Add a WaitForFinished() to _MessageReplyBase that blocks using a semaphore
 * Add blocking versions of all TagReaderClient methods
 * Use the TagReaderClient everywhere that Song::InitFromFile and friends were used before
2012-01-07 00:26:07 +00:00
John Maguire 0af197f6a1 Use QPalette::BrightText for global search results for better contrast on Mac.
(cherry picked from commit e4070bbb3b)
2011-12-13 14:18:25 +01:00
David Sansome 52a1cc3a08 Remove the global search popup for now until it can be made a bit prettier
(cherry picked from commit 54df30c15d)
2011-12-12 20:50:02 +00:00
David Sansome de1fa1a6be Fix the black background on the global search tooltip on Windows 7 2011-12-10 17:36:57 +00:00
Arnaud Bienner 68a1ac545f Display global search results when focusing on global search box only if reason is 'mouseFocus'
(cherry picked from commit 0322c2bbf1)
2011-12-10 13:22:17 +00:00
Arnaud Bienner 6fc02c364a Connect textChanged signal instead of textEdited, so the search results are updated (cleared) also when clear button is pressed
(cherry picked from commit 33b0c84f03)
2011-12-10 13:22:12 +00:00
Arnaud Bienner 7dfbc2d2e1 Show last global search results again when focusing back in global search box
(cherry picked from commit 898e1e2ed1)
2011-12-10 13:22:08 +00:00
Arnaud Bienner 8441c565c7 Clear global search box when pressing Escape, like in other search boxes
(cherry picked from commit f89fb0db3a)
2011-12-10 13:22:02 +00:00
Arnaud Bienner 777caf7757 Don't start a global search if text is empty; start otherwise, even for short queries
(cherry picked from commit 99bcb5c2a2)
2011-12-10 13:21:55 +00:00
David Sansome 75f2550c31 Don't save the enabled state for a provider if that provider isn't logged in. The enabled state would always get set to false in this case since the checkbox is disabled in the UI, regardless of its actual state. 2011-12-01 14:30:36 +00:00
David Sansome 42a20d6bcb Display di.fm suggestions in the global search box properly 2011-11-29 14:29:48 +00:00
David Sansome 4dc4aa33ac Make the enabled/disabled state of a global search provider separate from its logged in state - means that now Grooveshark and Spotify providers will be enabled as soon as you login 2011-11-28 14:18:20 +00:00
David Sansome b873209d39 Remove the <xiphcomment.h> include from song.h so that windows headers don't infect everything else. Also move other bits of song.h into song.cpp, and reduce the number of includes in song.h. 2011-11-28 13:56:55 +00:00
Arnaud Bienner ceab3bd6f0 Add Grooveshark songs as internet items, when adding them from global search, so user can use all GS custom actions 2011-11-24 00:30:11 +01:00
David Sansome fc0e2c4ea6 Fix the spotify resolver to not crash when not connected to spotify, or after logging out.
Fixes issue 2399
2011-11-12 18:55:04 +00:00
David Sansome 691cb9a392 Treat URLs specially in the global search widget 2011-11-11 22:11:25 +00:00
David Sansome d74d4d65f0 Clicking an artist or tag in the song info tabs now does a global search instead of searching just last.fm 2011-11-11 21:35:25 +00:00
David Sansome 62383d02fc Don't filter FocusIn events into the global search text box (doing so causes all kinds of unusual behaviour), instead just show the popup when pressing up or down. 2011-11-08 22:38:57 +00:00
David Sansome c1230f7b0a Fix a bug where the global search popup would never be shown on the first search 2011-11-08 22:29:52 +00:00
David Sansome ec5f9be27b Reposition the global search tooltip when new results arrive 2011-11-08 22:26:58 +00:00
David Sansome 3d8c0046a8 Don't allow providers to return more than 100 results at a time. 2011-11-08 21:49:20 +00:00
David Sansome d7720223ec Hash the information that's used by GlobalSearchWidget::CanCombineResults, avoiding doing a O(n^2) search when adding new results. 2011-11-08 21:41:41 +00:00
David Sansome b3f6e46c23 Don't re-show the results list if more results arrive after the user has explicitly closed it. Also don't continue to show results when the user has backspaced to < 3 characters. 2011-11-08 20:45:11 +00:00
David Sansome f80ac47931 Use a better search icon for the global search settings page - in the Mint-X theme the old icon was 22x22 only. 2011-11-08 20:20:25 +00:00
David Sansome 69275bb0b6 Disable the right fields in the global search settings page the first time the dialog is shown 2011-11-08 20:15:05 +00:00
David Sansome 550c4b4c84 Change another "Search everywhere" 2011-11-08 18:49:05 +00:00
David Sansome 0a655064b2 Change "Search everywhere" back to "Search for anything" - it better describes what we want the user to do with the input box 2011-11-08 18:37:00 +00:00
David Sansome 5dcd1d4890 Initialise the item lists for simple search providers on startup so they can be used to populate the global search suggestions. 2011-11-08 18:35:33 +00:00
Arnaud Bienner 9964eab741 Add a tooltip to the global search box 2011-11-06 19:05:09 +01:00
David Sansome 89c9ea37fa "Search everywhere" instead of "Search for anything", and make "e.g." translatable 2011-11-06 17:27:54 +00:00
David Sansome c6e252326f Make the Configure... button work for di.fm/sky.fm in the search settings page 2011-11-06 16:41:00 +00:00
David Sansome 814c79b183 Use more friendly names for "global search" in the UI 2011-11-06 16:36:47 +00:00
David Sansome 63f39d8dec Show some suggested queries in the global search widget 2011-11-06 16:30:42 +00:00
David Sansome e3b7afbdf2 Add "Your radio streams" global search provider 2011-11-06 15:00:50 +00:00
David Sansome dac6c1bf09 Add a SomaFM search provider 2011-11-06 00:02:32 +00:00
David Sansome 931efb1f70 Add an icecast search provider, refactor a couple of other bits 2011-11-06 00:02:32 +00:00
David Sansome b37f679c36 Implement the options to hide/show the global search box, and to hide/show all other search boxes. 2011-11-05 19:09:37 +00:00
David Sansome a9e1fe0075 Implement the global search tooltip options 2011-11-05 19:09:26 +00:00
David Sansome 1946011919 Update each provider's logged-in state in the global search settings dialog when returning to the global search page. 2011-11-05 17:19:42 +00:00
David Sansome 37166ca19d Give the last.fm global search provider a config dialog 2011-11-05 17:11:02 +00:00
David Sansome e0beff096d Fix the priority ordering of global search results 2011-11-05 17:01:57 +00:00
David Sansome dc05c101a3 Remove the individual provider buttons from the global search widget and replace them with one settings button instead. Also tweak the appearance of the tooltip 2011-11-05 16:57:33 +00:00
David Sansome 6446ef8b9e Use PNG spotify icons instead of SVG 2011-11-05 16:08:56 +00:00
David Sansome a2327c4eb7 Remove some redundant parameters from DigitallyImportedServiceBase and move the subclasses (which are now empty) into the same file. 2011-11-04 22:54:27 +00:00
David Sansome 2b6beb7417 Load the list of sky.fm/di.fm streams using the undocumented API, getting artwork for each stream as well. 2011-11-04 22:31:19 +00:00
John Maguire f241ebf7b9 Sort grooveshark results better in global search and show fewer of them. 2011-11-01 13:00:27 +01:00