.TH "KRestrictedLine" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KRestrictedLine \- The KRestrictedLine widget is a variant of \fBQLineEdit\fP which accepts only a restricted set of characters as input. A line editor for restricted character sets.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <krestrictedline.h>\fP
.PP
Inherits \fBKLineEdit\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBinvalidChar\fP (int)"
.br
.RI "\fIEmitted when an invalid character was typed. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKRestrictedLine\fP (\fBQWidget\fP *parent=0, const  char *name=0, const  \fBQString\fP &valid=QString::null)"
.br
.RI "\fIConstructor: This contructor takes three - optional - arguments. \fP"
.ti -1c
.RI "\fB~KRestrictedLine\fP ()"
.br
.RI "\fIDestructs the restricted line editor. \fP"
.ti -1c
.RI "void \fBsetValidChars\fP (const  \fBQString\fP &valid)"
.br
.RI "\fIAll characters in the string valid are treated as acceptable characters. \fP"
.ti -1c
.RI "\fBQString\fP \fBvalidChars\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *e)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The KRestrictedLine widget is a variant of \fBQLineEdit\fP which accepts only a restricted set of characters as input. A line editor for restricted character sets. 

All other characters will be discarded and the signal \fBinvalidChar\fP() will be emitted for each of them.
.PP
Valid characters can be passed as a \fBQString\fP to the constructor or set afterwards via \fBsetValidChars\fP(). The default key bindings of \fBQLineEdit\fP are still in effect.
.PP
\fBAuthor:\fP
.RS 4
Michael Wiedmann <mw@miwie.in-berlin.de> 
.RE
.PP
\fBVersion:\fP
.RS 4
0.0.1 
.RE
.PP

.PP
Definition at line 44 of file krestrictedline.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KRestrictedLine::KRestrictedLine (\fBQWidget\fP * parent = 0, const char * name = 0, const \fBQString\fP & valid = QString::null)"
.PP
Constructor: This contructor takes three - optional - arguments. The first two parameters are simply passed on to \fBQLineEdit\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP pointer to the parent widget 
.br
\fIname\fP pointer to the name of this widget 
.br
\fIvalid\fP pointer to set of valid characters 
.RE
.PP
Definition at line 29 of file krestrictedline.cpp.
.PP
References KStdAccel::name().
.SS "KRestrictedLine::~\fBKRestrictedLine\fP ()"
.PP
Destructs the restricted line editor. Definition at line 37 of file krestrictedline.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KRestrictedLine::setValidChars (const \fBQString\fP & valid)"
.PP
All characters in the string valid are treated as acceptable characters. Definition at line 69 of file krestrictedline.cpp.
.SS "\fBQString\fP KRestrictedLine::validChars () const"
.PP
\fBReturns:\fP
.RS 4
the string of acceptable characters. 
.RE
.PP
Definition at line 74 of file krestrictedline.cpp.
.SS "void KRestrictedLine::invalidChar (int)\fC [signal]\fP"
.PP
Emitted when an invalid character was typed. Referenced by keyPressEvent().
.SS "void KRestrictedLine::keyPressEvent (\fBQKeyEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQLineEdit::keyPressEvent\fP(). Reimplemented from \fBKLineEdit\fP.
.PP
Definition at line 43 of file krestrictedline.cpp.
.PP
References QKeyEvent::ascii(), QString::contains(), invalidChar(), QString::isEmpty(), QKeyEvent::key(), and QLineEdit::keyPressEvent().

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