KDEUI
kaction.cpp
Go to the documentation of this file.
QString i18n(const char *text)
void setAuthAction(KAuth::Action *action)
Sets the action object associated with this action.
Definition: kaction.cpp:400
void forgetGlobalShortcut()
Sets the globalShortcutEnabled property to false and sets the global shortcut to an empty shortcut...
Definition: kaction.cpp:312
KAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
Definition: kstandardaction.cpp:294
void setShortcuts(const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:224
void removeGesture(const KShapeGesture &gesture, KAction *kact)
Definition: kgesturemap.cpp:92
Definition: kgesture.h:152
KShapeGesture shapeGesture(ShortcutTypes type=ActiveShortcut) const
Definition: kaction.cpp:323
const KShortcut & shortcut(StandardShortcut id)
Returns the keybinding for accel.
Definition: kstandardshortcut.cpp:285
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
Display an "Information" dialog.
Definition: kmessagebox.cpp:960
void setShapeGesture(const KShapeGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:341
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)
void setShortcutConfigurable(bool configurable)
Indicate whether the user may configure the action's shortcut.
Definition: kaction.cpp:178
bool globalShortcutAllowed() const
Returns true if this action is permitted to have a global shortcut.
void setGlobalShortcutAllowed(bool allowed, GlobalShortcutLoading loading=Autoloading)
Indicate whether the programmer and/or user may define a global shortcut for this action...
Definition: kaction.cpp:302
AuthStatus
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Set the shortcut for this action.
Definition: kaction.cpp:198
QKeySequence alternate() const
Returns the alternate key sequence of this shortcut.
Definition: kshortcut.cpp:139
void globalShortcutChanged(const QKeySequence &)
Emitted when the global shortcut is changed.
static KGlobalAccel * self()
Returns (and creates if necessary) the singleton instance.
Definition: kglobalaccel.cpp:231
KRockerGesture rockerGesture(ShortcutTypes type=ActiveShortcut) const
Definition: kaction.cpp:332
The shortcut will immediately become active but may be reset to "default".
Definition: kaction.h:235
Definition: kgesture.h:37
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool isShortcutConfigurable() const
Returns true if this action's shortcut is configurable.
Definition: kaction.cpp:173
void setGlobalShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut), GlobalShortcutLoading loading=Autoloading)
Assign a global shortcut for this action.
Definition: kaction.cpp:239
QKeySequence primary() const
Returns the primary key sequence of this shortcut.
Definition: kshortcut.cpp:134
void setRockerGesture(const KRockerGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
Definition: kaction.cpp:359
KAuth::Action * authAction() const
Returns the action object associated with this action, or 0 if it does not have one.
Definition: kaction.cpp:385
void addGesture(const KShapeGesture &gesture, KAction *kact)
Definition: kgesturemap.cpp:68
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:13 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:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.