.TH "KRestrictedLine" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KRestrictedLine \- 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
.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
.ti -1c
.RI "\fB~KRestrictedLine\fP ()"
.br
.ti -1c
.RI "void \fBsetValidChars\fP (const \fBQString\fP &valid)"
.br
.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
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBvalidChars\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A line editor for restricted character sets. 

The KRestrictedLine widget is a variant of \fBQLineEdit\fP which accepts only a restricted set of characters as input. 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

.PP
Definition at line 44 of file krestrictedline.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KRestrictedLine::KRestrictedLine (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, const \fBQString\fP & valid = \fCQString::null\fP)"
.PP
Constructor: This contructor takes three - optional - arguments. 
.PP
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

.PP
Definition at line 28 of file krestrictedline.cpp.
.SS "KRestrictedLine::~\fBKRestrictedLine\fP ()"
.PP
Destructs the restricted line editor. 
.PP
Definition at line 36 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. 
.PP
Definition at line 68 of file krestrictedline.cpp.
.SS "\fBQString\fP KRestrictedLine::validChars () const"
.PP
\fBReturns:\fP
.RS 4
the string of acceptable characters. 
.RE
.PP

.SS "void KRestrictedLine::invalidChar (int)\fC [signal]\fP"
.PP
Emitted when an invalid character was typed. 
.PP
Referenced by keyPressEvent().
.SS "void KRestrictedLine::keyPressEvent (\fBQKeyEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. 
.PP
API not affected.
.PP
See \fBQLineEdit::keyPressEvent()\fP. 
.PP
Reimplemented from \fBKLineEdit\fP.
.PP
Definition at line 42 of file krestrictedline.cpp.
.PP
References QString::contains(), invalidChar(), QString::isEmpty(), and QLineEdit::keyPressEvent().

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