summaryrefslogtreecommitdiffstats
path: root/tdeprint/tests/drawdemo.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/tests/drawdemo.h')
-rw-r--r--tdeprint/tests/drawdemo.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/tdeprint/tests/drawdemo.h b/tdeprint/tests/drawdemo.h
new file mode 100644
index 000000000..963da64db
--- /dev/null
+++ b/tdeprint/tests/drawdemo.h
@@ -0,0 +1,30 @@
+#ifndef DRAWDEMO_H
+#define DRAWDEMO_H
+
+//
+// DrawView has installable draw routines, just add a function pointer
+// and a text in the table above.
+//
+
+class DrawView : public TQWidget
+{
+ Q_OBJECT
+public:
+ DrawView();
+ ~DrawView();
+public slots:
+ void updateIt( int );
+ void printIt();
+protected:
+ void drawIt( TQPainter * );
+ void paintEvent( TQPaintEvent * );
+ void resizeEvent( TQResizeEvent * );
+private:
+ KPrinter *printer;
+ TQButtonGroup *bgroup;
+ QPushButton *print;
+ int drawindex;
+ int maxindex;
+};
+
+#endif