98 Commits

Author SHA1 Message Date
Niklas Haas
2101b846c3
Implement file sorting in thumbnail view (#6449)
* Use mtime as fallback timestamp for files without EXIF data

As suggested in #6449, with date-based sorting it can be useful to have
at least *some* sort of time-relevant information for EXIF-less files,
to prevent them from falling back to getting sorted alphabetically all
the time.

This commit simply defaults the file timestamp to the file's mtime as
returned by g_stat. For annoying reasons, it doesn't suffice to merely
forward the timestamp to the FileData structs - we also need to keep
track of it inside FilesData to cover the case of a file with 0 frames
in it.

* Add DateTime to Thumbnail

Putting it here facilitate easier sorting without having to re-construct
the DateTime on every comparison.

To simplify things moving forwards, use the Glib::DateTime struct right
away. This struct also contains timezone information, but we don't
currently care about timezone - so just use the local timezone as the
best approximation. (Nothing currently depends on getting the timezone
right, anyway)

In addition to the above, this commit also changes the logic to allow
generating datetime strings even for files with missing EXIF (which
makes sense as a result of the previous commit allowing the use of mtime
instead).

* Implement file sorting in thumbnail view

For simplicity, I decided to only implement the attributes that I could
verily easily reach from the existing metadata exported by Thumbnail.
Ideally, I would also like to be able to sort by "last modified" but I'm
not sure of the best way to reach this from this place in the code.

It's worth pointing out that, with the current implementation, the list
will not dynamically re-sort itself until you re-select the sorting
method - even if you make changes to the files that would otherwise
affect the sorting (e.g. changing the rank while sorting by rank). One
might even call this a feature, not a bug, since it prevents thumbnails
from moving around while you're trying to re-label them. You can always
re-select "sort by ..." from the context menu to force a re-sort.

Fixes #3317

Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2023-01-02 21:27:12 +01:00
Nicolas Turlais
401727fba9
Add filter for Paths to dynamic profiles (#6284)
Work by @nicolas-t 
* Path filter in dynamic profile panel
* Pass filename as a function argument
* Removed unused include
* Clearer translation
2022-12-31 10:51:30 +01:00
Ingo Weyrich
c9e58fea54 cppcheck clean rtgui/thumbnail.* 2021-05-23 14:35:59 +02:00
Floessie
1318935a87
Better handle thumbnail generation of extreme aspect ratio images (fixes #3794)
* Backport fix taken from ART
* Enforce minimal thumbnail size of 1x1 px in two places, prevents divison by zero and empty image generation
2020-10-25 18:24:30 +01:00
Ingo Weyrich
beb8fd8f74 Merge branch 'dev' into newlocallab2 2020-06-14 22:03:26 +02:00
Ingo Weyrich
41675913d6 Cleanups and also some speedups for RT 5.9, to be continued 2020-05-31 17:27:44 +02:00
Desmis
e573de78b4 merge with dev 2020-03-19 13:40:11 +01:00
Ingo Weyrich
a9e2bde610 use autold instead of auto, #5676 2020-02-28 11:44:25 +01:00
Ingo Weyrich
67ca8e2c19 further aehistograms cleanup 2020-02-13 16:34:45 +01:00
Desmis
10c01928c8 merge with dev 2019-12-17 14:08:57 +01:00
Ingo Weyrich
abac9856e7 Apply internal default profile (neutral) instead of user defined default profiles for missing parts of existing profile when loading a raw file which already has a .pp3, fixes #5564 2019-12-17 00:44:01 +01:00
Desmis
d645dc5951 merge with dev 2019-11-28 06:50:05 +01:00
Ingo Weyrich
79431ffa1d Some changes suggested by @Floessie 2019-11-26 19:42:48 +01:00
Ingo Weyrich
2a4891827d Some cleanups 2019-11-26 15:25:11 +01:00
Ingo Weyrich
033d9fe02a Merge branch 'dev' into newlocallab 2019-11-04 23:01:33 +01:00
Ingo Weyrich
d731e172c2 Further reduction of include dependencies 2019-11-01 16:15:59 +01:00
Ingo Weyrich
e682b364b5 Further reduction of include dependencies 2019-11-01 14:51:33 +01:00
Ingo Weyrich
962f81f6bc Further reduction of include dependencies 2019-11-01 12:51:08 +01:00
Ingo Weyrich
cac2eb53ef Further reduction of include dependencies 2019-10-31 20:41:08 +01:00
Ingo Weyrich
6935faa258 Further cleanup of include dependencies 2019-10-30 22:12:06 +01:00
Ingo Weyrich
068847eb5a Further cleanup of include dependencies 2019-10-29 21:06:27 +01:00
Ingo Weyrich
3aa84c48da Forward declare ColorTemp 2019-10-29 12:33:14 +01:00
Desmis
0711373021 Merge with dev 2019-09-11 08:35:25 +02:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
Ingo Weyrich
b3e0013e56 Merge branch 'dev' into newlocallab 2019-08-08 16:18:58 +02:00
Ingo Weyrich
4fedfb2b26 cppcheck: further fixes 2019-08-06 22:10:38 +02:00
Desmis
2d4e42d7d3 merge with dev 2019-08-04 13:34:44 +02:00
rom9
06f224a4eb Fixes #5397 by requiring thumbnail reprocessing when filmnegative params are changed. 2019-08-02 13:28:48 +02:00
Desmis
89b88fd9d2 merge with dev 2019-07-30 07:05:02 +02:00
Ingo Weyrich
f523149582 Clear processing profile is broken, fixes #5392 2019-07-29 13:56:38 +02:00
Desmis
779ae39f17 merge with dev 2019-07-23 06:40:40 +02:00
Ingo Weyrich
6604755c6b Fix a typo 2019-07-22 14:58:22 +02:00
Ingo Weyrich
cbb3f05b7e use empty() instead of comparison with an empty string 2019-07-22 13:49:08 +02:00
Desmis
cbeb828609 merge with dev 2019-07-18 13:41:26 +02:00
Eric Jiang
820024972a Use rating from EXIF/XMP where available 2019-05-18 15:22:00 -07:00
lewiatan
105517c561 support rating tag from EXIF/XMP 2019-05-16 17:04:07 -07:00
heckflosse
020204e0cb Merge branch 'dev' into newlocallab 2019-03-12 14:57:17 +01:00
Flössie
3074803688 Fix init order 2019-03-01 20:31:22 +01:00
Flössie
0cbc4923bc Relax dependency from procparams.h 2019-02-28 20:44:50 +01:00
Pandagrapher
7ccd901ad1 Merge with branch newlocallab... 2019-01-05 18:07:51 +01:00
Pandagrapher
031939e0c3 Remove/Deactivate Locallab debug printf 2019-01-03 11:16:19 +01:00
Pandagrapher
39c53119eb Improve batch mode with Locallab
Batch mode is now correctly managed by Locallab. It works only if the
pictures have the same control spot number with coherent id

Other improvements:
- If there is no control spot, all Locallab tools are now disabled
2018-12-26 10:31:57 +01:00
Desmis
c3bd22f337 merge with dev 2018-12-19 15:16:18 +01:00
heckflosse
0810f8f503 Partial profile application of Detail settings does not work, fixes #4945 2018-12-16 16:40:18 +01:00
Desmis
86c03e61d4 merge with dev - I hope no error 2018-11-24 14:18:37 +01:00
Roel Baars
c8300b137c
Add Crop reset button - 2nd attempt (#5015)
Add dedicated reset button for Crop, rearrange some GUI, disable crop buttons in batch mode
2018-11-23 19:10:04 +01:00
U-PC-BUREAU\jacques
b9c7fa80da merge with dev 2018-11-01 08:37:28 +01:00
Ingo Weyrich
0bb5d26ed0
Merge pull request #4908 from Beep6581/getridoffeahistogramcache
Get rid of aehistogram files in RT cache.

Merged to get more tests. Issue and pr stay open for a while
2018-10-31 21:56:00 +01:00
heckflosse
ebcd737bf8 Don't check for .jpg, .cust, .cust16 files in cache/images folder, third try, #4904 2018-10-31 20:57:21 +01:00
heckflosse
ea5a81b9a1 Don't check for .jpg, .cust, .cust16 files in cache/images folder, second try, #4904 2018-10-31 20:52:58 +01:00