[digikam] [Bug 377197] Customize grouping behaviour [patch]

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue May 9 23:22:13 BST 2017


https://bugs.kde.org/show_bug.cgi?id=377197

--- Comment #42 from caulier.gilles at gmail.com ---
>The only change needed should be in line 190 of kipiimagecollection.cpp:
>    return DigikamApp::instance()->view()->selectedUrls();
>to
>    return DigikamApp::instance()->view()->selectedUrls(ApplicationSettings::Kipi);

==> no. the only change is to patch DigikamView::selectedUrls() method to
return all grouped item depending of the application settings.

If you don't want to test with KIPI, i write a new application interface helper
to port batch tools from KIPI to digiKam core (yes, at least in the future only
export to web service tools will be hosted to KIPI. That all).

This new interface template is located in
core/utilities/assistants/common/dinfointerface.cpp. This is nothing to do here
are implementation is done with empty methods. The real implementation for
digiKam database is in core/libs/database/utils/dbinfoiface.cpp.

This implementation is mostly some code backport from kipi interface. I plan to
factorize this one with the Database info interface, later when implementation
will be finalized.

Currently HTMLGallery tool use this interface. When you start this tool, it can
use the image selection from icon view (look the option in intro page). If you
select some grouped items, only the first one of each groups is used instead
all items grouped (depending of grouped icon view option of course).

If you look on dbinfoiface.cpp::line 207, it call DigikamView::selectedUrls(),
which must return the right selection if grouped items are selected and
depending of icon view grouped options.

So, the patch to support grouped items from icon view must be done somewhere in
DigikamView::selectedUrls(). That all. all the rest (kipi included) will work
as expected.

Gilles

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list