\section{KLine\-Edit\-Dlg Class Reference}
\label{classKLineEditDlg}\index{KLineEditDlg@{KLineEditDlg}}
{\tt \#include $<$klineeditdlg.h$>$}

Inheritance diagram for KLine\-Edit\-Dlg:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKLineEditDlg__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KLine\-Edit\-Dlg:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=93pt]{classKLineEditDlg__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Clear} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KLine\-Edit\-Dlg} (const {\bf QString} \&\_\-text, const {\bf QString} \&\_\-value, {\bf QWidget} $\ast$parent) KDE\_\-DEPRECATED
\item 
{\bf QString} {\bf text} () const 
\item 
{\bf KLine\-Edit} $\ast$ {\bf line\-Edit} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString} {\bf get\-Text} (const {\bf QString} \&text, const {\bf QString} \&value, bool $\ast$ok, {\bf QWidget} $\ast$parent, {\bf QValidator} $\ast$validator=0) KDE\_\-DEPRECATED
\item 
static {\bf QString} {\bf get\-Text} (const {\bf QString} \&caption, const {\bf QString} \&text, const {\bf QString} \&value=QString::null, bool $\ast$ok=0, {\bf QWidget} $\ast$parent=0, {\bf QValidator} $\ast$validator=0) KDE\_\-DEPRECATED
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Text\-Changed} (const {\bf QString} \&)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKLineEditDlg_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KLine\-Edit} $\ast$ {\bf edit}
\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[{\bf Deprecated}]Please use {\bf KInput\-Dialog}{\rm (p.\,\pageref{classKInputDialog})} instead. \end{Desc}
Dialog for user to enter a single line of text.

\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf klineeditdlg.h}{\rm (p.\,\pageref{klineeditdlg_8h})} 345070 2004-09-08 19:30:58Z staniek \end{Desc}
\end{Desc}
\begin{Desc}
\item[Author:]David Faure $<${\tt faure@kde.org}$>$, layout management by Preston Brown $<${\tt pbrown@kde.org}$>$ \end{Desc}




Definition at line 38 of file klineeditdlg.h.

\subsection{Constructor \& Destructor Documentation}
\index{KLineEditDlg@{KLine\-Edit\-Dlg}!KLineEditDlg@{KLineEditDlg}}
\index{KLineEditDlg@{KLineEditDlg}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLine\-Edit\-Dlg::KLine\-Edit\-Dlg (const {\bf QString} \& {\em \_\-text}, const {\bf QString} \& {\em \_\-value}, {\bf QWidget} $\ast$ {\em parent})}\label{classKLineEditDlg_a0}


Create a dialog that asks for a single line of text. 

\_\-value is the initial value of the line. \_\-text appears as label on top of the entry box. If the internal line edit has an associated {\bf QValidator} set, the OK button is disabled as long as the validator doesn't return Acceptable. If there's no validator, the OK button is enabled whenever the line edit isn't empty.

If you want to accept empty input, make a trivial {\bf QValidator} that always returns Acceptable, e.g. {\bf QReg\-Exp\-Validator} with a regexp of \char`\"{}.$\ast$\char`\"{}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-text}]Text of the label \item[{\em \_\-value}]Initial value of the inputline \item[{\em parent}]Parent widget for the line edit dialog \end{description}
\end{Desc}


Definition at line 37 of file klineeditdlg.cpp.

References edit, KDialog\-Base::enable\-Button(), KDialog\-Base::enable\-Button\-OK(), KDialog\-Base::plain\-Page(), QLine\-Edit::set\-Selection(), KLine\-Edit::set\-Text(), QLine\-Edit::size\-Hint(), slot\-Clear(), slot\-Text\-Changed(), KDialog::spacing\-Hint(), QLine\-Edit::text(), and KDialog\-Base::user1Clicked().

\subsection{Member Function Documentation}
\index{KLineEditDlg@{KLine\-Edit\-Dlg}!text@{text}}
\index{text@{text}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KLine\-Edit\-Dlg::text () const}\label{classKLineEditDlg_a2}


\begin{Desc}
\item[Returns:]the value the user entered \end{Desc}


Definition at line 154 of file klineeditdlg.cpp.

References edit, and QLine\-Edit::text().

Referenced by get\-Text(), and slot\-Text\-Changed().\index{KLineEditDlg@{KLine\-Edit\-Dlg}!lineEdit@{lineEdit}}
\index{lineEdit@{lineEdit}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KLine\-Edit}$\ast$ KLine\-Edit\-Dlg::line\-Edit () const\hspace{0.3cm}{\tt  [inline]}}\label{classKLineEditDlg_a3}


\begin{Desc}
\item[Returns:]the line edit widget \end{Desc}


Definition at line 69 of file klineeditdlg.h.

Referenced by get\-Text().\index{KLineEditDlg@{KLine\-Edit\-Dlg}!getText@{getText}}
\index{getText@{getText}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KLine\-Edit\-Dlg::get\-Text (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em value}, bool $\ast$ {\em ok}, {\bf QWidget} $\ast$ {\em parent}, {\bf QValidator} $\ast$ {\em validator} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKLineEditDlg_e0}


Static convenience function to get a textual input from the user. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]Text of the label \item[{\em value}]Initial value of the inputline \item[{\em ok}]this bool will be set to true if user pressed \char`\"{}Ok\char`\"{} \item[{\em validator}]Validator to be stuffed into the line edit. \item[{\em parent}]The parent widget \end{description}
\end{Desc}


Definition at line 159 of file klineeditdlg.cpp.

References QDialog::exec(), line\-Edit(), QLine\-Edit::set\-Validator(), slot\-Text\-Changed(), and text().\index{KLineEditDlg@{KLine\-Edit\-Dlg}!getText@{getText}}
\index{getText@{getText}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KLine\-Edit\-Dlg::get\-Text (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QString} \& {\em value} = {\tt QString::null}, bool $\ast$ {\em ok} = {\tt 0}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, {\bf QValidator} $\ast$ {\em validator} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKLineEditDlg_e1}


Static convenience function to get a textual input from the user. 

This method includes a caption, and has (almost) the same API as {\bf QInput\-Dialog::get\-Text} (no echo mode, we have {\bf KPassword\-Dialog}{\rm (p.\,\pageref{classKPasswordDialog})}).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em caption}]Caption of the dialog \item[{\em text}]Text of the label \item[{\em value}]Initial value of the inputline \item[{\em ok}]this bool will be set to true if user pressed \char`\"{}Ok\char`\"{} \item[{\em parent}]The parent widget for this text input dialog \item[{\em validator}]Validator to be stuffed into the line edit. \end{description}
\end{Desc}


Definition at line 174 of file klineeditdlg.cpp.

References QDialog::exec(), line\-Edit(), KDialog::set\-Caption(), QLine\-Edit::set\-Validator(), slot\-Text\-Changed(), and text().\index{KLineEditDlg@{KLine\-Edit\-Dlg}!slotClear@{slotClear}}
\index{slotClear@{slotClear}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit\-Dlg::slot\-Clear ()\hspace{0.3cm}{\tt  [slot]}}\label{classKLineEditDlg_i0}


Clears the edit widget. 



Definition at line 134 of file klineeditdlg.cpp.

References edit, and KLine\-Edit::set\-Text().

Referenced by KLine\-Edit\-Dlg().\index{KLineEditDlg@{KLine\-Edit\-Dlg}!slotTextChanged@{slotTextChanged}}
\index{slotTextChanged@{slotTextChanged}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit\-Dlg::slot\-Text\-Changed (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKLineEditDlg_j0}


Enables and disables the OK button depending on the state returned by the lineedit's {\bf QValidator}. 



Definition at line 139 of file klineeditdlg.cpp.

References QLine\-Edit::cursor\-Position(), edit, KDialog\-Base::enable\-Button(), KDialog\-Base::enable\-Button\-OK(), QString::is\-Empty(), QString::length(), text(), QLine\-Edit::text(), and QLine\-Edit::validator().

Referenced by get\-Text(), and KLine\-Edit\-Dlg().

\subsection{Member Data Documentation}
\index{KLineEditDlg@{KLine\-Edit\-Dlg}!edit@{edit}}
\index{edit@{edit}!KLineEditDlg@{KLine\-Edit\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KLine\-Edit}$\ast$ {\bf KLine\-Edit\-Dlg::edit}\hspace{0.3cm}{\tt  [protected]}}\label{classKLineEditDlg_p0}


The line edit widget. 



Definition at line 117 of file klineeditdlg.h.

Referenced by KLine\-Edit\-Dlg(), slot\-Clear(), slot\-Text\-Changed(), and text().

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