1 /****************************************************************************
5 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
18 // see also kdebase/kmenuedit/khotkeys.h
21 // initializes khotkeys DSO - loads i18n catalog
22 // handled automatically by KHotKeys wrapper class in kmenuedit
23 KDE_EXPORT
void khotkeys_init( void );
24 // clean up khotkeys DSO
25 // handled automatically by KHotKeys wrapper class in kmenuedit
26 KDE_EXPORT
void khotkeys_cleanup( void );
27 // return keyboard shortcut ( e.g. "ALT+T" ) for given menu entry ( e.g.
28 // "System/Konsole.desktop"
29 KDE_EXPORT QString
khotkeys_get_menu_entry_shortcut( const QString
& entry_P
);
30 // changes assigned shortcut to menu entry a updates config file
31 KDE_EXPORT QString
khotkeys_change_menu_entry_shortcut( const QString
& entry_P
,
32 const QString
& shortcut_P
);
33 // menu entry was moved in K Menu
34 KDE_EXPORT
bool khotkeys_menu_entry_moved( const QString
& new_P
, const QString
& old_P
);
35 // menu entry was removed
36 KDE_EXPORT
void khotkeys_menu_entry_deleted( const QString
& entry_P
);
37 // List of all hotkeys in use
38 KDE_EXPORT QStringList
khotkeys_get_all_shortcuts( );
39 // Find menu entry that uses shortcut
40 KDE_EXPORT
KService::Ptr
khotkeys_find_menu_entry( const QString
& shortcut_P
);