Commit Graph

8 Commits

Author SHA1 Message Date
Alfred Reynolds
be8f615c21 - Add a new Log() function to replace ad-hoc std::cout calls wrapped in debugMode checks
- Remove debugMode from classes that don't need it (i.e all of them)
2021-08-26 12:13:09 +12:00
Alfred Reynolds
24a4a07593 - Change the object ownership semantics to take ownership of unique_ptr's rather than references
- Add helper functions for setting up config
- Add support for dynamically updating more config options (path related ones in particular)
2021-08-11 14:01:18 +12:00
Alfred Reynolds
8ac20f4b43 - Add support for loading configuration via a file rather than the command line
- Added "-c" command line option to look for config file "slide.options.json" in. Otherwise looks in ~/.config/slide/slide.options.json or /etc/slide/slide.options.json
- Added code to reload config options at runtime (when the image is scheduled to update)
2021-08-10 18:20:33 +12:00
Alfred Reynolds
2e96ea4814 - improve support for on the fly rotation of our window. Schedule the image update for a future frame so we don't block right away and clear the current image. This also fixes loading multiple images during a rotation as it takes time for geometry changes to apply to QT 2021-08-06 17:29:28 +12:00
alfred-reynolds
4132f65b2e - fix comment
Co-authored-by: Manuel Dewald <github@manueldewald.de>
2021-07-31 13:59:05 +12:00
Alfred Reynolds
019b9406bc - If you fail to load content try on a different timer (every 5 seconds by default). This fixes slow image loading at startup if you have a long timeout between pictures. 2021-07-30 17:57:01 +12:00
Manuel
db09dc43f2 split switcher and traverser to prepare for shuffle mode 2020-02-13 21:52:17 +01:00
Manuel
bc9dd90acc split imageselector
* image updating in seperate class ImageSwitcher
 * image selection in class ImageSelector
2020-01-02 23:34:06 +01:00