.TH "KShortcutList" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KShortcutList \- KShortcutList is an abstract base class for \fBKAccelShortcutList\fP and \fBKStdAccel::ShortcutList\fP. Base class for accessing accelerator lists.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kshortcutlist.h>\fP
.PP
Inherited by \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBOther\fP "
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKShortcutList\fP ()"
.br
.ti -1c
.RI "virtual uint \fBcount\fP () const =0"
.br
.ti -1c
.RI "virtual \fBQString\fP \fBname\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual \fBQString\fP \fBlabel\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual \fBQString\fP \fBwhatsThis\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual const \fBKShortcut\fP & \fBshortcut\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual const \fBKShortcut\fP & \fBshortcutDefault\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual bool \fBisConfigurable\fP (uint index) const =0"
.br
.ti -1c
.RI "virtual bool \fBsetShortcut\fP (uint index, const \fBKShortcut\fP &shortcut)=0"
.br
.ti -1c
.RI "virtual bool \fBisGlobal\fP (uint index) const "
.br
.ti -1c
.RI "virtual int \fBindex\fP (const \fBQString\fP &sName) const "
.br
.ti -1c
.RI "virtual int \fBindex\fP (const \fBKKeySequence\fP &keySeq) const "
.br
.ti -1c
.RI "virtual const \fBKInstance\fP * \fBinstance\fP () const "
.br
.ti -1c
.RI "virtual \fBQVariant\fP \fBgetOther\fP (Other, uint index) const =0"
.br
.ti -1c
.RI "virtual bool \fBsetOther\fP (Other, uint index, \fBQVariant\fP)=0"
.br
.ti -1c
.RI "virtual bool \fBsave\fP () const =0"
.br
.ti -1c
.RI "virtual bool \fBreadSettings\fP (const \fBQString\fP &sConfigGroup=QString::null, \fBKConfigBase\fP *pConfig=0)"
.br
.ti -1c
.RI "virtual bool \fBwriteSettings\fP (const \fBQString\fP &sConfigGroup=QString::null, \fBKConfigBase\fP *pConfig=0, bool bWriteAll=false, bool bGlobal=false) const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
KShortcutList is an abstract base class for \fBKAccelShortcutList\fP and \fBKStdAccel::ShortcutList\fP. Base class for accessing accelerator lists. 

It gives you an unified interface for accessing the accelerator lists of \fBKAccel\fP (using \fBKAccelShortcutList\fP), \fBKGlobalAccel\fP (using \fBKAccelShortcutList\fP), and \fBKStdAccel\fP (using \fBKStdAccel::ShortcutList\fP).
.PP
Definition at line 48 of file kshortcutlist.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KShortcutList::KShortcutList ()"
.PP
Default constructor. 
.PP

.PP
Definition at line 18 of file kshortcutlist.cpp.
.SH "Member Function Documentation"
.PP 
.SS "virtual uint KShortcutList::count () const\fC [pure virtual]\fP"
.PP
Returns the number of entries. 
.PP
\fBReturns:\fP
.RS 4
the number of entries
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by index(), readSettings(), and writeSettings().
.SS "virtual \fBQString\fP KShortcutList::name (uint index) const\fC [pure virtual]\fP"
.PP
Returns the name of the shortcut with the given \fCindex\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
the name of the shortcut
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by index(), readSettings(), and writeSettings().
.SS "virtual \fBQString\fP KShortcutList::label (uint index) const\fC [pure virtual]\fP"
.PP
Returns the (i18n'd) label of the shortcut with the given \fCindex\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
the label (i18n'd) of the shortcut
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.SS "virtual \fBQString\fP KShortcutList::whatsThis (uint index) const\fC [pure virtual]\fP"
.PP
Returns the (i18n'd) What's This text of the shortcut with the given \fCindex\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
the What's This text (i18n'd) of the shortcut
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.SS "virtual const \fBKShortcut\fP& KShortcutList::shortcut (uint index) const\fC [pure virtual]\fP"
.PP
Returns the shortcut with the given \fCindex\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
the shortcut 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBshortcutDefault()\fP
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by index(), and writeSettings().
.SS "virtual const \fBKShortcut\fP& KShortcutList::shortcutDefault (uint index) const\fC [pure virtual]\fP"
.PP
Returns default shortcut with the given \fCindex\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
the default shortcut 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBshortcut()\fP
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by readSettings(), and writeSettings().
.SS "virtual bool KShortcutList::isConfigurable (uint index) const\fC [pure virtual]\fP"
.PP
Checks whether the shortcut with the given \fCindex\fP is configurable. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
true if configurable, false otherwise
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by readSettings(), and writeSettings().
.SS "virtual bool KShortcutList::setShortcut (uint index, const \fBKShortcut\fP & shortcut)\fC [pure virtual]\fP"
.PP
Sets the shortcut of the given entry. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.br
\fIshortcut\fP the shortcut
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Referenced by readSettings().
.SS "bool KShortcutList::isGlobal (uint index) const\fC [virtual]\fP"
.PP
Checks whether the shortcut with the given \fCindex\fP is saved in the global configuration. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP the index of the shortcut (must be < \fBcount()\fP) 
.RE
.PP
\fBReturns:\fP
.RS 4
true if global, false otherwise
.RE
.PP

.PP
Reimplemented in \fBKAccelShortcutList\fP.
.PP
Definition at line 26 of file kshortcutlist.cpp.
.SS "int KShortcutList::index (const \fBQString\fP & sName) const\fC [virtual]\fP"
.PP
Returns the index of the shortcut with he given name. 
.PP
\fBParameters:\fP
.RS 4
\fIsName\fP the name of the shortcut to search 
.RE
.PP
\fBReturns:\fP
.RS 4
the index of the shortcut, of -1 if not found
.RE
.PP

.PP
Definition at line 31 of file kshortcutlist.cpp.
.PP
References count(), and name().
.SS "int KShortcutList::index (const \fBKKeySequence\fP & keySeq) const\fC [virtual]\fP"
.PP
Returns the index of the shortcut with he given key sequence. 
.PP
\fBParameters:\fP
.RS 4
\fIkeySeq\fP the key sequence to search for 
.RE
.PP
\fBReturns:\fP
.RS 4
the index of the shortcut, of -1 if not found
.RE
.PP

.PP
Definition at line 42 of file kshortcutlist.cpp.
.PP
References KShortcut::contains(), count(), and shortcut().
.SS "const \fBKInstance\fP * KShortcutList::instance () const\fC [virtual]\fP"
.PP
The \fBKInstance\fP. 
.PP
\fBReturns:\fP
.RS 4
the \fBKInstance\fP of the list, can be 0 if not available
.RE
.PP

.PP
Definition at line 56 of file kshortcutlist.cpp.
.SS "virtual bool KShortcutList::save () const\fC [pure virtual]\fP"
.PP
Save the shortcut list. 
.PP
\fBReturns:\fP
.RS 4
true if successful, false otherwise
.RE
.PP

.PP
Implemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.SS "bool KShortcutList::readSettings (const \fBQString\fP & sConfigGroup = \fCQString::null\fP, \fBKConfigBase\fP * pConfig = \fC0\fP)\fC [virtual]\fP"
.PP
Loads the shortcuts from the given configuration file. 
.PP
\fBParameters:\fP
.RS 4
\fIsConfigGroup\fP the group in the configuration file 
.br
\fIpConfig\fP the configuration file to load from 
.RE
.PP
\fBReturns:\fP
.RS 4
true if successful, false otherwise
.RE
.PP

.PP
Definition at line 71 of file kshortcutlist.cpp.
.PP
References KGlobal::config(), count(), endl(), isConfigurable(), QString::isEmpty(), name(), setShortcut(), and shortcutDefault().
.SS "bool KShortcutList::writeSettings (const \fBQString\fP & sConfigGroup = \fCQString::null\fP, \fBKConfigBase\fP * pConfig = \fC0\fP, bool bWriteAll = \fCfalse\fP, bool bGlobal = \fCfalse\fP) const\fC [virtual]\fP"
.PP
Writes the shortcuts to the given configuration file. 
.PP
\fBParameters:\fP
.RS 4
\fIsConfigGroup\fP the group in the configuration file 
.br
\fIpConfig\fP the configuration file to save to 
.br
\fIbWriteAll\fP true to write all actions 
.br
\fIbGlobal\fP true to write to the global configuration file 
.RE
.PP
\fBReturns:\fP
.RS 4
true if successful, false otherwise
.RE
.PP

.PP
Definition at line 109 of file kshortcutlist.cpp.
.PP
References KGlobal::config(), count(), KConfigBase::deleteGroup(), endl(), isConfigurable(), QString::isEmpty(), name(), shortcut(), shortcutDefault(), and KShortcut::toStringInternal().
.PP
Referenced by KStdAccel::ShortcutList::save(), and KAccelShortcutList::save().
.SS "void KShortcutList::virtual_hook (int id, void * data)\fC [protected, virtual]\fP"
.PP
used to extend the interface with virtuals without breaking binary compatibility 
.PP
Reimplemented in \fBKAccelShortcutList\fP, and \fBKStdAccel::ShortcutList\fP.
.PP
Definition at line 212 of file kshortcutlist.cpp.
.PP
Referenced by KStdAccel::ShortcutList::virtual_hook(), and KAccelShortcutList::virtual_hook().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
