00001 #ifndef __GTEXTVIEW__ 00002 #define __GTEXTVIEW__ 00003 00004 #include <qwidget.h> 00005 #include <qpixmap.h> 00006 #include <qtimer.h> 00007 00008 class WASkin; 00009 00010 class GTextView : public QWidget 00011 { 00012 Q_OBJECT 00013 friend class WASkin; 00014 public: 00015 GTextView(QWidget * parent = 0); 00016 00017 virtual void setText(QString); 00018 00019 protected: 00020 virtual void paintEvent(QPaintEvent *); 00021 00022 private slots: 00023 void update(void); 00024 00025 private: 00026 QString text; 00027 QString visibleText; 00028 QPixmap pmChar[93]; 00029 QTimer timer; 00030 unsigned ticks; 00031 }; 00032 00033 #endif