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

qdbttextcelleditor.h

00001 #ifndef _QDBTTEXTCELLEDITOR_H
00002 #define _QDBTTEXTCELLEDITOR_H
00003 
00004 #include <qcolor.h>
00005 #include <qlineedit.h>
00006 #include <qstring.h>
00007 
00008 #include <qdbt/qdbtglobal.h>
00009 #include <qdbt/qdbtsingleton.h>
00010 #include <qdbt/qdbteditorbase.h>
00011 
00012 class QdbtBaseTabular;
00013 
00014 class QdbtTextCellEditor : public QLineEdit, public QdbtEditorBase, public QdbtSingletonObject
00015 {
00016   Q_OBJECT
00017 
00018   QdbtTextCellEditor( const QdbtTextCellEditor & );
00019   void operator=( const QdbtTextCellEditor & );
00020 
00021 public:
00022   QdbtTextCellEditor( QdbtBaseTabular *p = 0, const char *name = 0,
00023                       bool registerEditor = TRUE );
00024   ~QdbtTextCellEditor();
00025   void setColor( const QColor &foreground, const QColor &background );
00026   virtual void setText ( 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 };
00037 
00038 #endif

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