File indexing completed on 2024-10-06 13:19:07
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-only 0003 SPDX-FileCopyrightText: 1999-2001 Lubos Lunak <l.lunak@kde.org> 0004 */ 0005 0006 #ifndef _KHOTKEYSGLOBAL_H_ 0007 #define _KHOTKEYSGLOBAL_H_ 0008 0009 #define KHOTKEYS_CONFIG_FILE "khotkeysrc" 0010 0011 #include <KLocalizedString> 0012 0013 #include <QPointer> 0014 0015 class QObject; 0016 0017 namespace KHotKeys 0018 { 0019 class WindowsHandler; 0020 class ShortcutsHandler; 0021 0022 Q_DECL_EXPORT extern QPointer<ShortcutsHandler> keyboard_handler; 0023 extern QPointer<WindowsHandler> windows_handler; 0024 0025 // CHECKME hmms :( 0026 Q_DECL_EXPORT bool khotkeys_active(); 0027 Q_DECL_EXPORT void khotkeys_set_active(bool active_P); 0028 0029 QString get_menu_entry_from_path(const QString &path_P); 0030 0031 Q_DECL_EXPORT void init_global_data(bool active_P, QObject *owner_P); 0032 0033 const char MENU_EDITOR_ENTRIES_GROUP_NAME[] = I18N_NOOP("Menu Editor entries"); 0034 0035 //*************************************************************************** 0036 // Inline 0037 //*************************************************************************** 0038 0039 } // namespace KHotKeys 0040 0041 #endif