KLanguageButton Class Reference
KLanguageButton provides a combobox with a 2-D dataset. More...
#include <klanguagebutton.h>
Inheritance diagram for KLanguageButton:


Signals | |
void | activated (const QString &id) |
void | highlighted (const QString &id) |
Public Member Functions | |
KLanguageButton (QWidget *parent=0, const char *name=0) | |
KLanguageButton (const QString &text, QWidget *parent=0, const char *name=0) | |
virtual | ~KLanguageButton () |
void | insertItem (const QIconSet &icon, const QString &text, const QString &id, const QString &submenu=QString::null, int index=-1) |
void | insertItem (const QString &text, const QString &id, const QString &submenu=QString::null, int index=-1) |
void | insertSeparator (const QString &submenu=QString::null, int index=-1) |
void | insertSubmenu (const QIconSet &icon, const QString &text, const QString &id, const QString &submenu=QString::null, int index=-1) |
void | insertSubmenu (const QString &text, const QString &id, const QString &submenu=QString::null, int index=-1) |
void | insertLanguage (const QString &path, const QString &name, const QString &sub=QString::null, const QString &submenu=QString::null, int index=-1) |
int | count () const |
void | clear () |
void | setText (const QString &text) |
QString | current () const |
bool | contains (const QString &id) const |
void | setCurrentItem (const QString &id) |
QString | id (int i) const |
Detailed Description
KLanguageButton 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 KTagCombo and KLanguageCombo but using a QPushButton instead.
Definition at line 45 of file klanguagebutton.h.
Constructor & Destructor Documentation
|
Constructs a combobox widget with parent parent called name.
Definition at line 84 of file klanguagebutton.cpp. |
|
Constructs a version with static text. The parent parent is called name.
Definition at line 90 of file klanguagebutton.cpp. References setText(). |
|
Deconstructor.
Definition at line 122 of file klanguagebutton.cpp. |
Member Function Documentation
|
Inserts an item into the combo box. A negative index will append the item.
Definition at line 144 of file klanguagebutton.cpp. Referenced by insertItem(). |
|
Inserts an item into the combo box. A negative index will append the item.
Definition at line 153 of file klanguagebutton.cpp. References insertItem(). |
|
Inserts a seperator item into the combo box. A negative index will append the item.
Definition at line 159 of file klanguagebutton.cpp. |
|
Inserts a submenu into the combo box. A negative index will append the item.
Definition at line 166 of file klanguagebutton.cpp. References activated(). Referenced by insertSubmenu(). |
|
Inserts a submenu into the combo box. A negative index will append the item.
Definition at line 181 of file klanguagebutton.cpp. References insertSubmenu(). |
|
Removes all combobox items.
Definition at line 211 of file klanguagebutton.cpp. References activated(). |
|
Changes the current text item of the combobox, and makes the text static.
Definition at line 98 of file klanguagebutton.cpp. Referenced by KLanguageButton(). |
|
Returns the id of the combobox's current item.
Definition at line 238 of file klanguagebutton.cpp. |
|
Returns TRUE if the combobox contains id.
Definition at line 233 of file klanguagebutton.cpp. |
|
Sets id as current item.
Definition at line 277 of file klanguagebutton.cpp. |
|
This signal is emitted when a new item is activated. The id is the identificator of the selected item. Referenced by clear(), and insertSubmenu(). |
The documentation for this class was generated from the following files: