KAccelAction Class Reference
List of all members.Detailed Description
Definition at line 72 of file kaccelaction.h.
Public Member Functions | |
KAccelAction () | |
KAccelAction (const KAccelAction &) | |
KAccelAction (const QString &sName, const QString &sLabel, const QString &sWhatsThis, const KShortcut &cutDef3, const KShortcut &cutDef4, const QObject *pObjSlot, const char *psMethodSlot, bool bConfigurable, bool bEnabled) | |
~KAccelAction () | |
void | clear () |
bool | init (const QString &sName, const QString &sLabel, const QString &sWhatsThis, const KShortcut &cutDef3, const KShortcut &cutDef4, const QObject *pObjSlot, const char *psMethodSlot, bool bConfigurable, bool bEnabled) |
KAccelAction & | operator= (const KAccelAction &) |
const QString & | name () const |
const QString & | label () const |
const QString & | whatsThis () const |
const KShortcut & | shortcut () const |
const KShortcut & | shortcutDefault () const |
const KShortcut & | shortcutDefault3 () const |
const KShortcut & | shortcutDefault4 () const |
const QObject * | objSlotPtr () const |
const char * | methodSlotPtr () const |
bool | isConfigurable () const |
bool | isEnabled () const |
void | setName (const QString &name) |
void | setLabel (const QString &label) |
void | setWhatsThis (const QString &whatsThis) |
bool | setShortcut (const KShortcut &rgCuts) |
void | setSlot (const QObject *pObjSlot, const char *psMethodSlot) |
void | setConfigurable (bool configurable) |
void | setEnabled (bool enable) |
int | getID () const |
void | setID (int n) |
bool | isConnected () const |
bool | setKeySequence (uint i, const KKeySequence &keySeq) |
void | clearShortcut () |
bool | contains (const KKeySequence &keySeq) |
QString | toString () const |
QString | toStringInternal () const |
Static Public Member Functions | |
static bool | useFourModifierKeys () |
static void | useFourModifierKeys (bool use) |
Protected Member Functions | |
void | incConnections () |
void | decConnections () |
Protected Attributes | |
QString | m_sName |
QString | m_sLabel |
QString | m_sWhatsThis |
KShortcut | m_cut |
KShortcut | m_cutDefault3 |
KShortcut | m_cutDefault4 |
const QObject * | m_pObjSlot |
const char * | m_psMethodSlot |
bool | m_bConfigurable |
bool | m_bEnabled |
int | m_nIDAccel |
uint | m_nConnections |
Friends | |
class | KAccelActions |
class | KAccelBase |
Constructor & Destructor Documentation
|
Creates an empty KAccelAction.
Definition at line 46 of file kaccelaction.cpp. |
|
Copy constructor.
Definition at line 58 of file kaccelaction.cpp. |
|
Creates a new KAccelAction.
Definition at line 65 of file kaccelaction.cpp. |
Member Function Documentation
|
Clears the accelerator.
Definition at line 84 of file kaccelaction.cpp. |
|
Clears the action's shortcut. It will not contain any sequences after calling this method.
Definition at line 175 of file kaccelaction.cpp. |
|
Checks whether the action's shortcut contains the given key sequence.
Definition at line 180 of file kaccelaction.cpp. |
|
Retrieves the id set using setID.
Definition at line 265 of file kaccelaction.h. |
|
Re-initialized the KAccelAction.
Definition at line 95 of file kaccelaction.cpp. |
|
Checks whether the user can configure the action.
Definition at line 209 of file kaccelaction.h. |
|
Checkes whether the action is connected (emits signals).
Definition at line 192 of file kaccelaction.cpp. |
|
Checks whether the action is enabled.
Definition at line 215 of file kaccelaction.h. |
|
Returns the label of the accelerator action.
Definition at line 148 of file kaccelaction.h. |
|
Returns the slot for the signal.
Definition at line 203 of file kaccelaction.h. |
|
Returns the name of the accelerator action.
Definition at line 141 of file kaccelaction.h. |
|
Returns the receiver of signals.
Definition at line 197 of file kaccelaction.h. |
|
Copies this KAccelAction.
Definition at line 117 of file kaccelaction.cpp. |
|
Enables or disabled configuring the action.
Definition at line 154 of file kaccelaction.cpp. |
|
Enables or disabled the action.
Definition at line 156 of file kaccelaction.cpp. |
|
Allows you to set an id that will be used as the action signal's argument.
Definition at line 274 of file kaccelaction.h. |
|
Sets a key sequence of the action's shortcut.
Definition at line 165 of file kaccelaction.cpp. |
|
Sets the user-readable label of the accelerator action.
Definition at line 137 of file kaccelaction.cpp. |
|
Sets the name of the accelerator action.
Definition at line 135 of file kaccelaction.cpp. |
|
Sets the new shortcut of the accelerator action.
Definition at line 142 of file kaccelaction.cpp. |
|
Sets the slot of the accelerator action.
Definition at line 148 of file kaccelaction.cpp. |
|
Sets the What's This text for the accelerator action.
Definition at line 139 of file kaccelaction.cpp. |
|
The shortcut that is actually used (may be used configured).
Definition at line 162 of file kaccelaction.h. |
|
The default shortcut for this system.
Definition at line 190 of file kaccelaction.cpp. |
|
The default shortcut for 3 modifier systems.
Definition at line 181 of file kaccelaction.h. |
|
The default shortcut for 4 modifier systems.
Definition at line 191 of file kaccelaction.h. |
|
Returns the string representation of the action's shortcut.
Definition at line 159 of file kaccelaction.cpp. |
|
Selects 3 or 4 modifier default shortcuts.
Definition at line 213 of file kaccelaction.cpp. |
|
Returns true if four modifier keys will be used.
Definition at line 202 of file kaccelaction.cpp. |
|
Returns the What's This text of the accelerator action.
Definition at line 155 of file kaccelaction.h. |
Member Data Documentation
|
< Can this accel be configured by the user?
Definition at line 340 of file kaccelaction.h. |
|
< Is this accel enabled?
Definition at line 340 of file kaccelaction.h. |
|
< Shortcut actually assigned.
Definition at line 335 of file kaccelaction.h. |
|
< Default shortcut in 3-modifier layout
Definition at line 336 of file kaccelaction.h. |
|
< Default shortcur in 4-modifier layout
Definition at line 336 of file kaccelaction.h. |
|
< Number of connections to this accel.
Definition at line 343 of file kaccelaction.h. |
|
< Id of this accel, from the list of IDs
Definition at line 342 of file kaccelaction.h. |
|
< Object we will send signals to.
Definition at line 338 of file kaccelaction.h. |
|
< Slot we send signals to, in m_pObjSlot
Definition at line 339 of file kaccelaction.h. |
|
< Label of accel. User-visible. Definition at line 332 of file kaccelaction.h. |
|
< Name of accel.
Definition at line 332 of file kaccelaction.h. |
|
< WhatsThis help for accel. User-visible. Definition at line 332 of file kaccelaction.h. |
The documentation for this class was generated from the following files: