summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/menuedit.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /khotkeys/kcontrol/menuedit.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/kcontrol/menuedit.h')
-rw-r--r--khotkeys/kcontrol/menuedit.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/khotkeys/kcontrol/menuedit.h b/khotkeys/kcontrol/menuedit.h
new file mode 100644
index 000000000..0986d1cca
--- /dev/null
+++ b/khotkeys/kcontrol/menuedit.h
@@ -0,0 +1,44 @@
+/****************************************************************************
+
+ KHotKeys
+
+ Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
+
+ Distributed under the terms of the GNU General Public License version 2.
+
+****************************************************************************/
+
+#ifndef _MENUEDIT_H_
+#define _MENUEDIT_H_
+
+#include <qstring.h>
+#include <kdialogbase.h>
+#include <kaccel.h>
+#include <kservice.h>
+
+// see also kdebase/kmenuedit/khotkeys.h
+extern "C"
+ {
+// initializes khotkeys DSO - loads i18n catalogue
+// handled automatically by KHotKeys wrapper class in kmenuedit
+KDE_EXPORT void khotkeys_init( void );
+// clean up khotkeys DSO
+// handled automatically by KHotKeys wrapper class in kmenuedit
+KDE_EXPORT void khotkeys_cleanup( void );
+// return keyboard shortcut ( e.g. "ALT+T" ) for given menu entry ( e.g.
+// "System/Konsole.desktop"
+KDE_EXPORT QString khotkeys_get_menu_entry_shortcut( const QString& entry_P );
+// changes assigned shortcut to menu entry a updates config file
+KDE_EXPORT QString khotkeys_change_menu_entry_shortcut( const QString& entry_P,
+ const QString& shortcut_P );
+// menu entry was moved in K Menu
+KDE_EXPORT bool khotkeys_menu_entry_moved( const QString& new_P, const QString& old_P );
+// menu entry was removed
+KDE_EXPORT void khotkeys_menu_entry_deleted( const QString& entry_P );
+// List of all hotkeys in use
+KDE_EXPORT QStringList khotkeys_get_all_shortcuts( );
+// Find menu entry that uses shortcut
+KDE_EXPORT KService::Ptr khotkeys_find_menu_entry( const QString& shortcut_P );
+ } // extern "C"
+
+#endif