KDEUI
kglobalaccel.cpp
Go to the documentation of this file.
44 org::kde::kglobalaccel::Component *KGlobalAccelPrivate::getComponent(const QString &componentUnique, bool remember = false)
57 kDebug() << "Failed to connect to the kglobalaccel daemon" << QDBusConnection::sessionBus().lastError();
85 kDebug() << "Failed to get component" << componentUnique << QDBusConnection::sessionBus().lastError();
176 self()->d->iface.activateGlobalShortcutContext(component.aboutData()->programName(), contextUnique);
362 QStringList ret(componentUniqueForAction(action)); // Component Unique Id ( see actionIdFields )
534 bool KGlobalAccel::promptStealShortcutSystemwide(QWidget *parent, const QStringList &actionIdentifier,
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QString i18n(const char *text)
KAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
Definition: kstandardaction.cpp:294
Definition: kmessagebox.h:74
#define K_GLOBAL_STATIC(TYPE, NAME)
#define KDE_NO_DEPRECATED
Definition: kglobalshortcutinfo.h:35
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
static bool cleanComponent(const QString &componentUnique)
Clean the shortcuts for component componentUnique.
Definition: kglobalaccel.cpp:181
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Defines platform-independent classes for keyboard shortcut handling.
const KAboutData * aboutData() const
The shortcut is a default shortcut - it becomes active when somebody decides to reset shortcuts to de...
Definition: kaction.h:238
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static int timestampCompare(unsigned long time1, unsigned long time2)
Compares two X timestamps, taking into account wrapping and 64bit architectures.
Definition: netwm.cpp:4735
static int startServiceByDesktopPath(const QString &_name, const QString &URL, QString *error=0, QString *serviceName=0, int *pid=0, const QByteArray &startup_id=QByteArray(), bool noWait=false)
QString componentName() const
static QStringList findActionNameSystemwide(const QKeySequence &seq)
Definition: kglobalaccel.cpp:513
Look up the action in global settings (using its main component's name and text()) and set the shortc...
Definition: kaction.h:251
QKeySequence alternate() const
Returns the alternate key sequence of this shortcut.
Definition: kshortcut.cpp:139
KLocale * locale()
QString removeAcceleratorMarker(const QString &label) const
QString programName() const
static QList< KGlobalShortcutInfo > getGlobalShortcutsByKey(const QKeySequence &seq)
Returns a list of global shortcuts registered for the shortcut .
Definition: kglobalaccel.cpp:520
static KGlobalAccel * self()
Returns (and creates if necessary) the singleton instance.
Definition: kglobalaccel.cpp:231
void overrideMainComponentData(const KComponentData &componentData)
Set the KComponentData for which to manipulate shortcuts.
Definition: kglobalaccel.cpp:223
The shortcut will immediately become active but may be reset to "default".
Definition: kaction.h:235
void setAlternate(const QKeySequence &keySeq)
Set the alternate key sequence of this shortcut to the given key sequence.
Definition: kshortcut.cpp:189
static void activateGlobalShortcutContext(const QString &contextUnique, const QString &contextFriendly, const KComponentData &component=KGlobal::mainComponent())
Set global shortcut context.
Definition: kglobalaccel.cpp:169
QString contextFriendlyName
Definition: kglobalshortcutinfo.h:48
const KComponentData & mainComponent()
bool hasMainComponent()
void setPrimary(const QKeySequence &keySeq)
Set the primary key sequence of this shortcut to the given key sequence.
Definition: kshortcut.cpp:184
static bool promptStealShortcutSystemwide(QWidget *parent, const QList< KGlobalShortcutInfo > &shortcuts, const QKeySequence &seq)
Show a messagebox to inform the user that a global shorcut is already occupied, and ask to take it aw...
Definition: kglobalaccel.cpp:554
QKeySequence primary() const
Returns the primary key sequence of this shortcut.
Definition: kshortcut.cpp:134
static void stealShortcutSystemwide(const QKeySequence &seq)
Take away the given shortcut from the named action it belongs to.
Definition: kglobalaccel.cpp:593
static bool isComponentActive(const QString &componentName)
Check if component is active.
Definition: kglobalaccel.cpp:191
static bool isGlobalShortcutAvailable(const QKeySequence &seq, const QString &component=QString())
Check if the shortcut is available for the component.
Definition: kglobalaccel.cpp:526
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
Display a "warning" dialog.
Definition: kmessagebox.cpp:644
Prevent autoloading of saved global shortcut for action.
Definition: kaction.h:253
QList< QStringList > allActionsForComponent(const QStringList &actionId)
Definition: kglobalaccel.cpp:504
QList< QStringList > allMainComponents()
Return the unique and common names of all main components that have global shortcuts.
Definition: kglobalaccel.cpp:496
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.