• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kglobalaccel.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2001,2002 Ellis Whitehead <ellis@kde.org>
00003     Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
00004     Copyright (C) 2007 Andreas Hartmetz <ahartmetz@gmail.com>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef _KGLOBALACCEL_H_
00023 #define _KGLOBALACCEL_H_
00024 
00025 #include <kdeui_export.h>
00026 #include "kaction.h"
00027 
00028 #include <QtCore/QObject>
00029 
00030 class QWidget;
00031 class KShortcut;
00032 class KComponentData;
00033 
00044 class KDEUI_EXPORT KGlobalAccel : public QObject
00045 {
00046     friend class KGlobalAccelImpl;
00047     Q_OBJECT
00048 
00049 public:
00053     static KGlobalAccel *self();
00054 
00059     bool isEnabled() const;
00060 
00066     void setEnabled(bool enabled);
00067 
00082     KDE_DEPRECATED void overrideMainComponentData(const KComponentData &componentData);
00083 
00084 //TODO export the enum defining an actionId !
00089     QList<QStringList> allMainComponents();
00090 
00096     QList<QStringList> allActionsForComponent(const QStringList &actionId);
00097 
00104     static QStringList findActionNameSystemwide(const QKeySequence &seq);
00105 
00113     static bool promptStealShortcutSystemwide(QWidget *parent, const QStringList &actionIdentifier, const QKeySequence &seq);
00114 
00121     static void stealShortcutSystemwide(const QKeySequence &seq);
00122 
00123 private:
00124     friend class KAction;
00125 
00127     KGlobalAccel();
00128 
00130     ~KGlobalAccel();
00131 
00132     class KGlobalAccelPrivate *const d;
00133 
00134     Q_PRIVATE_SLOT(d, void _k_invokeAction(const QStringList&,qlonglong))
00135     Q_PRIVATE_SLOT(d, void _k_shortcutGotChanged(const QStringList&, const QList<int>&))
00136     Q_PRIVATE_SLOT(d, void _k_serviceOwnerChanged(const QString&, const QString&, const QString&))
00137 };
00138 
00139 #endif // _KGLOBALACCEL_H_

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal