Overlay icons in Dolphin and Konqueror

Olivier Goffart olivier at woboq.com
Thu Jul 17 18:55:23 BST 2014


On Friday 04 July 2014 10:51:16 Olivier Goffart wrote:
> Hi,
> 
> I am working with the ownCloud sync client. One of the feature we would like
> to have is to display overlay icons in the file managers. The icons should
> display the synchronization state, and more importantly the fact that
> folders are shared.
> 
> As far as I could see, there is no interface in Konqueror or Dolphin to show
> arbitrary overlay icon.
> I am aware of KVersionControlPlugin (and we already have such a plugin), but
> it's interface is too limited, as only some possibilities are available,
> but we would like to display any kind of icons.
> 
> I am then going to implement such interface.
> Where should it go?
> in a new KFileOverlayIconPlugin class?
> Should id go in kio (next KAbstractFileItemActionPlugin)?
> Or should it go in lib/konq next to KVersionControlPlugin?
> 
> For the implementation, I believe I can base myself on the
> KVersionControlPlugin but returning an QIcon instead of state.

Thanks Frank and David for your answer.

I drafted some (working) work in progress. The patch is attached.
The prototype owncloud plugin is also attached (but the communication protocol 
is not set in stone and is going to be only released in the next version of 
the client)
So I can have feedback if I'm going in the right direction.

I guess I'm too late with this to go into KDE SC 4.14?
So my next question is weather there would be another version of Dolphin based 
on kdelibs, or if I should just go for the frameworks branch.

(For some reason, the "shared" icon is suddenly a very important feature for 
owncloud, and they would like to have it ASAP for the users now that Owncloud 
7 (the server) was released)

 
> Please reply to all, I am not subscribed.

-- 
Olivier


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-WIP-add-KOverlayIconPlugin.patch
Type: text/x-patch
Size: 10408 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20140717/7b07fff5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ownclouddolphinplugin.cpp
Type: text/x-c++src
Size: 4853 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20140717/7b07fff5/attachment.cpp>


More information about the kfm-devel mailing list