Summary: | Wrong numbering when importing photos | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Frederic Gedin <frederic.gedin> |
Component: | AdvancedRename-Import | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Mandriva RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.0.0 |
Description
Frederic Gedin
2009-11-22 18:26:54 UTC
Actually this is the normal behavior at the moment. For every downloaded image, the number is incremented. It is reset when the camera dialog is closed. Most users want to select some images, download them, and then select a different set with a logical increased numbering. We could think about that ###[1] actually forces the starting number, even if the internal counter already has been increased... Andy In that case, why not keeping the current behavior but actually reset the initial sequence number when it is specifically reset either using the numbering dialog box or using [1] ? Regards Frederic Yes, sure... right now I have to figure out how to do it :-) The rename tool was designed to work in many places in digiKam, so it's API is rather simple... very simple :) I will think about a way to force a reset... Maybe can you provide the suggested sequence number in the corresponding field in the dialog box. If the user reset it to 1, then you just have to apply the change he made. Frederic SVN commit 1055194 by aclemens: Change the way the parser handles numbering. An internal counter is used to number the images, with an additional startIndex parameter used by CameraUI to set a different start than 1. CameraUI increases the number / index while it has not been closed, which is a good / normal behavior. So when you select three images, download them and select different ones later on from the same camera device, the next index will be 4. Resetting this counter manually was not possible the way the rename parser worked before. Now the parser can be initialized with a ParseInformation object, that can have a custom startIndex parameter. BUG:215715 M +2 -1 NEWS M +12 -23 tests/advancedrenametest.cpp M +4 -3 utilities/advancedrename/advancedrenamedialog.cpp M +2 -0 utilities/advancedrename/advancedrenamedialog.h M +5 -0 utilities/advancedrename/advancedrenamewidget.cpp M +4 -2 utilities/advancedrename/advancedrenamewidget.h M +4 -3 utilities/advancedrename/common/parseinformation.h M +24 -4 utilities/advancedrename/common/parser.cpp M +3 -0 utilities/advancedrename/common/parser.h M +2 -2 utilities/advancedrename/parser/options/sequencenumberoption.cpp M +12 -7 utilities/cameragui/cameraiconview.cpp M +1 -1 utilities/cameragui/cameraiconview.h M +6 -6 utilities/cameragui/cameraui.cpp M +6 -3 utilities/cameragui/renamecustomizer.cpp M +1 -1 utilities/cameragui/renamecustomizer.h M +0 -3 utilities/queuemanager/queuelist.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1055194 |