From 5eaf7ee539659d12d3b38ad2bd99d80817d8af4f Mon Sep 17 00:00:00 2001 From: Alfred Reynolds Date: Sun, 1 Aug 2021 13:05:43 +1200 Subject: [PATCH] - Add support for per folder image display options. The file called options.json contains json keys to control image options when displaying files in this folder. Currently a singled option, fitAspectAxisToWindow, is supported - Remove duplicated image rotation reading code, have the image selector logic just pass this up via the per image options --- README.md | 11 ++++++- src/imageselector.cpp | 51 +++++++++++++++++++------------ src/imageselector.h | 26 ++++++++++------ src/imageswitcher.cpp | 5 +-- src/main.cpp | 14 ++++----- src/mainwindow.cpp | 51 ++++--------------------------- src/mainwindow.h | 8 ++--- src/pathtraverser.cpp | 71 +++++++++++++++++++++++++++++++++++++------ src/pathtraverser.h | 15 ++++++--- 9 files changed, 149 insertions(+), 103 deletions(-) diff --git a/README.md b/README.md index 64441b7..34d10f5 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,16 @@ slide [-t rotation_seconds] [-a aspect] [-o background_opacity(0..255)] [-b blur * ``directory of the current image * ``path to the current image without filename * Example: `slide -p ./images -O "20|60|Time: