KDevCompat::KEditListBox Class Reference
An editable listbox. More...
#include <kdeveditlistbox.h>
Inheritance diagram for KDevCompat::KEditListBox:

Public Types | |
enum | Button { Add = 1, Remove = 2, UpDown = 4, All = Add|Remove|UpDown } |
Enumeration of the buttons, the listbox offers. More... | |
Signals | |
void | changed () |
Public Member Functions | |
KEditListBox (QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
Create an editable listbox. | |
KEditListBox (const QString &title, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
Create an editable listbox. | |
KEditListBox (const QString &title, const CustomEditor &customEditor, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
Another constructor, which allows to use a custom editing widget instead of the standard KLineEdit widget. | |
virtual | ~KEditListBox () |
QListBox * | listBox () const |
Return a pointer to the embedded QListBox. | |
KLineEdit * | lineEdit () const |
Return a pointer to the embedded QLineEdit. | |
QPushButton * | addButton () const |
Return a pointer to the Add button. | |
QPushButton * | removeButton () const |
Return a pointer to the Remove button. | |
QPushButton * | upButton () const |
Return a pointer to the Up button. | |
QPushButton * | downButton () const |
Return a pointer to the Down button. | |
int | count () const |
See QListBox::count(). | |
void | insertStringList (const QStringList &list, int index=-1) |
See QListBox::insertStringList(). | |
void | insertStrList (const QStrList *list, int index=-1) |
See QListBox::insertStringList(). | |
void | insertStrList (const QStrList &list, int index=-1) |
See QListBox::insertStrList(). | |
void | insertStrList (const char **list, int numStrings=-1, int index=-1) |
See QListBox::insertStrList(). | |
void | insertItem (const QString &text, int index=-1) |
See QListBox::insertItem(). | |
void | clear () |
Clears both the listbox and the line edit. | |
QString | text (int index) const |
See QListBox::text(). | |
int | currentItem () const |
See QListBox::currentItem(). | |
QString | currentText () const |
See QListBox::currentText(). | |
QStringList | items () const |
Protected Slots | |
void | moveItemUp () |
void | moveItemDown () |
void | addItem () |
void | removeItem () |
void | enableMoveButtons (int index) |
void | typedSomething (const QString &text) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Private Member Functions | |
void | init (bool checkAtEntering, int buttons, QWidget *representationWidget=0L) |
Private Attributes | |
QListBox * | m_listBox |
QPushButton * | servUpButton |
QPushButton * | servDownButton |
QPushButton * | servNewButton |
QPushButton * | servRemoveButton |
KLineEdit * | m_lineEdit |
KEditListBoxPrivate * | d |
Detailed Description
An editable listbox.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 36 of file kdeveditlistbox.h.
Member Enumeration Documentation
|
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter. Definition at line 78 of file kdeveditlistbox.h. |
Constructor & Destructor Documentation
|
Create an editable listbox.
If Definition at line 12 of file kdeveditlistbox.cpp. References init(). |
|
Create an editable listbox.
The same as the other constructor, additionally it takes Definition at line 19 of file kdeveditlistbox.cpp. References init(). |
|
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.
Definition at line 26 of file kdeveditlistbox.cpp. References init(), KDevCompat::KEditListBox::CustomEditor::lineEdit(), m_lineEdit, and KDevCompat::KEditListBox::CustomEditor::representationWidget(). |
|
Definition at line 35 of file kdeveditlistbox.cpp. |
Member Function Documentation
|
Return a pointer to the Add button.
Definition at line 134 of file kdeveditlistbox.h. References servNewButton. |
|
Definition at line 203 of file kdeveditlistbox.cpp. References KEditListBox::changed(), and KEditListBox::currentItem(). |
|
|
|
Clears both the listbox and the line edit.
Definition at line 306 of file kdeveditlistbox.cpp. References KEditListBox::changed(). |
|
See QListBox::count().
Definition at line 151 of file kdeveditlistbox.h. References m_listBox. |
|
See QListBox::currentItem().
Definition at line 246 of file kdeveditlistbox.cpp. |
|
See QListBox::currentText().
Definition at line 187 of file kdeveditlistbox.h. References m_listBox. |
|
Return a pointer to the Down button.
Definition at line 146 of file kdeveditlistbox.h. References servDownButton. |
|
Definition at line 270 of file kdeveditlistbox.cpp. References KEditListBox::currentText(). |
|
Definition at line 41 of file kdeveditlistbox.cpp. References KEditListBox::addItem(), KEditListBox::moveItemDown(), KEditListBox::moveItemUp(), and KEditListBox::removeItem(). Referenced by KEditListBox(). |
|
See QListBox::insertItem().
Definition at line 171 of file kdeveditlistbox.h. References insertItem(), m_listBox, and text(). Referenced by insertItem(). |
|
See QListBox::insertStringList().
Definition at line 313 of file kdeveditlistbox.cpp. |
|
See QListBox::insertStrList().
Definition at line 328 of file kdeveditlistbox.cpp. |
|
See QListBox::insertStrList().
Definition at line 323 of file kdeveditlistbox.cpp. |
|
See QListBox::insertStringList().
Definition at line 318 of file kdeveditlistbox.cpp. |
|
Definition at line 333 of file kdeveditlistbox.cpp. |
|
Return a pointer to the embedded QLineEdit.
Definition at line 130 of file kdeveditlistbox.h. References m_lineEdit. |
|
Return a pointer to the embedded QListBox.
Definition at line 126 of file kdeveditlistbox.h. References m_listBox. |
|
Definition at line 180 of file kdeveditlistbox.cpp. References KNotifyClient::beep(), and KEditListBox::changed(). |
|
Definition at line 157 of file kdeveditlistbox.cpp. References KNotifyClient::beep(), and KEditListBox::changed(). |
|
Return a pointer to the Remove button.
Definition at line 138 of file kdeveditlistbox.h. References servRemoveButton. |
|
Definition at line 253 of file kdeveditlistbox.cpp. References KEditListBox::changed(), and KEditListBox::count(). |
|
See QListBox::text().
Definition at line 179 of file kdeveditlistbox.h. References m_listBox. |
|
Definition at line 121 of file kdeveditlistbox.cpp. References KEditListBox::changed(), KEditListBox::currentItem(), KEditListBox::currentText(), and text(). |
|
Return a pointer to the Up button.
Definition at line 142 of file kdeveditlistbox.h. References servUpButton. |
|
Definition at line 342 of file kdeveditlistbox.cpp. |
Member Data Documentation
|
Definition at line 220 of file kdeveditlistbox.h. |
|
Definition at line 210 of file kdeveditlistbox.h. Referenced by KEditListBox(), and lineEdit(). |
|
Definition at line 207 of file kdeveditlistbox.h. Referenced by count(), currentText(), insertItem(), listBox(), and text(). |
|
Definition at line 208 of file kdeveditlistbox.h. Referenced by downButton(). |
|
Definition at line 209 of file kdeveditlistbox.h. Referenced by addButton(). |
|
Definition at line 209 of file kdeveditlistbox.h. Referenced by removeButton(). |
|
Definition at line 208 of file kdeveditlistbox.h. Referenced by upButton(). |
The documentation for this class was generated from the following files:
- lib/compat/kdeveditlistbox.h
- lib/compat/kdeveditlistbox.cpp