Commit Graph

65 Commits

Author SHA1 Message Date
Jim Broadus f04657e7e7 Replace qrand usage with QRandomGenerator
QRandomGenerator was introduced in 5.10 and qrand has since been
deprecated. QRandomGenerator::global() returns a global instance that
has been securely seeded. QRandomGenerator provides methods that
generate values within ranges, so taking a modulus of the result isn't
necessary.
2021-04-20 10:31:07 +01:00
Jim Broadus e8875faf83 visualisations: Properly scale projectM view
In version 5.6, Qt introduced an automatic scaling feature for high DPI
displays. Since projectM is not part of the Qt framework, it's necessary
to convert coordinates when specifying view size.

Reference: https://doc.qt.io/qt-5/highdpi.html
2021-04-07 21:49:18 +01:00
John Maguire 341dc7326f Reformat all C++ 2020-09-22 14:56:06 +01:00
Jim Broadus 096203ac88 visualisations: Fix close action
Pressing the close button on the window sends a close event, where other methods
of exiting visualization just hide the window. If shown again after close, the
window will be empty. To fix this, handle and reject the close event. Call hide
instead.
2020-05-09 13:28:29 +01:00
Jonas Kvinge 344023e6dd Fix formatting 2019-11-10 15:16:39 +01:00
Jonas Kvinge ba31c755ef Replace all uses of QSignalMapper with C++11 lambda expressions 2019-11-10 15:07:12 +01:00
John Maguire c9b0bb2044 Revert "Add an option to inhibit suspend while playing" 2016-01-08 15:09:07 +00:00
narunlifescience b13f0690c8 Add an option to inhibit suspend while playing
minor modifications
2015-12-10 03:20:29 -06:00
narunlifescience dd953fd86c check custom icon location, then system theme & then fallback theme
icons added & replaced
2015-10-13 22:35:49 -05:00
John Maguire 30346e7810 Fix missing gst_buffer_unref.
Fixes #4823
2015-04-23 11:25:34 +01:00
David Sansome 6bb81328e8 Merge branch 'master' into gstreamer-1.2
Conflicts:
	ext/clementine-spotifyblob/mediapipeline.cpp
	gst/moodbar/gstfftwspectrum.c
	src/core/songloader.cpp
	src/core/songloader.h
	src/engines/gstengine.cpp
	src/engines/gstenginepipeline.cpp
	src/moodbar/moodbarpipeline.cpp
	src/musicbrainz/chromaprinter.cpp
	src/transcoder/transcoder.cpp
	src/ui/mainwindow.cpp
	src/visualisations/projectmvisualisation.cpp
2014-06-09 16:20:24 +10:00
David Sansome cf6cdc6936 Add disambiguation strings to "Quality". Fixes #4316 2014-05-11 17:35:23 +10: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
David Sansome 5ac83bd463 Merge branch 'master' into gstreamer-1.2 2014-01-25 00:24:31 +11:00
David Sansome 186a981614 Start at a random visualisation. Fixes issue 3966. 2013-12-02 21:24:15 +11:00
David Sansome d678788af7 Load and save the visualisation delay setting properly. Fixes issue 3968. 2013-12-02 21:24:08 +11:00
John Maguire 56c949815b First pass at Gstreamer 1.0 porting.
This at least compiles against gstreamer 1.2.
Things that work:
* Playing audio
* Automatically completing tags

Things that don't work
* Spotify
* Moodbar

Things I haven't tested
* Transcoding
2013-09-26 17:49:24 +02:00
Martin Herkt 5b202b25fb Fix visualization overlay transparency
Same as the pretty OSD: Certain widget styles would paint their own
background and obscure the visualization with it. Fix by setting
background color to transparent.

Fixes issue #2927
2012-05-09 10:19:25 +02:00
Arnaud Bienner 0d50f9ec7a Use '%1 fps' to reduce the number of strings to translate, and to keep consistency over the application, as similar strings are used in equalizer (i.e. I don't want to have different translations for similar original English strings) 2012-03-22 20:02:12 +01:00
Arnaud Bienner 8d1e3ea63a Use 'Very high' instead of 'Ultra', to be more consistent with other menus 2012-03-22 19:50:08 +01:00
Benjamin Valentin 6804f1af20 Add an Ultra quality setting for visualisations. Fixes issue 2817 2012-03-20 22:08:59 +00:00
David Sansome e3b88a72db Add a quick check for OpenGL support in QGLFormat before initialising ProjectM visualisations. Might fix a crash when OpenGL is unavailable. Fixes issue 2741 2012-03-12 21:26:19 +00:00
David Sansome e8101273f0 Set a minimum size on the visualisation window. Fixes issue 1643 2011-03-29 19:12:58 +00:00
David Sansome 4f11cb94e1 Make visualisations work again (how did nobody notice this for 3 months??) 2011-03-20 21:41:09 +00:00
David Sansome 008d396077 Use a monotonically increasing ID to identify pipelines, instead of their pointer value. 2011-03-20 21:40:53 +00:00
David Sansome 5eb916cdff Watch script directories for changes 2011-01-16 15:11:23 +00:00
John Maguire b9e642c864 Add more close shortcuts. 2010-12-14 17:55:08 +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
John Maguire f0c3bf4332 Support for inhibiting gnome screensaver.
Update issue #879
Gnome support done.
2010-10-12 14:44:33 +00:00
John Maguire b9699c690f Fix crash on closing visualisation fullscreen with escape.
Fixes issue #748
2010-09-13 20:50:18 +00:00
David Sansome 1a5f865d53 Bundle an empty font file and pass it to projectM so it doesn't crash when FTGL is turned on. 2010-07-18 13:26:01 +00:00
David Sansome 38ea733e18 Oops, fix broken visualisations from yesterday 2010-07-11 17:44:55 +00:00
David Sansome acf9ff5fd3 Add a cmake option to use a system install of libprojectM. No, gentoo users, you shouldn't use this. 2010-07-10 20:21:06 +00:00
David Sansome 4760210b2f Show a warning message instead of asserting if no projectM presets could be loaded. 2010-07-10 17:21:23 +00:00
David Sansome 783ad54b68 Only create the OpenGL graphics context when you first open the visualisations window. Fixes issue #491 2010-07-10 15:48:46 +00:00
David Sansome 0404ecec70 Fix compilation without gstreamer. Fixes issue #440 2010-06-26 13:20:08 +00:00
David Sansome 2b17a8ee1f Revert r1344 (the timer tracing), it didn't help 2010-06-25 22:04:24 +00:00
David Sansome cc6413ab0e Add tracing to every timer event, might help track down CPU usage... 2010-06-25 08:46:03 +00:00
David Sansome 72fec9a8d1 Don't try to load projectM presets from an empty directory 2010-06-22 19:44:38 +00:00
David Sansome faf34a92bb Make it possible to compile out the default CMAKE_INSTALL_PREFIX paths for projectm visualisations 2010-06-22 15:46:51 +00:00
David Sansome 39907cda9a Use visualizations with a 'z' in the UI, and save the proper spelling for en_GB 2010-06-16 23:05:11 +00:00
David Sansome f04e4bb6ea Add an icon to the visualisations window.
Update issue #394
Missed that one, thanks :)
2010-06-10 22:50:26 +00:00
David Sansome 15df3b90a3 Set window icons on all the dialogs. Fixes issue #394 2010-06-10 22:09:35 +00:00
David Sansome 40bb827fcd Make all the source files a single cmake target again. 2010-06-08 22:39:31 +00:00
David Sansome f03449dd00 Fix compilation problems when compiling without gstreamer 2010-06-08 15:55:44 +00:00
John Maguire 2979b6ae84 Forgotten mac build fix. 2010-06-07 17:57:07 +00:00