2 |
#define CLIENTSIDERENDER_H |
#define CLIENTSIDERENDER_H |
3 |
|
|
4 |
#include <QWidget> |
#include <QWidget> |
5 |
|
#include <QMap> |
6 |
|
|
7 |
|
|
8 |
class QGraphicsTextItem; |
class QGraphicsTextItem; |
9 |
class QGraphicsView; |
class QGraphicsView; |
10 |
class QGraphicsScene; |
class QGraphicsScene; |
11 |
|
class QHttp; |
12 |
|
|
13 |
|
|
14 |
class ClientSideRender : public QWidget |
class ClientSideRender : public QWidget |
15 |
{ |
{ |
16 |
|
Q_OBJECT |
17 |
public: |
public: |
18 |
ClientSideRender(QWidget* parent); |
ClientSideRender(QWidget* parent); |
19 |
|
|
20 |
|
void timerTick(); |
21 |
|
void draw(); |
22 |
|
|
23 |
|
|
24 |
protected: |
protected: |
25 |
virtual void resizeEvent ( QResizeEvent * event ); |
virtual void resizeEvent ( QResizeEvent * event ); |
26 |
private: |
private: |
27 |
QGraphicsTextItem *text; |
QGraphicsTextItem *text; |
28 |
QGraphicsView* view ; |
QGraphicsView* view ; |
29 |
QGraphicsScene* scene; |
QGraphicsScene* scene; |
30 |
|
QHttp* http; |
31 |
|
QMap<QString, QPixmap> map; |
32 |
|
QString requestedUrl; |
33 |
}; |
}; |
34 |
|
|
35 |
#endif // CLIENTSIDERENDER_H |
#endif // CLIENTSIDERENDER_H |