\section{KEdit\-List\-Box Class Reference}
\label{classKEditListBox}\index{KEditListBox@{KEditListBox}}
An editable listbox.  


{\tt \#include $<$keditlistbox.h$>$}

Inheritance diagram for KEdit\-List\-Box:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKEditListBox__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KEdit\-List\-Box:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=226pt]{classKEditListBox__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Button} \{ {\bf Add} =  1, 
{\bf Remove} =  2, 
{\bf Up\-Down} =  4, 
{\bf All} =  Add$|$Remove$|$Up\-Down
 \}
\begin{CompactList}\small\item\em Enumeration of the buttons, the listbox offers. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf changed} ()\label{classKEditListBox_l0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KEdit\-List\-Box} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, bool check\-At\-Entering=false, int buttons=All)
\begin{CompactList}\small\item\em Create an editable listbox. \item\end{CompactList}\item 
{\bf KEdit\-List\-Box} (const  {\bf QString} \&{\bf title}, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, bool check\-At\-Entering=false, int buttons=All)
\begin{CompactList}\small\item\em Create an editable listbox. \item\end{CompactList}\item 
{\bf KEdit\-List\-Box} (const  {\bf QString} \&{\bf title}, const  {\bf Custom\-Editor} \&custom\-Editor, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, bool check\-At\-Entering=false, int buttons=All)
\begin{CompactList}\small\item\em Another constructor, which allows to use a custom editing widget instead of the standard {\bf KLine\-Edit}{\rm (p.\,\pageref{classKLineEdit})} widget. \item\end{CompactList}\item 
{\bf QList\-Box} $\ast$ {\bf list\-Box} () const 
\begin{CompactList}\small\item\em Return a pointer to the embedded {\bf QList\-Box}. \item\end{CompactList}\item 
{\bf KLine\-Edit} $\ast$ {\bf line\-Edit} () const 
\begin{CompactList}\small\item\em Return a pointer to the embedded {\bf QLine\-Edit}. \item\end{CompactList}\item 
{\bf QPush\-Button} $\ast$ {\bf add\-Button} () const 
\begin{CompactList}\small\item\em Return a pointer to the Add button. \item\end{CompactList}\item 
{\bf QPush\-Button} $\ast$ {\bf remove\-Button} () const 
\begin{CompactList}\small\item\em Return a pointer to the Remove button. \item\end{CompactList}\item 
{\bf QPush\-Button} $\ast$ {\bf up\-Button} () const 
\begin{CompactList}\small\item\em Return a pointer to the Up button. \item\end{CompactList}\item 
{\bf QPush\-Button} $\ast$ {\bf down\-Button} () const 
\begin{CompactList}\small\item\em Return a pointer to the Down button. \item\end{CompactList}\item 
int {\bf count} () const 
\begin{CompactList}\small\item\em See {\bf QList\-Box::count}(). \item\end{CompactList}\item 
void {\bf insert\-String\-List} (const  {\bf QString\-List} \&list, int index=-1)
\begin{CompactList}\small\item\em See {\bf QList\-Box::insert\-String\-List}(). \item\end{CompactList}\item 
void {\bf insert\-Str\-List} (const  {\bf QStr\-List} $\ast$list, int index=-1)
\begin{CompactList}\small\item\em See {\bf QList\-Box::insert\-String\-List}(). \item\end{CompactList}\item 
void {\bf insert\-Str\-List} (const  {\bf QStr\-List} \&list, int index=-1)
\begin{CompactList}\small\item\em See {\bf QList\-Box::insert\-Str\-List}(). \item\end{CompactList}\item 
void {\bf insert\-Str\-List} (const  char $\ast$$\ast$list, int num\-Strings=-1, int index=-1)
\begin{CompactList}\small\item\em See {\bf QList\-Box::insert\-Str\-List}(). \item\end{CompactList}\item 
void {\bf insert\-Item} (const  {\bf QString} \&text, int index=-1)
\begin{CompactList}\small\item\em See {\bf QList\-Box::insert\-Item}(). \item\end{CompactList}\item 
void {\bf clear} ()
\begin{CompactList}\small\item\em Clears both the listbox and the line edit. \item\end{CompactList}\item 
{\bf QString} {\bf text} (int index) const 
\begin{CompactList}\small\item\em See {\bf QList\-Box::text}(). \item\end{CompactList}\item 
int {\bf current\-Item} () const 
\begin{CompactList}\small\item\em See {\bf QList\-Box::current\-Item}(). \item\end{CompactList}\item 
{\bf QString} {\bf current\-Text} () const 
\begin{CompactList}\small\item\em See {\bf QList\-Box::current\-Text}(). \item\end{CompactList}\item 
{\bf QString\-List} {\bf items} () const 
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf move\-Item\-Up} ()\label{classKEditListBox_j0}

\item 
void {\bf move\-Item\-Down} ()\label{classKEditListBox_j1}

\item 
void {\bf add\-Item} ()\label{classKEditListBox_j2}

\item 
void {\bf remove\-Item} ()\label{classKEditListBox_j3}

\item 
void {\bf enable\-Move\-Buttons} (int index)\label{classKEditListBox_j4}

\item 
void {\bf typed\-Something} (const  {\bf QString} \&text)\label{classKEditListBox_j5}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKEditListBox_b0}

\end{CompactItemize}


\subsection{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 39 of file keditlistbox.h.

\subsection{Member Enumeration Documentation}
\index{KEditListBox@{KEdit\-List\-Box}!Button@{Button}}
\index{Button@{Button}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KEdit\-List\-Box::Button}}\label{classKEditListBox_w4}


Enumeration of the buttons, the listbox offers. 

Specify them in the constructor in the buttons parameter. 

Definition at line 81 of file keditlistbox.h.

\subsection{Constructor \& Destructor Documentation}
\index{KEditListBox@{KEdit\-List\-Box}!KEditListBox@{KEditListBox}}
\index{KEditListBox@{KEditListBox}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KEdit\-List\-Box::KEdit\-List\-Box ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0, bool {\em check\-At\-Entering} = false, int {\em buttons} = All)}\label{classKEditListBox_a0}


Create an editable listbox. 

If {\tt check\-At\-Entering} is true, after every character you type in the line edit KEdit\-List\-Box 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 {\tt check\-At\-Entering} 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.

References KStd\-Accel::name().\index{KEditListBox@{KEdit\-List\-Box}!KEditListBox@{KEditListBox}}
\index{KEditListBox@{KEditListBox}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KEdit\-List\-Box::KEdit\-List\-Box (const {\bf QString} \& {\em title}, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0, bool {\em check\-At\-Entering} = false, int {\em buttons} = All)}\label{classKEditListBox_a1}


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.

References KStd\-Accel::name().\index{KEditListBox@{KEdit\-List\-Box}!KEditListBox@{KEditListBox}}
\index{KEditListBox@{KEditListBox}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KEdit\-List\-Box::KEdit\-List\-Box (const {\bf QString} \& {\em title}, const {\bf Custom\-Editor} \& {\em custom\-Editor}, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0, bool {\em check\-At\-Entering} = false, int {\em buttons} = All)}\label{classKEditListBox_a2}


Another constructor, which allows to use a custom editing widget instead of the standard {\bf KLine\-Edit}{\rm (p.\,\pageref{classKLineEdit})} widget. 

E.g. you can use a {\bf KURLRequester} or a {\bf KCombo\-Box}{\rm (p.\,\pageref{classKComboBox})} as input widget. The custom editor must consist of a lineedit and optionally another widget that is used as representation. A {\bf KCombo\-Box}{\rm (p.\,\pageref{classKComboBox})} or a {\bf KURLRequester} have a {\bf KLine\-Edit}{\rm (p.\,\pageref{classKLineEdit})} as child-widget for example, so the {\bf KCombo\-Box}{\rm (p.\,\pageref{classKComboBox})} is used as the representation widget.

\begin{Desc}
\item[See also:]{\bf KURLRequester::custom\-Editor()} \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 62 of file keditlistbox.cpp.

References KEdit\-List\-Box::Custom\-Editor::line\-Edit(), KStd\-Accel::name(), and KEdit\-List\-Box::Custom\-Editor::representation\-Widget().

\subsection{Member Function Documentation}
\index{KEditListBox@{KEdit\-List\-Box}!listBox@{listBox}}
\index{listBox@{listBox}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QList\-Box}$\ast$ KEdit\-List\-Box::list\-Box () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a4}


Return a pointer to the embedded {\bf QList\-Box}. 



Definition at line 129 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!lineEdit@{lineEdit}}
\index{lineEdit@{lineEdit}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KLine\-Edit}$\ast$ KEdit\-List\-Box::line\-Edit () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a5}


Return a pointer to the embedded {\bf QLine\-Edit}. 



Definition at line 133 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!addButton@{addButton}}
\index{addButton@{addButton}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPush\-Button}$\ast$ KEdit\-List\-Box::add\-Button () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a6}


Return a pointer to the Add button. 



Definition at line 137 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!removeButton@{removeButton}}
\index{removeButton@{removeButton}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPush\-Button}$\ast$ KEdit\-List\-Box::remove\-Button () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a7}


Return a pointer to the Remove button. 



Definition at line 141 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!upButton@{upButton}}
\index{upButton@{upButton}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPush\-Button}$\ast$ KEdit\-List\-Box::up\-Button () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a8}


Return a pointer to the Up button. 



Definition at line 145 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!downButton@{downButton}}
\index{downButton@{downButton}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPush\-Button}$\ast$ KEdit\-List\-Box::down\-Button () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a9}


Return a pointer to the Down button. 



Definition at line 149 of file keditlistbox.h.\index{KEditListBox@{KEdit\-List\-Box}!count@{count}}
\index{count@{count}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KEdit\-List\-Box::count () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a10}


See {\bf QList\-Box::count}(). 



Definition at line 154 of file keditlistbox.h.

References QList\-Box::count().\index{KEditListBox@{KEdit\-List\-Box}!insertStringList@{insertStringList}}
\index{insertStringList@{insertStringList}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::insert\-String\-List (const {\bf QString\-List} \& {\em list}, int {\em index} = -1)}\label{classKEditListBox_a11}


See {\bf QList\-Box::insert\-String\-List}(). 



Definition at line 349 of file keditlistbox.cpp.

References QList\-Box::insert\-String\-List().\index{KEditListBox@{KEdit\-List\-Box}!insertStrList@{insertStrList}}
\index{insertStrList@{insertStrList}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::insert\-Str\-List (const {\bf QStr\-List} $\ast$ {\em list}, int {\em index} = -1)}\label{classKEditListBox_a12}


See {\bf QList\-Box::insert\-String\-List}(). 



Definition at line 354 of file keditlistbox.cpp.

References QList\-Box::insert\-Str\-List().\index{KEditListBox@{KEdit\-List\-Box}!insertStrList@{insertStrList}}
\index{insertStrList@{insertStrList}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::insert\-Str\-List (const {\bf QStr\-List} \& {\em list}, int {\em index} = -1)}\label{classKEditListBox_a13}


See {\bf QList\-Box::insert\-Str\-List}(). 



Definition at line 359 of file keditlistbox.cpp.

References QList\-Box::insert\-Str\-List().\index{KEditListBox@{KEdit\-List\-Box}!insertStrList@{insertStrList}}
\index{insertStrList@{insertStrList}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::insert\-Str\-List (const char $\ast$$\ast$ {\em list}, int {\em num\-Strings} = -1, int {\em index} = -1)}\label{classKEditListBox_a14}


See {\bf QList\-Box::insert\-Str\-List}(). 



Definition at line 364 of file keditlistbox.cpp.

References QList\-Box::insert\-Str\-List().\index{KEditListBox@{KEdit\-List\-Box}!insertItem@{insertItem}}
\index{insertItem@{insertItem}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::insert\-Item (const {\bf QString} \& {\em text}, int {\em index} = -1)\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a15}


See {\bf QList\-Box::insert\-Item}(). 



Definition at line 174 of file keditlistbox.h.

References QList\-Box::insert\-Item().\index{KEditListBox@{KEdit\-List\-Box}!clear@{clear}}
\index{clear@{clear}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KEdit\-List\-Box::clear ()}\label{classKEditListBox_a16}


Clears both the listbox and the line edit. 



Definition at line 342 of file keditlistbox.cpp.

References QList\-Box::clear(), and KLine\-Edit::clear().\index{KEditListBox@{KEdit\-List\-Box}!text@{text}}
\index{text@{text}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KEdit\-List\-Box::text (int {\em index}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a17}


See {\bf QList\-Box::text}(). 



Definition at line 182 of file keditlistbox.h.

References QList\-Box::text().\index{KEditListBox@{KEdit\-List\-Box}!currentItem@{currentItem}}
\index{currentItem@{currentItem}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KEdit\-List\-Box::current\-Item () const}\label{classKEditListBox_a18}


See {\bf QList\-Box::current\-Item}(). 



Definition at line 282 of file keditlistbox.cpp.

References QList\-Box::current\-Item(), and QList\-Box::item().\index{KEditListBox@{KEdit\-List\-Box}!currentText@{currentText}}
\index{currentText@{currentText}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KEdit\-List\-Box::current\-Text () const\hspace{0.3cm}{\tt  [inline]}}\label{classKEditListBox_a19}


See {\bf QList\-Box::current\-Text}(). 



Definition at line 190 of file keditlistbox.h.

References QList\-Box::current\-Text().\index{KEditListBox@{KEdit\-List\-Box}!items@{items}}
\index{items@{items}!KEditListBox@{KEdit\-List\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KEdit\-List\-Box::items () const}\label{classKEditListBox_a20}


\begin{Desc}
\item[Returns:]a stringlist of all items in the listbox \end{Desc}


Definition at line 369 of file keditlistbox.cpp.

References QList\-Box::count(), and QList\-Box::text().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
keditlistbox.h\item 
keditlistbox.cpp\end{CompactItemize}
