Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Examples  

qdbtlined.h

00001 #ifndef _QDBTLINED_H
00002 #define _QDBTLINED_H
00003 
00004 #include <qlineedit.h>
00005 #include <qcolor.h>
00006 
00007 #include <qdbt/qdbtglobal.h>
00008 #include <qdbt/qdbtsingleton.h>
00009 #include <qdbt/qdbteditorbase.h>
00010 
00011 class QdbtBaseTabular;
00012 class QdbtValidator;
00013 
00014 class QdbtLineEdit : public QLineEdit, public QdbtEditorBase, public QdbtSingletonObject
00015 {
00016   Q_OBJECT
00017 
00018   QdbtLineEdit( const QdbtLineEdit & );
00019   void operator=( const QdbtLineEdit & );
00020 
00021 public:
00022   QdbtLineEdit( QdbtBaseTabular *p = 0, const char *name = 0 );
00023   virtual ~QdbtLineEdit();
00024   void setColor( const QColor &foreground, const QColor &background );
00025   virtual void setText( const QString & );
00026   void setPattern( const QString & );
00027   
00028 protected:
00029   virtual void paintEvent( QPaintEvent * );
00030   virtual void keyPressEvent( QKeyEvent * );
00031   virtual void mousePressEvent ( QMouseEvent * );
00032   
00033 private:
00034   QString          originalText;
00035   QColor           fg, bg;
00036   QdbtValidator   *_validator;
00037 };
00038 
00039 #endif

Generated on Mon Apr 22 12:21:53 2002 for QdbtTabular by doxygen1.2.15-20020421