• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

krestrictedline.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * $Id: krestrictedline.h 465272 2005-09-29 09:47:40Z mueller $
00004  *
00005  * Definition of KRestrictedLine
00006  *
00007  * Copyright (C) 1997 Michael Wiedmann, <mw@miwie.in-berlin.de>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Library General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 2 of the License, or (at your option) any later version.
00013  *
00014  * This library is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * Library General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Library General Public
00020  * License along with this library; if not, write to the Free
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022  *
00023  */
00024 
00025 #ifndef KRESTRICTEDLINE_H
00026 #define KRESTRICTEDLINE_H
00027 
00028 #include <klineedit.h>
00029 
00044 class KDEUI_EXPORT KRestrictedLine : public KLineEdit
00045 {
00046   Q_OBJECT
00047   Q_PROPERTY( QString validChars READ validChars WRITE setValidChars )
00048 
00049 public:
00050 
00058   KRestrictedLine( QWidget *parent=0, const char *name=0,
00059            const QString& valid = QString::null);
00060 
00064   ~KRestrictedLine();
00065 
00070   void setValidChars(const QString& valid);
00074   QString validChars() const;
00075 
00076 signals:
00077 
00081   void  invalidChar(int);
00082 
00083 protected:
00084   void  keyPressEvent( QKeyEvent *e );
00085 
00086 private:
00088   QString   qsValidChars;
00089 protected:
00090   virtual void virtual_hook( int id, void* data );
00091 private:
00092   class KRestrictedLinePrivate* d;
00093 };
00094 
00095 #endif // KRESTRICTEDLINE_H

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal