KAccelActions Class Reference
List of all members.Public Member Functions | |
KAccelActions () | |
KAccelActions (const KAccelActions &) | |
virtual | ~KAccelActions () |
void | clear () |
bool | init (const KAccelActions &actions) |
bool | init (KConfigBase &config, const QString &sGroup) |
void | updateShortcuts (KAccelActions &shortcuts) |
int | actionIndex (const QString &sAction) const |
KAccelAction * | actionPtr (uint index) |
const KAccelAction * | actionPtr (uint index) const |
KAccelAction * | actionPtr (const QString &sAction) |
const KAccelAction * | actionPtr (const QString &sAction) const |
KAccelAction * | actionPtr (KKeySequence cut) |
KAccelAction & | operator[] (uint index) |
const KAccelAction & | operator[] (uint index) const |
KAccelAction * | insert (const QString &sAction, const QString &sLabel, const QString &sWhatsThis, const KShortcut &rgCutDefaults3, const KShortcut &rgCutDefaults4, const QObject *pObjSlot=0, const char *psMethodSlot=0, bool bConfigurable=true, bool bEnabled=true) |
KAccelAction * | insert (const QString &sName, const QString &sLabel) |
bool | remove (const QString &sAction) |
bool | readActions (const QString &sConfigGroup="Shortcuts", KConfigBase *pConfig=0) |
bool | writeActions (const QString &sConfigGroup="Shortcuts", KConfigBase *pConfig=0, bool bWriteAll=false, bool bGlobal=false) const |
void | emitKeycodeChanged () |
uint | count () const |
Protected Member Functions | |
void | resize (uint) |
void | insertPtr (KAccelAction *) |
Protected Attributes | |
KAccelBase * | m_pKAccelBase |
KAccelAction ** | m_prgActions |
uint | m_nSizeAllocated |
uint | m_nSize |
Friends | |
class | KAccelBase |
Detailed Description
Definition at line 366 of file kaccelaction.h.
Constructor & Destructor Documentation
|
Creates a new, empty KAccelActions object.
Definition at line 237 of file kaccelaction.cpp. |
|
Copy constructor (deep copy).
Definition at line 243 of file kaccelaction.cpp. |
Member Function Documentation
|
Removes all items from this collection.
Definition at line 271 of file kaccelaction.cpp. References endl(), kdDebug(), m_nSize, m_nSizeAllocated, and m_prgActions. Referenced by KStdAccel::createAccelActions(), init(), and ~KAccelActions(). |
|
Initializes this object with the given actions. It will make a deep copy of all actions.
Definition at line 282 of file kaccelaction.cpp. References clear(), count(), m_nSize, m_prgActions, and resize(). Referenced by KAccelActions(). |
|
Loads the actions from the given configuration file.
Definition at line 297 of file kaccelaction.cpp. References QMap::begin(), QMap::count(), QMap::end(), endl(), KConfigBase::entryMap(), KShortcut::init(), QString::isEmpty(), kdDebug(), m_prgActions, and resize(). |
|
Updates the shortcuts of all actions in this object with the shortcuts from the given object.
Definition at line 349 of file kaccelaction.cpp. References actionPtr(), emitKeycodeChanged(), endl(), kdDebug(), KAccelAction::m_bConfigurable, KAccelAction::m_cut, m_nSize, m_prgActions, KAccelAction::m_sName, and KShortcut::toStringInternal(). |
|
Retrieves the index of the action with the given name.
Definition at line 374 of file kaccelaction.cpp. References endl(), kdWarning(), m_nSize, m_prgActions, and KAccelAction::m_sName. Referenced by actionPtr(), and remove(). |
|
Returns the action with the given
Definition at line 385 of file kaccelaction.cpp. References m_prgActions. Referenced by KAccelBase::actionPtr(), KAccel::changeMenuAccel(), KAccelBase::createKeyList(), KAccelBase::createPopupMenu(), insert(), KShortcutMenu::insertAction(), KAccelShortcutList::isConfigurable(), KAccelShortcutList::label(), KGlobalAccel::label(), KAccelShortcutList::name(), operator[](), KAccelPrivate::removeAction(), KAccelBase::setActionSlot(), KAccelShortcutList::setShortcut(), KAccel::setShortcut(), KAccelShortcutList::shortcut(), KGlobalAccel::shortcut(), KAccel::shortcut(), KAccelShortcutList::shortcutDefault(), KGlobalAccelPrivate::slotActivated(), KAccelBase::updateConnections(), KShortcutMenu::updateShortcuts(), updateShortcuts(), and KAccelShortcutList::whatsThis(). |
|
Returns the action with the given
Definition at line 390 of file kaccelaction.cpp. References m_prgActions. |
|
Returns the action with the given name.
Definition at line 395 of file kaccelaction.cpp. References actionIndex(), and m_prgActions. |
|
Returns the action with the given name.
Definition at line 401 of file kaccelaction.cpp. References actionIndex(), and m_prgActions. |
|
Returns the action with the given key sequence.
Definition at line 407 of file kaccelaction.cpp. References KAccelAction::contains(), endl(), kdWarning(), m_nSize, m_prgActions, and KKeySequence::toStringInternal(). |
|
Returns the action with the given
Definition at line 418 of file kaccelaction.cpp. References actionPtr(). |
|
Returns the action with the given
Definition at line 423 of file kaccelaction.cpp. References actionPtr(). |
|
Inserts an action into the collection.
Definition at line 445 of file kaccelaction.cpp. References actionPtr(), endl(), insertPtr(), and kdWarning(). Referenced by KStdAccel::createAccelActions(), and KAccelBase::insert(). |
|
Inserts an action into the collection.
Definition at line 428 of file kaccelaction.cpp. References actionPtr(), endl(), insertPtr(), kdWarning(), KAccelAction::m_bConfigurable, KAccelAction::m_bEnabled, KAccelAction::m_sLabel, and KAccelAction::m_sName. |
|
Removes the given action.
Definition at line 467 of file kaccelaction.cpp. References actionIndex(), endl(), kdDebug(), m_nSize, m_pKAccelBase, m_prgActions, and KAccelBase::slotRemoveAction(). Referenced by KAccelBase::remove(). |
|
Loads the actions from the given configuration file.
Definition at line 486 of file kaccelaction.cpp. References KShortcutList::readSettings(). Referenced by KAccelBase::readSettings(). |
|
Writes the actions to the given configuration file.
Definition at line 505 of file kaccelaction.cpp. References KGlobal::config(), KConfigBase::deleteEntry(), endl(), QString::isEmpty(), kdDebug(), kdWarning(), KAccelAction::m_bConfigurable, KAccelAction::m_cut, m_nSize, m_prgActions, KAccelAction::m_sName, KConfigBase::readEntry(), KAccelAction::shortcutDefault(), KConfigBase::sync(), KAccelAction::toStringInternal(), and KConfigBase::writeEntry(). Referenced by KAccelBase::writeSettings(). |
|
Emit a keycodeChanged signal.
Definition at line 558 of file kaccelaction.cpp. References KAccelBase::emitSignal(), and m_pKAccelBase. Referenced by updateShortcuts(). |
|
Returns the number of actions in the collection.
Definition at line 564 of file kaccelaction.cpp. References m_nSize. Referenced by KAccelBase::actionCount(), KAccelShortcutList::count(), KAccelBase::createKeyList(), and init(). |
The documentation for this class was generated from the following files: