Main Page   Class Hierarchy   Compound List   File List   Compound Members  

teletextwidget.h

00001 // -*- c++ -*-
00002 
00003 #ifndef TELETEXTWIDGET_H
00004 #define TELETEXTWIDGET_H
00005 
00006 #include <qframe.h>
00007 #include <qvbox.h>
00008 
00009 #include "teletextsource.h"
00010 
00011 class QLabel;
00012 class QTextBrowser;
00013 
00019 class TeletextWidget : public QVBox
00020 {
00021     Q_OBJECT
00022 
00023 public:
00024     TeletextWidget( QWidget *parent=0, const char *name=0, WFlags = 0 );
00025     virtual ~TeletextWidget();
00026 
00027     TeletextSource *source() const { return src; }
00028     QTextBrowser *pageView() const { return view; }
00029 
00030     QString parseLine( const char *line );
00031     QString parseHeader( const char *hdr );
00032     QString createLinks( const QString &line );
00033 
00034 public slots:
00035     void setPage( TeletextPage *page );
00036     void setHeader( const char *hdr );
00037 
00038     void updateGeometry();
00039     void updateHeader();
00040 
00041 protected:
00042     void resizeEvent( QResizeEvent * );
00043 
00044 private:
00045     TeletextSource *src;
00046     QLabel *header;
00047     QTextBrowser *view;
00048     QCString hdr;
00049 };
00050 
00051 #endif // TELETEXTWIDGET_H
00052 

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001