\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=68pt]{classKAccelShortcutList__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KAccel\-Shortcut\-List:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=68pt]{classKAccelShortcutList__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KAccel\-Shortcut\-List} ({\bf KAccel} $\ast$accel)
\item 
{\bf KAccel\-Shortcut\-List} ({\bf KGlobal\-Accel} $\ast$accel)
\item 
{\bf KAccel\-Shortcut\-List} (KAccel\-Actions \&actions, bool b\-Global)\label{classKAccelShortcutList_a2}

\item 
virtual uint {\bf count} () const 
\item 
virtual {\bf QString} {\bf name} (uint index) const 
\item 
virtual {\bf QString} {\bf label} (uint index) const 
\item 
virtual {\bf QString} {\bf whats\-This} (uint index) const 
\item 
virtual const {\bf KShortcut} \& {\bf shortcut} (uint index) const 
\item 
virtual const {\bf KShortcut} \& {\bf shortcut\-Default} (uint index) const 
\item 
virtual bool {\bf is\-Configurable} (uint index) const 
\item 
virtual bool {\bf set\-Shortcut} (uint index, const {\bf KShortcut} \&shortcut)
\item 
virtual bool {\bf is\-Global} (uint index) const 
\item 
virtual {\bf QVariant} {\bf get\-Other} (Other, uint index) const \label{classKAccelShortcutList_a13}

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

\item 
virtual bool {\bf save} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)
\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 198 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 161 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 169 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 187 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!name@{name}}
\index{name@{name}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KAccel\-Shortcut\-List::name (uint {\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})}.

Definition at line 189 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!label@{label}}
\index{label@{label}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KAccel\-Shortcut\-List::label (uint {\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})}.

Definition at line 191 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!whatsThis@{whatsThis}}
\index{whatsThis@{whatsThis}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KAccel\-Shortcut\-List::whats\-This (uint {\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})}.

Definition at line 193 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!shortcut@{shortcut}}
\index{shortcut@{shortcut}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KShortcut} \& KAccel\-Shortcut\-List::shortcut (uint {\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})}.

Definition at line 195 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!shortcutDefault@{shortcutDefault}}
\index{shortcutDefault@{shortcutDefault}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KShortcut} \& KAccel\-Shortcut\-List::shortcut\-Default (uint {\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})}.

Definition at line 197 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!isConfigurable@{isConfigurable}}
\index{isConfigurable@{isConfigurable}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KAccel\-Shortcut\-List::is\-Configurable (uint {\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})}.

Definition at line 199 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!setShortcut@{setShortcut}}
\index{setShortcut@{setShortcut}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KAccel\-Shortcut\-List::set\-Shortcut (uint {\em index}, const {\bf 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})}.

Definition at line 201 of file kshortcutlist.cpp.\index{KAccelShortcutList@{KAccel\-Shortcut\-List}!isGlobal@{isGlobal}}
\index{isGlobal@{isGlobal}!KAccelShortcutList@{KAccel\-Shortcut\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KAccel\-Shortcut\-List::is\-Global (uint {\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})}.

Definition at line 205 of file kshortcutlist.cpp.\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 209 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 215 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}
