Commit Graph

43 Commits

Author SHA1 Message Date
John Maguire 41e9c15248 Add arraysize macro from Chromium 2014-04-29 14:11:52 +02:00
Arnaud Bienner d49d818b37 Very minor style change 2014-04-23 00:40:06 +02:00
Arnaud Bienner 3f79fa5c65 Try to make the slider more accurate when moodbar is activated.
Previously, the slide wasn't displayed at the exact position where the user clicked, and the moodbar's width was equal to the slider's width, while it should have been as long as long the groove.
2014-04-23 00:03:30 +02:00
Sebastian J. Mielke e73450cf43 Moodbar-Trackslider uses the full available height
When determining the next state (for rendering the change), the slider widgets vertical SizePolicy is changed from Fixed to MinimumExpanding (same thing works the other way around).
2014-03-11 16:08:24 +01:00
John Maguire 192b60d965 Use nullptr as parent parameter default everywhere 2014-02-10 16:03:54 +01:00
John Maguire 3323c2d094 Convert all instances of foreach() to a C++11 for
find ext src -name '*.cpp' -exec \
    sed -i -e 's/foreach(\([^,]\+\),/for (\1 :/' {} \;
2014-02-10 14:43:32 +01:00
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
John Maguire d309d4ab27 Use c++11 instead of boost where possible. 2014-02-06 16:51:39 +01:00
Arnaud Bienner d3295f083b Revert "Update issue 3682: deactivate moodbar generation for wma files on Windows until we find a proper way to fix this issue."
This is not needed anymore now issue 3682 is fixed.

This reverts commit c9be07f508.
2013-09-07 00:23:56 +02:00
Arnaud Bienner c9be07f508 Update issue 3682: deactivate moodbar generation for wma files on Windows until we find a proper way to fix this issue. 2013-08-28 22:55:59 +02:00
Andreas bd528a47cd Fix divide by zero error in MoodbarRenderer. Fixes issue 3823. 2013-08-24 21:07:44 +02:00
David Sansome 4b0a7ae70b Oops, make that actually compile 2013-08-18 13:07:32 +10:00
David Sansome 534f216de2 Ensure we don't read past the end of the color vector when rendering a moodbar.
Fixes issue 3811.
2013-08-18 13:05:12 +10:00
David Sansome a3f927cde2 Run moodbar pipeline threads at idle CPU and IO priority. Fixes issue 3644. 2013-05-04 22:48:11 +10:00
John Maguire 90803fa0e0 Remove use of deprecated gstreamer functions. 2013-01-29 13:19:26 +01:00
John Maguire 8171192df5 Port Closure to variadic templates. 2012-11-22 17:19:04 +01:00
John Maguire c4c7265e7a Add a setting for disabling moodbar generation.
Fixes issue #3161
2012-11-19 14:32:39 +01:00
David Sansome f1117231e2 Increase the size of the moodbar cache to 60MB. Fixes issue 3052. 2012-07-15 17:17:17 +01:00
John Maguire 80ab12aeff More concise checking of callback param counts. 2012-06-08 15:13:23 +02:00
John Maguire 2da6c40fb5 Add runtime checker for gsignal callback arguments. 2012-06-08 14:27:38 +02:00
David Sansome 72ba6b34a6 Prevent a possible divide-by-zero error when generating the moodbar 2012-06-05 18:42:00 +01:00
David Sansome 00e69c341e Fix a crash when switching between playlists while moodbars are loading 2012-06-04 19:13:41 +01:00
David Sansome eeb617e892 Oops, fix another crash in the smart playlist preview view when moodbars are displayed 2012-05-31 14:17:36 +01:00
David Sansome 836a2b0c89 Update the moodbar column on the correct model 2012-05-30 11:06:41 +01:00
David Sansome 7501d664bf Make a little border around the moodbars in the playlist 2012-05-30 10:33:15 +01:00
John Maguire 38f1b71761 Use url instead of filename. 2012-05-28 15:33:37 -07:00
John Maguire 823b59e3a7 Use uridecodebin for Moodbar. 2012-05-28 15:18:36 -07:00
David Sansome 24ea8d3e05 Add moodbar settings to the track slider's context menu 2012-05-28 12:50:34 +01:00
David Sansome abdc6d8844 Add moodbar settings to the settings dialog 2012-05-27 23:56:40 +01:00
David Sansome 37df0ec0b6 Draw a background in the playlist when there isn't a moodbar 2012-05-27 21:53:38 +01:00
David Sansome 74a83a2f7c Draw the arrow on the moodbar before fading out 2012-05-27 21:51:26 +01:00
David Sansome 4cfa474fb8 Stop listening for synchronous bus callbacks from the moodbar pipeline, fixes some weird event loop stalls 2012-05-27 21:33:17 +01:00
David Sansome e71f436b70 Maybe fix compilation on Qt < 4.7 2012-05-27 21:15:37 +01:00
David Sansome d36dd4d753 Oops, actually load moodbar data on a different thread 2012-05-27 20:05:01 +01:00
David Sansome d939b4cf29 Remove playlist moodbars from the cache if they have been removed from the model, and make the disk cache bigger 2012-05-27 19:10:39 +01:00
David Sansome a2feaa61e7 Create and render moodbars in background threads to avoid blocking the UI 2012-05-27 18:53:57 +01:00
David Sansome 19c3e1d5ec Add a Mood column to the playlist 2012-05-27 16:46:16 +01:00
David Sansome f1dee1171b Move the moodbar rendering bits into another class 2012-05-25 23:56:55 +01:00
David Sansome bdfe6b909f Draw a slider arrow on the moodbar. 2012-05-25 23:34:56 +01:00
David Sansome e3cfd64764 Render the moodbar data in the slider widget, and write .mood files alongside music files. 2012-05-25 22:02:10 +01:00
David Sansome f98d5e8fb6 Make a scoped pointer from the thing retreived from the moodbar cache 2012-05-25 18:04:52 +01:00
David Sansome 51229b88c5 Create or load moodbar data for songs 2012-05-25 17:18:07 +01:00