#include <keditlistbox.h>
Public Types | |
| enum | Button |
Public Methods | |
| KEditListBox (QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| KEditListBox (const QString &title, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| KEditListBox (const QString &title, const CustomEditor &customEditor, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| QListBox * | listBox () const |
| KLineEdit * | lineEdit () const |
| QPushButton * | addButton () const |
| QPushButton * | removeButton () const |
| QPushButton * | upButton () const |
| QPushButton * | downButton () const |
| int | count () const |
| void | insertStringList (const QStringList &list, int index=-1) |
| void | insertStrList (const QStrList *list, int index=-1) |
| void | insertStrList (const QStrList &list, int index=-1) |
| void | insertStrList (const char **list, int numStrings=-1, int index=-1) |
| void | insertItem (const QString &text, int index=-1) |
| void | clear () |
| QString | text (int index) const |
| int | currentItem () const |
| QString | currentText () const |
| QStringList | items () const |
This class provides a editable listbox ;-), this means a listbox which is accompanied by a line edit to enter new items into the listbox and pushbuttons to add and remove items from the listbox and two buttons to move items up and down.
Definition at line 39 of file keditlistbox.h.
|
|
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter. Definition at line 81 of file keditlistbox.h. |
|
||||||||||||||||||||
|
Create an editable listbox.
If |
|
||||||||||||||||||||||||
|
Create an editable listbox. The same as the other constructor, additionally it takes @title, which will be the title of the frame around the listbox. |
|
||||||||||||||||||||||||||||
|
Another constructor, which allows to use a custom editing widget instead of the standard KLineEdit widget. E.g. you can use a KURLRequester or a KComboBox as input widget. The custom editor must consist of a lineedit and optionally another widget that is used as representation. A KComboBox or a KURLRequester have a KLineEdit as child-widget for example, so the KComboBox is used as the representation widget.
|
|
|
Return a pointer to the Add button Definition at line 137 of file keditlistbox.h. |
|
|
Clears both the listbox and the line edit. |
|
|
See QListBox::count() Definition at line 154 of file keditlistbox.h. |
|
|
See QListBox::currentItem() |
|
|
See QListBox::currentText() Definition at line 190 of file keditlistbox.h. |
|
|
Return a pointer to the Down button Definition at line 149 of file keditlistbox.h. |
|
||||||||||||
|
See QListBox::insertItem() Definition at line 174 of file keditlistbox.h. References text(). |
|
||||||||||||
|
See QListBox::insertStringList() |
|
||||||||||||||||
|
See QListBox::insertStrList() |
|
||||||||||||
|
See QListBox::insertStrList() |
|
||||||||||||
|
See QListBox::insertStringList() |
|
|
|
|
|
Return a pointer to the embedded QLineEdit. Definition at line 133 of file keditlistbox.h. |
|
|
Return a pointer to the embedded QListBox. Definition at line 129 of file keditlistbox.h. |
|
|
Return a pointer to the Remove button Definition at line 141 of file keditlistbox.h. |
|
|
See QListBox::text() Definition at line 182 of file keditlistbox.h. Referenced by insertItem(). |
|
|
Return a pointer to the Up button Definition at line 145 of file keditlistbox.h. |
1.2.18