.TH "KEditListBox" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KEditListBox \- An editable listbox.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <keditlistbox.h>\fP
.PP
Inherits \fBQGroupBox\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBButton\fP { \fBAdd\fP =  1, \fBRemove\fP =  2, \fBUpDown\fP =  4, \fBAll\fP =  Add|Remove|UpDown }"
.br
.RI "\fIEnumeration of the buttons, the listbox offers. \fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBchanged\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKEditListBox\fP (\fBQWidget\fP *parent=0, const  char *name=0, bool checkAtEntering=false, int buttons=All)"
.br
.RI "\fICreate an editable listbox. \fP"
.ti -1c
.RI "\fBKEditListBox\fP (const  \fBQString\fP &\fBtitle\fP, \fBQWidget\fP *parent=0, const  char *name=0, bool checkAtEntering=false, int buttons=All)"
.br
.RI "\fICreate an editable listbox. \fP"
.ti -1c
.RI "\fBKEditListBox\fP (const  \fBQString\fP &\fBtitle\fP, const  \fBCustomEditor\fP &customEditor, \fBQWidget\fP *parent=0, const  char *name=0, bool checkAtEntering=false, int buttons=All)"
.br
.RI "\fIAnother constructor, which allows to use a custom editing widget instead of the standard \fBKLineEdit\fP widget. \fP"
.ti -1c
.RI "\fBQListBox\fP * \fBlistBox\fP () const "
.br
.RI "\fIReturn a pointer to the embedded \fBQListBox\fP. \fP"
.ti -1c
.RI "\fBKLineEdit\fP * \fBlineEdit\fP () const "
.br
.RI "\fIReturn a pointer to the embedded \fBQLineEdit\fP. \fP"
.ti -1c
.RI "\fBQPushButton\fP * \fBaddButton\fP () const "
.br
.RI "\fIReturn a pointer to the Add button. \fP"
.ti -1c
.RI "\fBQPushButton\fP * \fBremoveButton\fP () const "
.br
.RI "\fIReturn a pointer to the Remove button. \fP"
.ti -1c
.RI "\fBQPushButton\fP * \fBupButton\fP () const "
.br
.RI "\fIReturn a pointer to the Up button. \fP"
.ti -1c
.RI "\fBQPushButton\fP * \fBdownButton\fP () const "
.br
.RI "\fIReturn a pointer to the Down button. \fP"
.ti -1c
.RI "int \fBcount\fP () const "
.br
.RI "\fISee \fBQListBox::count\fP(). \fP"
.ti -1c
.RI "void \fBinsertStringList\fP (const  \fBQStringList\fP &list, int index=-1)"
.br
.RI "\fISee \fBQListBox::insertStringList\fP(). \fP"
.ti -1c
.RI "void \fBinsertStrList\fP (const  \fBQStrList\fP *list, int index=-1)"
.br
.RI "\fISee \fBQListBox::insertStringList\fP(). \fP"
.ti -1c
.RI "void \fBinsertStrList\fP (const  \fBQStrList\fP &list, int index=-1)"
.br
.RI "\fISee \fBQListBox::insertStrList\fP(). \fP"
.ti -1c
.RI "void \fBinsertStrList\fP (const  char **list, int numStrings=-1, int index=-1)"
.br
.RI "\fISee \fBQListBox::insertStrList\fP(). \fP"
.ti -1c
.RI "void \fBinsertItem\fP (const  \fBQString\fP &text, int index=-1)"
.br
.RI "\fISee \fBQListBox::insertItem\fP(). \fP"
.ti -1c
.RI "void \fBclear\fP ()"
.br
.RI "\fIClears both the listbox and the line edit. \fP"
.ti -1c
.RI "\fBQString\fP \fBtext\fP (int index) const "
.br
.RI "\fISee \fBQListBox::text\fP(). \fP"
.ti -1c
.RI "int \fBcurrentItem\fP () const "
.br
.RI "\fISee \fBQListBox::currentItem\fP(). \fP"
.ti -1c
.RI "\fBQString\fP \fBcurrentText\fP () const "
.br
.RI "\fISee \fBQListBox::currentText\fP(). \fP"
.ti -1c
.RI "\fBQStringList\fP \fBitems\fP () const "
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBmoveItemUp\fP ()"
.br
.ti -1c
.RI "void \fBmoveItemDown\fP ()"
.br
.ti -1c
.RI "void \fBaddItem\fP ()"
.br
.ti -1c
.RI "void \fBremoveItem\fP ()"
.br
.ti -1c
.RI "void \fBenableMoveButtons\fP (int index)"
.br
.ti -1c
.RI "void \fBtypedSomething\fP (const  \fBQString\fP &text)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
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. 
.PP
Definition at line 39 of file keditlistbox.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKEditListBox::Button\fP"
.PP
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter. Definition at line 81 of file keditlistbox.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KEditListBox::KEditListBox (\fBQWidget\fP * parent = 0, const char * name = 0, bool checkAtEntering = false, int buttons = All)"
.PP
Create an editable listbox. If \fCcheckAtEntering\fP is true, after every character you type in the line edit KEditListBox will enable or disable the Add-button, depending whether the current content of the line edit is already in the listbox. Maybe this can become a performance hit with large lists on slow machines. If \fCcheckAtEntering\fP is false, it will be checked if you press the Add-button. It is not possible to enter items twice into the listbox. Definition at line 48 of file keditlistbox.cpp.
.PP
References KStdAccel::name().
.SS "KEditListBox::KEditListBox (const \fBQString\fP & title, \fBQWidget\fP * parent = 0, const char * name = 0, bool checkAtEntering = false, int buttons = All)"
.PP
Create an editable listbox. The same as the other constructor, additionally it takes , which will be the title of the frame around the listbox. Definition at line 55 of file keditlistbox.cpp.
.PP
References KStdAccel::name().
.SS "KEditListBox::KEditListBox (const \fBQString\fP & title, const \fBCustomEditor\fP & customEditor, \fBQWidget\fP * parent = 0, const char * name = 0, bool checkAtEntering = false, int buttons = All)"
.PP
Another constructor, which allows to use a custom editing widget instead of the standard \fBKLineEdit\fP widget. E.g. you can use a \fBKURLRequester\fP or a \fBKComboBox\fP as input widget. The custom editor must consist of a lineedit and optionally another widget that is used as representation. A \fBKComboBox\fP or a \fBKURLRequester\fP have a \fBKLineEdit\fP as child-widget for example, so the \fBKComboBox\fP is used as the representation widget.
.PP
\fBSee also:\fP
.RS 4
\fBKURLRequester::customEditor()\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 62 of file keditlistbox.cpp.
.PP
References KEditListBox::CustomEditor::lineEdit(), KStdAccel::name(), and KEditListBox::CustomEditor::representationWidget().
.SH "Member Function Documentation"
.PP 
.SS "\fBQListBox\fP* KEditListBox::listBox () const\fC [inline]\fP"
.PP
Return a pointer to the embedded \fBQListBox\fP. Definition at line 129 of file keditlistbox.h.
.SS "\fBKLineEdit\fP* KEditListBox::lineEdit () const\fC [inline]\fP"
.PP
Return a pointer to the embedded \fBQLineEdit\fP. Definition at line 133 of file keditlistbox.h.
.SS "\fBQPushButton\fP* KEditListBox::addButton () const\fC [inline]\fP"
.PP
Return a pointer to the Add button. Definition at line 137 of file keditlistbox.h.
.SS "\fBQPushButton\fP* KEditListBox::removeButton () const\fC [inline]\fP"
.PP
Return a pointer to the Remove button. Definition at line 141 of file keditlistbox.h.
.SS "\fBQPushButton\fP* KEditListBox::upButton () const\fC [inline]\fP"
.PP
Return a pointer to the Up button. Definition at line 145 of file keditlistbox.h.
.SS "\fBQPushButton\fP* KEditListBox::downButton () const\fC [inline]\fP"
.PP
Return a pointer to the Down button. Definition at line 149 of file keditlistbox.h.
.SS "int KEditListBox::count () const\fC [inline]\fP"
.PP
See \fBQListBox::count\fP(). Definition at line 154 of file keditlistbox.h.
.PP
References QListBox::count().
.SS "void KEditListBox::insertStringList (const \fBQStringList\fP & list, int index = -1)"
.PP
See \fBQListBox::insertStringList\fP(). Definition at line 349 of file keditlistbox.cpp.
.PP
References QListBox::insertStringList().
.SS "void KEditListBox::insertStrList (const \fBQStrList\fP * list, int index = -1)"
.PP
See \fBQListBox::insertStringList\fP(). Definition at line 354 of file keditlistbox.cpp.
.PP
References QListBox::insertStrList().
.SS "void KEditListBox::insertStrList (const \fBQStrList\fP & list, int index = -1)"
.PP
See \fBQListBox::insertStrList\fP(). Definition at line 359 of file keditlistbox.cpp.
.PP
References QListBox::insertStrList().
.SS "void KEditListBox::insertStrList (const char ** list, int numStrings = -1, int index = -1)"
.PP
See \fBQListBox::insertStrList\fP(). Definition at line 364 of file keditlistbox.cpp.
.PP
References QListBox::insertStrList().
.SS "void KEditListBox::insertItem (const \fBQString\fP & text, int index = -1)\fC [inline]\fP"
.PP
See \fBQListBox::insertItem\fP(). Definition at line 174 of file keditlistbox.h.
.PP
References QListBox::insertItem().
.SS "void KEditListBox::clear ()"
.PP
Clears both the listbox and the line edit. Definition at line 342 of file keditlistbox.cpp.
.PP
References QListBox::clear(), and KLineEdit::clear().
.SS "\fBQString\fP KEditListBox::text (int index) const\fC [inline]\fP"
.PP
See \fBQListBox::text\fP(). Definition at line 182 of file keditlistbox.h.
.PP
References QListBox::text().
.SS "int KEditListBox::currentItem () const"
.PP
See \fBQListBox::currentItem\fP(). Definition at line 282 of file keditlistbox.cpp.
.PP
References QListBox::currentItem(), and QListBox::item().
.SS "\fBQString\fP KEditListBox::currentText () const\fC [inline]\fP"
.PP
See \fBQListBox::currentText\fP(). Definition at line 190 of file keditlistbox.h.
.PP
References QListBox::currentText().
.SS "\fBQStringList\fP KEditListBox::items () const"
.PP
\fBReturns:\fP
.RS 4
a stringlist of all items in the listbox 
.RE
.PP
Definition at line 369 of file keditlistbox.cpp.
.PP
References QListBox::count(), and QListBox::text().

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