.TH "KLanguageButton" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KLanguageButton \- KLanguageButton provides a combobox with a 2-D dataset.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <klanguagebutton.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBactivated\fP (const \fBQString\fP &id)"
.br
.ti -1c
.RI "void \fBhighlighted\fP (const \fBQString\fP &id)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKLanguageButton\fP (\fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBKLanguageButton\fP (const \fBQString\fP &text, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KLanguageButton\fP ()"
.br
.ti -1c
.RI "void \fBinsertItem\fP (const \fBQIconSet\fP &\fBicon\fP, const \fBQString\fP &text, const \fBQString\fP &id, const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "void \fBinsertItem\fP (const \fBQString\fP &text, const \fBQString\fP &id, const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "void \fBinsertSeparator\fP (const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "void \fBinsertSubmenu\fP (const \fBQIconSet\fP &\fBicon\fP, const \fBQString\fP &text, const \fBQString\fP &id, const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "void \fBinsertSubmenu\fP (const \fBQString\fP &text, const \fBQString\fP &id, const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "void \fBinsertLanguage\fP (const \fBQString\fP &path, const \fBQString\fP &name, const \fBQString\fP &sub=QString::null, const \fBQString\fP &submenu=QString::null, int index=-1)"
.br
.ti -1c
.RI "int \fBcount\fP () const "
.br
.ti -1c
.RI "void \fBclear\fP ()"
.br
.ti -1c
.RI "void \fBsetText\fP (const \fBQString\fP &text)"
.br
.ti -1c
.RI "\fBQString\fP \fBcurrent\fP () const "
.br
.ti -1c
.RI "bool \fBcontains\fP (const \fBQString\fP &id) const "
.br
.ti -1c
.RI "void \fBsetCurrentItem\fP (const \fBQString\fP &id)"
.br
.ti -1c
.RI "\fBQString\fP \fBid\fP (int i) const "
.br
.in -1c
.SH "Detailed Description"
.PP 
KLanguageButton provides a combobox with a 2-D dataset. 

It also supports icons. It is also possible to construct a non combobox version.
.PP
All items are identified using strings, not integers.
.PP
Combined version of KTagCombo and KLanguageCombo but using a \fBQPushButton\fP instead. 
.PP
Definition at line 47 of file klanguagebutton.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KLanguageButton::KLanguageButton (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a combobox widget with parent parent called name. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP The parent of the combo box 
.br
\fIname\fP The name of the combo box 
.RE
.PP

.PP
Definition at line 84 of file klanguagebutton.cpp.
.SS "KLanguageButton::KLanguageButton (const \fBQString\fP & text, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a version with static text. 
.PP
The parent parent is called name.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The text of the button 
.br
\fIparent\fP The parent of the button 
.br
\fIname\fP The name of the button 
.RE
.PP

.PP
Definition at line 90 of file klanguagebutton.cpp.
.PP
References setText().
.SS "KLanguageButton::~\fBKLanguageButton\fP ()\fC [virtual]\fP"
.PP
Deconstructor. 
.PP
Definition at line 122 of file klanguagebutton.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KLanguageButton::insertItem (const \fBQIconSet\fP & icon, const \fBQString\fP & text, const \fBQString\fP & id, const \fBQString\fP & submenu = \fCQString::null\fP, int index = \fC-1\fP)"
.PP
Inserts an item into the combo box. 
.PP
A negative index will append the item.
.PP
\fBParameters:\fP
.RS 4
\fIicon\fP The icon used used when displaying the item. 
.br
\fItext\fP The text string used when displaying the item. 
.br
\fIid\fP The text string used to identify the item. 
.br
\fIsubmenu\fP The place where the item should be placed. 
.br
\fIindex\fP The visual position in the submenu. 
.RE
.PP

.PP
Definition at line 144 of file klanguagebutton.cpp.
.PP
References QPopupMenu::insertItem().
.PP
Referenced by insertItem().
.SS "void KLanguageButton::insertItem (const \fBQString\fP & text, const \fBQString\fP & id, const \fBQString\fP & submenu = \fCQString::null\fP, int index = \fC-1\fP)"
.PP
Inserts an item into the combo box. 
.PP
A negative index will append the item.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The text string used when displaying the item. 
.br
\fIid\fP The text string used to identify the item. 
.br
\fIsubmenu\fP The place where the item should be placed. 
.br
\fIindex\fP The visual position in the submenu. 
.RE
.PP

.PP
Definition at line 153 of file klanguagebutton.cpp.
.PP
References insertItem().
.SS "void KLanguageButton::insertSeparator (const \fBQString\fP & submenu = \fCQString::null\fP, int index = \fC-1\fP)"
.PP
Inserts a seperator item into the combo box. 
.PP
A negative index will append the item.
.PP
\fBParameters:\fP
.RS 4
\fIsubmenu\fP The place where the item should be placed. 
.br
\fIindex\fP The visual position in the submenu. 
.RE
.PP

.PP
Definition at line 159 of file klanguagebutton.cpp.
.PP
References QPopupMenu::insertSeparator().
.SS "void KLanguageButton::insertSubmenu (const \fBQIconSet\fP & icon, const \fBQString\fP & text, const \fBQString\fP & id, const \fBQString\fP & submenu = \fCQString::null\fP, int index = \fC-1\fP)"
.PP
Inserts a submenu into the combo box. 
.PP
A negative index will append the item.
.PP
\fBParameters:\fP
.RS 4
\fIicon\fP The icon used used when displaying the item. 
.br
\fItext\fP The text string used when displaying the item. 
.br
\fIid\fP The text string used to identify the item. 
.br
\fIsubmenu\fP The place where the item should be placed. 
.br
\fIindex\fP The visual position in the submenu. 
.RE
.PP

.PP
Definition at line 166 of file klanguagebutton.cpp.
.PP
References activated(), and QPopupMenu::insertItem().
.PP
Referenced by insertSubmenu().
.SS "void KLanguageButton::insertSubmenu (const \fBQString\fP & text, const \fBQString\fP & id, const \fBQString\fP & submenu = \fCQString::null\fP, int index = \fC-1\fP)"
.PP
Inserts a submenu into the combo box. 
.PP
A negative index will append the item.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The text string used when displaying the item. 
.br
\fIid\fP The text string used to identify the item. 
.br
\fIsubmenu\fP The place where the item should be placed. 
.br
\fIindex\fP The visual position in the submenu. 
.RE
.PP

.PP
Definition at line 181 of file klanguagebutton.cpp.
.PP
References insertSubmenu().
.SS "void KLanguageButton::clear ()"
.PP
Removes all combobox items. 
.PP
Definition at line 211 of file klanguagebutton.cpp.
.PP
References activated().
.SS "void KLanguageButton::setText (const \fBQString\fP & text)"
.PP
Changes the current text item of the combobox, and makes the text static. 
.PP
Definition at line 98 of file klanguagebutton.cpp.
.PP
Referenced by KLanguageButton().
.SS "\fBQString\fP KLanguageButton::current () const"
.PP
Returns the id of the combobox's current item. 
.PP
Definition at line 238 of file klanguagebutton.cpp.
.SS "bool KLanguageButton::contains (const \fBQString\fP & id) const"
.PP
Returns TRUE if the combobox contains id. 
.PP
Definition at line 233 of file klanguagebutton.cpp.
.SS "void KLanguageButton::setCurrentItem (const \fBQString\fP & id)"
.PP
Sets id as current item. 
.PP
Definition at line 277 of file klanguagebutton.cpp.
.SS "void KLanguageButton::activated (const \fBQString\fP & id)\fC [signal]\fP"
.PP
This signal is emitted when a new item is activated. 
.PP
The id is the identificator of the selected item. 
.PP
Referenced by clear(), and insertSubmenu().

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