This forum has been archived. All content is frozen. Please use KDE Discuss instead.

find a exemple with KAbstractFileItemActionPlugin

Tags: None
(comma "," separated)
caritas
Registered Member
Posts
6
Karma
0
OS
In kde 4.6.1 I want to use http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classKAbstractFileItemActionPlugin.html

because:
However if you need some dynamic logic, like "only show this item if two files are selected", or "show a submenu with a variable number of actions", then you have to implement a KAbstractFileItemActionPlugin subclass.


But I don't find any script with this fonction.
Can you help me?

thank
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It seems that Dolphin and Konqueror both support this, although I couldn't find any examples in KDE source repositories. http://lxr.kde.org/ident?i=KAbstractFil ... tionPlugin

According to that documentation, you need to subclass and then reimplement actions() in that subclass.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft