Commit Graph

46 Commits

Author SHA1 Message Date
John Maguire bebd781fdf Reformat all non-3rd-party C/C++/Objective-C++.
Command line:
find src ext -regex '.*\.\(h\|cpp\|mm\)' -exec clang-format -i
 -style='{BasedOnStyle: Google, DerivePointerBinding: false}' {} \;
2014-02-07 16:34:20 +01:00
John Maguire 71893e4847 Use nullptr instead of NULL everywhere. 2014-02-06 17:29:59 +01:00
Andreas 98ad9dbda6 Add possibility to download album covers automatically when playing a track without one. To activate: right click on now playing widget and select "Search automatically". 2013-12-30 23:50:57 +01:00
Andreas 00fd9b4724 Androids like kittens, too 2013-12-22 15:16:42 +01:00
David Sansome dac22dbd72 Explicitly cast scoped_ptrs to bool. Fixes issue 3570. 2013-04-15 21:41:54 +10:00
Arnaud Bienner 627ae372d4 Better check resizeEvent' size. Otherwise, the nowplayingwidget isn't always resized (even if it should), particulary at startup, when starting playing 2012-03-19 20:42:19 +01:00
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
Nobuhiro Iwamatsu 3ded9f29d2 Fix compiling on ARM. 2011-08-01 22:37:53 +02:00
David Sansome 38100f5e59 Make CoverProviders not a singleton 2011-07-23 19:34:41 +01:00
David Sansome 62bd3694ec Remove cover provider factories and refactor everything else to use cover providers directly instead. 2011-06-19 23:15:51 +00:00
Paweł Bara d1d177769a cover providers are now recreated every search (this will lead to simpler API of theirs in a moment)
initial migration from SIP -> PythonQt in cover providers
2011-05-17 17:53:36 +00:00
Paweł Bara 23fbada6c4 fixing a problem with disabled "save cover to file" action in the now playing widget (fixes issue #1721) 2011-04-27 19:44:38 +00:00
Paweł Bara fdda938c53 now that we have more cover providers, we're bringing the cover manager and the cover searcher goodness to our last.fm-less users 2011-04-27 19:10:37 +00:00
David Sansome 8b1cbc33c0 Fix a race condition on startup that would cause a crash if the album cover loader thread took too long to start (happened a lot on Windows) 2011-04-24 18:07:05 +00:00
Paweł Bara 032b5f7e48 initial commit of "multiple covers providers" feature:
- simple API for cover providers (both C++ and SIP)
- a new "package" for cover related code
2011-04-02 13:34:06 +00:00
David Sansome cf826aeee0 Support dragging and dropping image files onto the now playing widget and edit tag dialog to set an album's cover art 2011-03-14 20:01:27 +00:00
David Sansome f700df2f54 ALL GLORY TO THE HYPNOTOAD. Fixes issue 1374 2011-03-13 22:46:25 +00:00
Paweł Bara 77151d7ebd Hiding some of Song's cover art logic complexity in Song's API (namely: embedded and manually unset covers). 2011-02-02 21:01:08 +00:00
Paweł Bara 8aedda1795 moving the 'Save cover to file' action into AlbumCoverChoiceController; implementing the action in all related places (now playing widget, album cover manager, edit tag dialog)
now playing widget: disable all cover related context menu options (except for the 'save cover' one) when in 'Kittens' mode
2011-02-02 16:22:04 +00:00
John Maguire 9786570f35 Add support for saving album covers/kittens.
Fixes issue #1395
2011-01-31 20:53:38 +00:00
Paweł Bara 35441d829e fixed a bug where 'Show cover in full size' and 'Unset cover' actions were incorrectly being disabled in the 'Now playing' widget 2011-01-30 20:17:09 +00:00
Paweł Bara 2fec795b89 fixed an error where entering the Cover Searcher dialog without query would make it show the busy indicator forever
further refactoring of album cover changes (QMenu in controller)
2011-01-25 23:33:27 +00:00
Paweł Bara 4a9d38bbdd final refactoring stage of cover changing code (common QAction*s)
reset URL in 'Cover from URL' dialog on reentrance
2011-01-24 18:32:09 +00:00
Paweł Bara ebfbdba8a9 further refactoring of cover changing code (saving covers in controller) 2011-01-24 17:53:31 +00:00
Paweł Bara 8bce92e69b refactoring the code that handles common UI album cover related actions into a common controller
fixes a bug where cancelling the 'cover from URL' dialog would set the cover to a previously chosen URL
2011-01-24 00:09:57 +00:00
Paweł Bara 3e2ffd3647 ability to load cover from URL in all the usual places: cover manager, now playing widget and edit tag dialog (fixes issue #517) 2011-01-23 20:24:17 +00:00
David Sansome d1d0236385 Make the "show full size" menu item in the now playing widget and edit tag dialog work with embedded covers 2010-12-28 22:20:54 +00:00
David Sansome 97d7fe764a Download higher resolution images from last.fm. Thanks markwatkinson. Fixes issue #1187 2010-12-26 20:19:12 +00:00
David Sansome b49fd1903d Add menu items to set the cover art to the context menu of the now playing widget. Fixes issue #906 2010-12-26 17:16:40 +00:00
John Maguire 5f6dcbe4b7 Early Caturday! 2010-12-10 14:26:29 +00:00
David Sansome ed1a25693c Add missing licenses to debian/copyright, and add copyright information to each source file 2010-11-20 13:27:10 +00:00
David Sansome b5f366c40a Add a thread safe network disk cache, and remove the need to pass a NetworkAccessManager around everywhere. Fixes issue #852 2010-10-16 17:20:54 +00:00
John Maguire b37949628a Use filename if no title in now playing widget.
Fixes issue #535
Thanks to arthur.murauskas
2010-08-06 14:15:14 +00:00
David Sansome f64cdb23e9 Make the AlbumCoverLoader read embedded album cover art when it's available. Fixes issue #516 2010-07-19 17:55:02 +00:00
John Maguire 90fc1481e6 Show song information when Hypnotoad is hypnotising. 2010-07-14 13:44:45 +00:00
John Maguire 41ab99e62e Generate Hypnotoad rather than streaming it. 2010-07-14 11:16:56 +00:00
John Maguire 5c2364ee25 Use update(), not repaint() 2010-07-12 20:00:42 +00:00
John Maguire 6c18691755 Make Hypnotoad disable-able. 2010-07-12 19:58:47 +00:00
John Maguire d03bdda5f7 Fixes issu...
,'``.._   ,'``.
              :,--._:)\,:,._,.:       All Glory to
              :`--,''   :`...';\      the HYPNO TOAD!
               `,'       `---'  `.
               /                 :
              /                   \
            ,'                     :\.___,-.
           `...,---'``````-..._    |:       \
             (                 )   ;:    )   \  _,-.
              `.              (   //          `'    \
               :               `.//  )      )     , ;
             ,-|`.            _,'/       )    ) ,' ,'
            (  :`.`-..____..=:.-':     .     _,' ,'
             `,'\ ``--....-)='    `._,  \  ,') _ '``._
          _.-/ _ `.       (_)      /     )' ; / \ \`-.'
         `--(   `-:`.     `' ___..'  _,-'   |/   `.)
             `-. `.`.``-----``--,  .'
               |/`.\`'        ,','); SSt
                   `         (/  (/
2010-07-12 19:51:23 +00:00
David Sansome 4c938c0da1 Add a small top border to the large cover 2010-06-18 00:24:09 +00:00
David Sansome 349acc1803 Add a checkbox for zach to move the cover art above the status bar. 2010-06-18 00:06:59 +00:00
David Sansome 43575218a2 Use the bigger nocover image from amarok 2 2010-06-17 22:47:25 +00:00
David Sansome ea77f022e4 Remember the small/large preference (I hear your mum likes large), draw a black background for the large mode, and center the cover when width > height. 2010-06-17 22:31:22 +00:00
David Sansome 27473b3f3a Large cover mode in the now playing widget. It doesn't remember your preference yet and the code is a bit buggy, but it looks pretty :)
John Komnenos the Fat attempted to usurp the imperial throne of Alexios III Angelos on the year of this revision.
2010-06-17 21:38:03 +00:00
David Sansome afa4d0a4e2 Add a Now Playing widget 2010-06-16 22:00:39 +00:00