summaryrefslogtreecommitdiffstats
path: root/ksvg/test/external/SVGTestWidget.h
blob: 0e7cb4787e07be228a2201198b70666726256465 (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
38
#ifndef _SVGTESTWIDGET_H
#define _SVGTESTWIDGET_H

#include <tqwidget.h>
#include <tqobject.h>
#include "SVGDocument.h"
#include "KSVGCanvas.h"

class SVGTestWidget : public TQWidget
{
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