\section{KLanguage\-Button Class Reference}
\label{classKLanguageButton}\index{KLanguageButton@{KLanguageButton}}
KLanguage\-Button provides a combobox with a 2-D dataset.  


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

Inheritance diagram for KLanguage\-Button:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=66pt]{classKLanguageButton__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KLanguage\-Button:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=136pt]{classKLanguageButton__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf activated} (const {\bf QString} \&id)
\item 
void {\bf highlighted} (const {\bf QString} \&id)\label{classKLanguageButton_l1}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KLanguage\-Button} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KLanguage\-Button} (const {\bf QString} \&text, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KLanguage\-Button} ()
\item 
void {\bf insert\-Item} (const {\bf QIcon\-Set} \&{\bf icon}, const {\bf QString} \&text, const {\bf QString} \&id, const {\bf QString} \&submenu=QString::null, int index=-1)
\item 
void {\bf insert\-Item} (const {\bf QString} \&text, const {\bf QString} \&id, const {\bf QString} \&submenu=QString::null, int index=-1)
\item 
void {\bf insert\-Separator} (const {\bf QString} \&submenu=QString::null, int index=-1)
\item 
void {\bf insert\-Submenu} (const {\bf QIcon\-Set} \&{\bf icon}, const {\bf QString} \&text, const {\bf QString} \&id, const {\bf QString} \&submenu=QString::null, int index=-1)
\item 
void {\bf insert\-Submenu} (const {\bf QString} \&text, const {\bf QString} \&id, const {\bf QString} \&submenu=QString::null, int index=-1)
\item 
void {\bf insert\-Language} (const {\bf QString} \&path, const {\bf QString} \&name, const {\bf QString} \&sub=QString::null, const {\bf QString} \&submenu=QString::null, int index=-1)\label{classKLanguageButton_a8}

\item 
int {\bf count} () const \label{classKLanguageButton_a9}

\item 
void {\bf clear} ()
\item 
void {\bf set\-Text} (const {\bf QString} \&text)
\item 
{\bf QString} {\bf current} () const 
\item 
bool {\bf contains} (const {\bf QString} \&id) const 
\item 
void {\bf set\-Current\-Item} (const {\bf QString} \&id)
\item 
{\bf QString} {\bf id} (int i) const \label{classKLanguageButton_a15}

\end{CompactItemize}


\subsection{Detailed Description}
KLanguage\-Button provides a combobox with a 2-D dataset. 

It also supports icons. It is also possible to construct a non combobox version.

All items are identified using strings, not integers.

Combined version of KTag\-Combo and KLanguage\-Combo but using a {\bf QPush\-Button} instead. 



Definition at line 47 of file klanguagebutton.h.

\subsection{Constructor \& Destructor Documentation}
\index{KLanguageButton@{KLanguage\-Button}!KLanguageButton@{KLanguageButton}}
\index{KLanguageButton@{KLanguageButton}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLanguage\-Button::KLanguage\-Button ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKLanguageButton_a0}


Constructs a combobox widget with parent parent called name. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]The parent of the combo box \item[{\em name}]The name of the combo box \end{description}
\end{Desc}


Definition at line 84 of file klanguagebutton.cpp.\index{KLanguageButton@{KLanguage\-Button}!KLanguageButton@{KLanguageButton}}
\index{KLanguageButton@{KLanguageButton}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLanguage\-Button::KLanguage\-Button (const {\bf QString} \& {\em text}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKLanguageButton_a1}


Constructs a version with static text. 

The parent parent is called name.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text of the button \item[{\em parent}]The parent of the button \item[{\em name}]The name of the button \end{description}
\end{Desc}


Definition at line 90 of file klanguagebutton.cpp.

References set\-Text().\index{KLanguageButton@{KLanguage\-Button}!~KLanguageButton@{$\sim$KLanguageButton}}
\index{~KLanguageButton@{$\sim$KLanguageButton}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLanguage\-Button::$\sim${\bf KLanguage\-Button} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKLanguageButton_a2}


Deconstructor. 



Definition at line 122 of file klanguagebutton.cpp.

\subsection{Member Function Documentation}
\index{KLanguageButton@{KLanguage\-Button}!insertItem@{insertItem}}
\index{insertItem@{insertItem}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::insert\-Item (const {\bf QIcon\-Set} \& {\em icon}, const {\bf QString} \& {\em text}, const {\bf QString} \& {\em id}, const {\bf QString} \& {\em submenu} = {\tt QString::null}, int {\em index} = {\tt -1})}\label{classKLanguageButton_a3}


Inserts an item into the combo box. 

A negative index will append the item.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The icon used used when displaying the item. \item[{\em text}]The text string used when displaying the item. \item[{\em id}]The text string used to identify the item. \item[{\em submenu}]The place where the item should be placed. \item[{\em index}]The visual position in the submenu. \end{description}
\end{Desc}


Definition at line 144 of file klanguagebutton.cpp.

References QPopup\-Menu::insert\-Item().

Referenced by insert\-Item().\index{KLanguageButton@{KLanguage\-Button}!insertItem@{insertItem}}
\index{insertItem@{insertItem}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::insert\-Item (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em id}, const {\bf QString} \& {\em submenu} = {\tt QString::null}, int {\em index} = {\tt -1})}\label{classKLanguageButton_a4}


Inserts an item into the combo box. 

A negative index will append the item.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text string used when displaying the item. \item[{\em id}]The text string used to identify the item. \item[{\em submenu}]The place where the item should be placed. \item[{\em index}]The visual position in the submenu. \end{description}
\end{Desc}


Definition at line 153 of file klanguagebutton.cpp.

References insert\-Item().\index{KLanguageButton@{KLanguage\-Button}!insertSeparator@{insertSeparator}}
\index{insertSeparator@{insertSeparator}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::insert\-Separator (const {\bf QString} \& {\em submenu} = {\tt QString::null}, int {\em index} = {\tt -1})}\label{classKLanguageButton_a5}


Inserts a seperator item into the combo box. 

A negative index will append the item.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em submenu}]The place where the item should be placed. \item[{\em index}]The visual position in the submenu. \end{description}
\end{Desc}


Definition at line 159 of file klanguagebutton.cpp.

References QPopup\-Menu::insert\-Separator().\index{KLanguageButton@{KLanguage\-Button}!insertSubmenu@{insertSubmenu}}
\index{insertSubmenu@{insertSubmenu}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::insert\-Submenu (const {\bf QIcon\-Set} \& {\em icon}, const {\bf QString} \& {\em text}, const {\bf QString} \& {\em id}, const {\bf QString} \& {\em submenu} = {\tt QString::null}, int {\em index} = {\tt -1})}\label{classKLanguageButton_a6}


Inserts a submenu into the combo box. 

A negative index will append the item.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The icon used used when displaying the item. \item[{\em text}]The text string used when displaying the item. \item[{\em id}]The text string used to identify the item. \item[{\em submenu}]The place where the item should be placed. \item[{\em index}]The visual position in the submenu. \end{description}
\end{Desc}


Definition at line 166 of file klanguagebutton.cpp.

References activated(), and QPopup\-Menu::insert\-Item().

Referenced by insert\-Submenu().\index{KLanguageButton@{KLanguage\-Button}!insertSubmenu@{insertSubmenu}}
\index{insertSubmenu@{insertSubmenu}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::insert\-Submenu (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em id}, const {\bf QString} \& {\em submenu} = {\tt QString::null}, int {\em index} = {\tt -1})}\label{classKLanguageButton_a7}


Inserts a submenu into the combo box. 

A negative index will append the item.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text string used when displaying the item. \item[{\em id}]The text string used to identify the item. \item[{\em submenu}]The place where the item should be placed. \item[{\em index}]The visual position in the submenu. \end{description}
\end{Desc}


Definition at line 181 of file klanguagebutton.cpp.

References insert\-Submenu().\index{KLanguageButton@{KLanguage\-Button}!clear@{clear}}
\index{clear@{clear}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::clear ()}\label{classKLanguageButton_a10}


Removes all combobox items. 



Definition at line 211 of file klanguagebutton.cpp.

References activated().\index{KLanguageButton@{KLanguage\-Button}!setText@{setText}}
\index{setText@{setText}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::set\-Text (const {\bf QString} \& {\em text})}\label{classKLanguageButton_a11}


Changes the current text item of the combobox, and makes the text static. 



Definition at line 98 of file klanguagebutton.cpp.

Referenced by KLanguage\-Button().\index{KLanguageButton@{KLanguage\-Button}!current@{current}}
\index{current@{current}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KLanguage\-Button::current () const}\label{classKLanguageButton_a12}


Returns the id of the combobox's current item. 



Definition at line 238 of file klanguagebutton.cpp.\index{KLanguageButton@{KLanguage\-Button}!contains@{contains}}
\index{contains@{contains}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLanguage\-Button::contains (const {\bf QString} \& {\em id}) const}\label{classKLanguageButton_a13}


Returns TRUE if the combobox contains id. 



Definition at line 233 of file klanguagebutton.cpp.\index{KLanguageButton@{KLanguage\-Button}!setCurrentItem@{setCurrentItem}}
\index{setCurrentItem@{setCurrentItem}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::set\-Current\-Item (const {\bf QString} \& {\em id})}\label{classKLanguageButton_a14}


Sets id as current item. 



Definition at line 277 of file klanguagebutton.cpp.\index{KLanguageButton@{KLanguage\-Button}!activated@{activated}}
\index{activated@{activated}!KLanguageButton@{KLanguage\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLanguage\-Button::activated (const {\bf QString} \& {\em id})\hspace{0.3cm}{\tt  [signal]}}\label{classKLanguageButton_l0}


This signal is emitted when a new item is activated. 

The id is the identificator of the selected item. 

Referenced by clear(), and insert\-Submenu().

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