tdeshortcutlist.cpp
73 kdDebug(125) << "TDEShortcutList::readSettings( \"" << sConfigGroup << "\", " << pConfig << " ) start" << endl;
109 bool TDEShortcutList::writeSettings( const TQString &sConfigGroup, TDEConfigBase* pConfig, bool bWriteAll, bool bGlobal ) const
111 kdDebug(125) << "TDEShortcutList::writeSettings( " << sConfigGroup << ", " << pConfig << ", " << bWriteAll << ", " << bGlobal << " )" << endl;
bool isNull() const
Returns true if the key sequence is null (after clear() or empty constructor).
Definition: tdeshortcut.cpp:316
virtual TQString name(uint index) const
Returns the name of the shortcut with the given index.
Definition: tdeshortcutlist.cpp:189
TDEAccelShortcutList(TDEAccel *accel)
Creates a new TDEShortcutList that accesses the given TDEAccel.
Definition: tdeshortcutlist.cpp:161
virtual const TDEShortcut & shortcutDefault(uint index) const
Returns default shortcut with the given index.
Definition: tdeshortcutlist.cpp:197
virtual bool isGlobal(uint index) const
Checks whether the shortcut with the given index is saved in the global configuration.
Definition: tdeshortcutlist.cpp:205
virtual bool isConfigurable(uint index) const
Checks whether the shortcut with the given index is configurable.
Definition: tdeshortcutlist.cpp:199
virtual TQString whatsThis(uint index) const
Returns the (i18n'd) What's This text of the shortcut with the given index.
Definition: tdeshortcutlist.cpp:193
virtual TQString label(uint index) const
Returns the (i18n'd) label of the shortcut with the given index.
Definition: tdeshortcutlist.cpp:191
virtual void virtual_hook(int id, void *data)
used to extend the interface with virtuals without breaking binary compatibility
Definition: tdeshortcutlist.cpp:215
virtual bool setShortcut(uint index, const TDEShortcut &shortcut)
Sets the shortcut of the given entry.
Definition: tdeshortcutlist.cpp:201
TDEAccelActions & m_actions
Actions (collection) for this shortcut list.
Definition: tdeshortcutlist.h:244
virtual const TDEShortcut & shortcut(uint index) const
Returns the shortcut with the given index.
Definition: tdeshortcutlist.cpp:195
bool m_bGlobal
Is this shortcut list global? Access through isGlobal()
Definition: tdeshortcutlist.h:246
const TQString & configGroup() const
Returns the configuration group of the settings.
Definition: tdeaccel.cpp:524
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:221
bool deleteGroup(const TQString &group, bool bDeep=true, bool bGlobal=false)
Deletes a configuration entry group.
Definition: tdeconfigbase.cpp:1237
void deleteEntry(const TQString &pKey, bool bNLS=false, bool bGlobal=false)
Deletes the entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:1204
bool hasGroup(const TQString &group) const
Returns true if the specified group is known about.
Definition: tdeconfigbase.cpp:152
virtual void sync()
Flushes all changes that currently reside only in memory back to disk / permanent storage.
Definition: tdeconfigbase.cpp:1738
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a key/value pair.
Definition: tdeconfigbase.cpp:1044
Helper class to facilitate working with TDEConfig / KSimpleConfig groups.
Definition: tdeconfigbase.h:2083
TDEGlobalAccel allows you to have global accelerators that are independent of the focused window.
Definition: kglobalaccel.h:46
const TQString & configGroup() const
Returns the configuration group that is used to save the accelerators.
Definition: kglobalaccel.cpp:116
virtual int index(const TQString &sName) const
Returns the index of the shortcut with he given name.
Definition: tdeshortcutlist.cpp:31
virtual const TDEShortcut & shortcutDefault(uint index) const =0
Returns default shortcut with the given index.
virtual bool readSettings(const TQString &sConfigGroup=TQString::null, TDEConfigBase *pConfig=0)
Loads the shortcuts from the given configuration file.
Definition: tdeshortcutlist.cpp:71
virtual bool isGlobal(uint index) const
Checks whether the shortcut with the given index is saved in the global configuration.
Definition: tdeshortcutlist.cpp:26
virtual const TDEShortcut & shortcut(uint index) const =0
Returns the shortcut with the given index.
virtual TQString name(uint index) const =0
Returns the name of the shortcut with the given index.
virtual bool writeSettings(const TQString &sConfigGroup=TQString::null, TDEConfigBase *pConfig=0, bool bWriteAll=false, bool bGlobal=false) const
Writes the shortcuts to the given configuration file.
Definition: tdeshortcutlist.cpp:109
virtual bool setShortcut(uint index, const TDEShortcut &shortcut)=0
Sets the shortcut of the given entry.
virtual void virtual_hook(int id, void *data)
used to extend the interface with virtuals without breaking binary compatibility
Definition: tdeshortcutlist.cpp:212
virtual bool isConfigurable(uint index) const =0
Checks whether the shortcut with the given index is configurable.
The TDEShortcut class is used to represent a keyboard shortcut to an action.
Definition: tdeshortcut.h:544
virtual void virtual_hook(int id, void *data)
used to extend the interface with virtuals without breaking binary compatibility
Definition: tdeshortcutlist.cpp:218