\section{KAccel\-Shortcut\-List Class Reference}
\label{classKAccelShortcutList}\index{KAccelShortcutList@{KAccelShortcutList}}
{\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} implementation to access {\bf KAccel}{\rm (p.\,\pageref{classKAccel})} and {\bf KGlobal\-Accel}{\rm (p.\,\pageref{classKGlobalAccel})} lists.  


{\tt \#include $<$kshortcutlist.h$>$}

Inheritance diagram for KAccel\-Shortcut\-List:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=71pt]{classKAccelShortcutList__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KAccel\-Shortcut\-List:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=71pt]{classKAccelShortcutList__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KAccel\-Shortcut\-List} ({\bf KAccel} $\ast$accel)
\begin{CompactList}\small\item\em Creates a new {\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} that accesses the given {\bf KAccel}{\rm (p.\,\pageref{classKAccel})}. \item\end{CompactList}\item 
{\bf KAccel\-Shortcut\-List} ({\bf KGlobal\-Accel} $\ast$accel)
\begin{CompactList}\small\item\em Creates a new {\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} that accesses the given {\bf KGlobal\-Accel}{\rm (p.\,\pageref{classKGlobalAccel})}. \item\end{CompactList}\item 
{\bf KAccel\-Shortcut\-List} (KAccel\-Actions \&actions, bool b\-Global)\label{classKAccelShortcutList_a2}

\item 
virtual unsigned int {\bf count} () const 
\begin{CompactList}\small\item\em Returns the number of entries. \item\end{CompactList}\item 
virtual {\bf QString} {\bf name} (unsigned int index) const 
\begin{CompactList}\small\item\em Returns the name of the shortcut with the given {\tt index}. \item\end{CompactList}\item 
virtual {\bf QString} {\bf label} (unsigned int index) const 
\begin{CompactList}\small\item\em Returns the (i18n'd) label of the shortcut with the given {\tt index}. \item\end{CompactList}\item 
virtual {\bf QString} {\bf whats\-This} (unsigned int index) const 
\begin{CompactList}\small\item\em Returns the (i18n'd) What's This text of the shortcut with the given {\tt index}. \item\end{CompactList}\item 
virtual const  KShortcut \& {\bf shortcut} (unsigned int index) const 
\begin{CompactList}\small\item\em Returns the shortcut with the given {\tt index}. \item\end{CompactList}\item 
virtual const  KShortcut \& {\bf shortcut\-Default} (unsigned int index) const 
\begin{CompactList}\small\item\em Returns default shortcut with the given {\tt index}. \item\end{CompactList}\item 
virtual bool {\bf is\-Configurable} (unsigned int index) const 
\begin{CompactList}\small\item\em Checks whether the shortcut with the given {\tt index} is configurable. \item\end{CompactList}\item 
virtual bool {\bf set\-Shortcut} (unsigned int index, const  KShortcut \&shortcut)
\begin{CompactList}\small\item\em Sets the shortcut of the given entry. \item\end{CompactList}\item 
virtual bool {\bf is\-Global} (unsigned int index) const 
\begin{CompactList}\small\item\em Checks whether the shortcut with the given {\tt index} is saved in the global configuration. \item\end{CompactList}\item 
virtual {\bf QVariant} {\bf get\-Other} (Other, unsigned int index) const \label{classKAccelShortcutList_a13}

\item 
virtual bool {\bf set\-Other} (Other, unsigned int index, {\bf QVariant})\label{classKAccelShortcutList_a14}

\item 
virtual bool {\bf save} () const 
\begin{CompactList}\small\item\em Save the shortcut list. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)
\begin{CompactList}\small\item\em used to extend the interface with virtuals without breaking binary compatibility \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
KAccel\-Actions \& {\bf m\_\-actions}\label{classKAccelShortcutList_p0}

\item 
bool {\bf m\_\-b\-Global}\label{classKAccelShortcutList_p1}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} implementation to access {\bf KAccel}{\rm (p.\,\pageref{classKAccel})} and {\bf KGlobal\-Accel}{\rm (p.\,\pageref{classKGlobalAccel})} lists. 



Definition at line 192 of file kshortcutlist.h.

\subsection{Constructor \& Destructor Documentation}
\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!KAccelShortcutList@{KAccelShortcutList}}
\index{KAccelShortcutList@{KAccelShortcutList}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KAccel\-Shortcut\-List::KAccel\-Shortcut\-List ({\bf KAccel} $\ast$ {\em accel})}\label{classKAccelShortcutList_a0}


Creates a new {\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} that accesses the given {\bf KAccel}{\rm (p.\,\pageref{classKAccel})}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em accel}]the accelerators to access\end{description}
\end{Desc}


Definition at line 150 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!KAccelShortcutList@{KAccelShortcutList}}
\index{KAccelShortcutList@{KAccelShortcutList}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KAccel\-Shortcut\-List::KAccel\-Shortcut\-List ({\bf KGlobal\-Accel} $\ast$ {\em accel})}\label{classKAccelShortcutList_a1}


Creates a new {\bf KShortcut\-List}{\rm (p.\,\pageref{classKShortcutList})} that accesses the given {\bf KGlobal\-Accel}{\rm (p.\,\pageref{classKGlobalAccel})}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em accel}]the accelerators to access\end{description}
\end{Desc}


Definition at line 156 of file kshortcutlist.cpp.

\subsection{Member Function Documentation}
\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!count@{count}}
\index{count@{count}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KAccel\-Shortcut\-List::count () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a4}


Returns the number of entries. 

\begin{Desc}
\item[Returns:]the number of entries\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a2})}.

Definition at line 171 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!name@{name}}
\index{name@{name}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KAccel\-Shortcut\-List::name (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a5}


Returns the name of the shortcut with the given {\tt index}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the name of the shortcut\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a3})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!label@{label}}
\index{label@{label}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KAccel\-Shortcut\-List::label (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a6}


Returns the (i18n'd) label of the shortcut with the given {\tt index}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the label (i18n'd) of the shortcut\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a4})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!whatsThis@{whatsThis}}
\index{whatsThis@{whatsThis}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KAccel\-Shortcut\-List::whats\-This (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a7}


Returns the (i18n'd) What's This text of the shortcut with the given {\tt index}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the What's This text (i18n'd) of the shortcut\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a5})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!shortcut@{shortcut}}
\index{shortcut@{shortcut}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual const KShortcut\& KAccel\-Shortcut\-List::shortcut (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a8}


Returns the shortcut with the given {\tt index}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the shortcut \end{Desc}
\begin{Desc}
\item[See also:]{\bf shortcut\-Default()}{\rm (p.\,\pageref{classKAccelShortcutList_a9})}\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a6})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!shortcutDefault@{shortcutDefault}}
\index{shortcutDefault@{shortcutDefault}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual const KShortcut\& KAccel\-Shortcut\-List::shortcut\-Default (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a9}


Returns default shortcut with the given {\tt index}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the default shortcut \end{Desc}
\begin{Desc}
\item[See also:]{\bf shortcut()}{\rm (p.\,\pageref{classKAccelShortcutList_a8})}\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a7})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!isConfigurable@{isConfigurable}}
\index{isConfigurable@{isConfigurable}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KAccel\-Shortcut\-List::is\-Configurable (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a10}


Checks whether the shortcut with the given {\tt index} is configurable. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if configurable, false otherwise\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a8})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!setShortcut@{setShortcut}}
\index{setShortcut@{setShortcut}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KAccel\-Shortcut\-List::set\-Shortcut (unsigned int {\em index}, const KShortcut \& {\em shortcut})\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a11}


Sets the shortcut of the given entry. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \item[{\em shortcut}]the shortcut\end{description}
\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a9})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!isGlobal@{isGlobal}}
\index{isGlobal@{isGlobal}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KAccel\-Shortcut\-List::is\-Global (unsigned int {\em index}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a12}


Checks whether the shortcut with the given {\tt index} is saved in the global configuration. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the index of the shortcut (must be $<$ {\bf count}{\rm (p.\,\pageref{classKAccelShortcutList_a4})}()) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if global, false otherwise\end{Desc}


Reimplemented from {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a10})}.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!save@{save}}
\index{save@{save}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KAccel\-Shortcut\-List::save () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKAccelShortcutList_a15}


Save the shortcut list. 

\begin{Desc}
\item[Returns:]true if successful, false otherwise\end{Desc}


Implements {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_a16})}.

Definition at line 193 of file kshortcutlist.cpp.

References KShortcut\-List::write\-Settings().\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!virtual_hook@{virtual\_\-hook}}
\index{virtual_hook@{virtual\_\-hook}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAccel\-Shortcut\-List::virtual\_\-hook (int {\em id}, void $\ast$ {\em data})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKAccelShortcutList_b0}


used to extend the interface with virtuals without breaking binary compatibility 



Reimplemented from {\bf KShortcut\-List} {\rm (p.\,\pageref{classKShortcutList_b0})}.

Definition at line 199 of file kshortcutlist.cpp.

References KShortcut\-List::virtual\_\-hook().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kshortcutlist.h\item 
kshortcutlist.cpp\end{CompactItemize}
