[PATCH] Shortcuts schemes for KDE application
Jonas Bähr
jonas.baehr at web.de
Wed Apr 16 11:16:08 BST 2008
Hi,
Am 14.04.2008 um 18:30 schrieb Alexander Dymo:
> 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.
This is really cool stuff! Till now (for Krusader [1]) we provide a
simple import/export function which dumps the shortcut info into a
config file.
Is it possible to extend your poposal to handle more then just
shortcut's? We're esp. interested in scheming the menu too. Our
default menu structure conforms to KDE's HIG but may of our users
prefer a layout similar to Midnight Commander's ("Left", "File",
"Command", "Options", "Right").
[1] http://www.krusader.org/handbook/settings-menu.html#configure-
shortcuts
bye,
Jonas
>
> PS: I have the screencast recorded to demonstrate how it works and
> I'll post it in several hours.<shortcuts_patches.patch.bz2>
More information about the kde-core-devel
mailing list