diff options
Diffstat (limited to 'ksvg/test/external/SVGTestWidget.h')
-rw-r--r-- | ksvg/test/external/SVGTestWidget.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ksvg/test/external/SVGTestWidget.h b/ksvg/test/external/SVGTestWidget.h new file mode 100644 index 00000000..10ece576 --- /dev/null +++ b/ksvg/test/external/SVGTestWidget.h @@ -0,0 +1,37 @@ +#ifndef _SVGTESTWIDGET_H +#define _SVGTESTWIDGET_H + +#include <qwidget.h> +#include <qobject.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(QPaintEvent *event); + virtual void resizeEvent(QResizeEvent *event); +/* virtual void mousePressEvent(QMouseEvent *event); + virtual void mouseReleaseEvent(QMouseEvent *event); + virtual void keyPressEvent(QKeyEvent *event); + virtual void keyReleaseEvent(QKeyEvent *event); + virtual void mouseMoveEvent(QMouseEvent *event); +*/ +private: + QPoint m_panningPos; + QPoint m_oldPanningPos; + + KSVG::SVGDocument *m_doc; + KSVG::KSVGCanvas *m_canvas; +}; + +#endif + |