File manager plugin, context menu

Milian Wolff mail at milianw.de
Fri Dec 3 10:53:52 UTC 2010


On Friday 03 December 2010 10:37:48 Benjamin Port wrote:
> Hello all,
> Currently, the context menu of file manager allow to add entry only for
> files, no folder. So I think in some case it can be useful to add entry for
> folder (e.g. allows user to perform find-replace from file manager).
> In order to allow that, we need to modify, file manager plugin, and some
> plugin because plugin didn't take in consideration file type (file /
> folder), in order to remove file entry from directory contextual menu.
> I want to know if there is some objection for this.

The FileContext should also be toggled for folders. Use it's urls() and find 
out whether a folder of file was selected. For this it would make sense to 
extend the ProjectController API though, you should add a itemsForUrl() that 
returns a QList<ProjectBaseItem*> for all projects, then go through that list 
and check whether a file or folder was selected.

Imo nothing needs (or should) be changed in the context menu extension.

Bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101203/2f97a166/attachment.sig>


More information about the KDevelop-devel mailing list