Extendable context menu for KDirOperator

Peter Penz peter.penz at gmx.at
Sun Jun 29 12:01:52 BST 2008


Hi Andreas,

On Saturday, 28. June 2008 00:27:27 Andreas Pakulat wrote:
> Hi,
>
> I think it would be good if KDirOperator allowed to extend the context
> menu it shows. This would allow applications using the widget to plug
> special actions into the menu, based on the file that the menu is
> invoked on. For example KDevelop could offer version control actions for
> version controlled files.
>
> The attached patch adds a new signal which is emitted just before the
> menu is actually shown. The signal carries both the current file item
> and also the menu thats going to be shown. This way one can connect to
> the signal and then extend the menu before its shown with additional
> actions.
>
> Of course this is 4.2 material, still any comments are welcome.

I'm fine with this change for 4.2. Maybe Rafael (see CC) could comment on this 
too, as he has also contributed a lot of fixes in this area.

The problem with kdiroperator/kfilewidget is that we currently have no real 
maintainer. I only did some porting + bugfixing for kfilewidget/kdiroperator 
for 4.0 -> please just consider my comment as an opinion :-)

Peter





More information about the kde-core-devel mailing list