blob: 676f32699e646de1a86e2b761f4fcd4e2f575ccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef _SVGTESTWIDGET_H
#define _SVGTESTWIDGET_H
#include <tqwidget.h>
#include <tqobject.h>
#include "SVGDocument.h"
#include "KSVGCanvas.h"
class SVGTestWidget : public QWidget
{
Q_OBJECT
public:
SVGTestWidget(const KURL &url);
~SVGTestWidget();
private slots:
void slotRenderingFinished();
protected:
virtual void paintEvent(TQPaintEvent *event);
virtual void resizeEvent(TQResizeEvent *event);
/* virtual void mousePressEvent(TQMouseEvent *event);
virtual void mouseReleaseEvent(TQMouseEvent *event);
virtual void keyPressEvent(TQKeyEvent *event);
virtual void keyReleaseEvent(TQKeyEvent *event);
virtual void mouseMoveEvent(TQMouseEvent *event);
*/
private:
TQPoint m_panningPos;
TQPoint m_oldPanningPos;
KSVG::SVGDocument *m_doc;
KSVG::KSVGCanvas *m_canvas;
};
#endif
|