Edit/Metadata digiKam menu entry is populated by a kipi plugin :
https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/show/metadataeditThe menu action instance is created directly in the plugin here :
https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/entry/metadataedit/plugin/plugin_metadataedit.cpp#L115digiKam is a Kipi host, which use libkipi interafce to communicate
with the plugin.
If user change items selection from icon view, plugin will receive this signal :
https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/entry/metadataedit/plugin/plugin_metadataedit.cpp#L117Which will be propagated to the action directly...
Rerouting the signal to a dedicated slot can be a solution to analyse
items selection if files are read-only or not, before to enable the
action accordingly.
Q: what we must do in case of multiple items selection where some are
RO and other RW ?
About KIPI interface API, look here :
https://projects.kde.org/projects/kde/kdegraphics/libs/libkipiGilles Caulier
2014-11-24 13:13 GMT+01:00 Yagyank Chadha <
[hidden email]>:
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users