• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
krestrictedline.h
1 /*
2  *
3  * $Id$
4  *
5  * Definition of KRestrictedLine
6  *
7  * Copyright (C) 1997 Michael Wiedmann, <mw@miwie.in-berlin.de>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the Free
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 #ifndef KRESTRICTEDLINE_H
26 #define KRESTRICTEDLINE_H
27 
28 #include <klineedit.h>
29 
44 class KDEUI_EXPORT KRestrictedLine : public KLineEdit
45 {
46  Q_OBJECT
47  Q_PROPERTY( TQString validChars READ validChars WRITE setValidChars )
48 
49 public:
50 
58  KRestrictedLine( TQWidget *parent=0, const char *name=0,
59  const TQString& valid = TQString::null);
60 
64  ~KRestrictedLine();
65 
70  void setValidChars(const TQString& valid);
74  TQString validChars() const;
75 
76 signals:
77 
81  void invalidChar(int);
82 
83 protected:
84  void keyPressEvent( TQKeyEvent *e );
85 
86 private:
88  QString qsValidChars;
89 protected:
90  virtual void virtual_hook( int id, void* data );
91 private:
92  class KRestrictedLinePrivate* d;
93 };
94 
95 #endif // KRESTRICTEDLINE_H
KLineEdit::keyPressEvent
virtual void keyPressEvent(TQKeyEvent *)
Re-implemented for internal reasons.
Definition: klineedit.cpp:440
KRestrictedLine
A line editor for restricted character sets.
Definition: krestrictedline.h:44
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:145

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |