[PATCH] Shortcuts schemes for KDE application

Andreas Pakulat apaku at gmx.de
Mon Apr 14 18:43:14 BST 2008


On 14.04.08 18:30:51, Alexander Dymo wrote:
> Hey,
> I've implemented basic shortcuts schemes support for XMLGUI-based KDE
> applications.
> With this patch, for example, you can define your own shortcut schemes
> for Kate. Say, you can have an "emacs" scheme and "vi" scheme and so
> on. For KDevelop this will solve the long standing problem of shortcut
> clashes with kate part.
> 
> This works like this.
> You can have shortcut schemes installed in additional xmlgui files
> called <xmlguiclientname><schemename>shortcutsui.rc (for instance,
> katepartmyschemeui.rc)
> which only contain xml with action properties:
> 
>  <ActionProperties scheme="myscheme" >
>   <Action shortcut="Ctrl+W" name="add_toolview" />
>  </ActionProperties>
> 
> The same action properties may be saved into the user configuration in
> <app>ui.rc.
> 
> The shortcuts dialog has the "details" button with schemes
> configuration. It's enabled for all KDE apps now, but if that's not
> interesting for all apps, it's easy to provide an api to enable it for
> each individual application.
> 
> Please take a look. I'd appreciate any feedback because we (KDevelop
> team) would really like something like shortcut schemes in kdelibs. We
> discussed this approach during our meeting yesterday and agreed that
> shortcut schemes would be the great solution for us because we do want
> to ship custom shortcut schemes.

Actually we not just like to have it, we actually need to have it to
provide a reasonable amount of shortcuts to work well with KDevelop.

Alexander posted an earlier version to the kdevelop-devel list and it
has been tested by a few people. As far as I can see he fixed the
problems we immediately saw and suggestions we proposed.

Andreas

-- 
You are a bundle of energy, always on the go.




More information about the kde-core-devel mailing list