You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
572 B
31 lines
572 B
15 years ago
|
#ifndef DRAWDEMO_H
|
||
|
#define DRAWDEMO_H
|
||
|
|
||
|
//
|
||
|
// DrawView has installable draw routines, just add a function pointer
|
||
|
// and a text in the table above.
|
||
|
//
|
||
|
|
||
14 years ago
|
class DrawView : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
DrawView();
|
||
|
~DrawView();
|
||
|
public slots:
|
||
|
void updateIt( int );
|
||
|
void printIt();
|
||
|
protected:
|
||
14 years ago
|
void drawIt( TQPainter * );
|
||
|
void paintEvent( TQPaintEvent * );
|
||
|
void resizeEvent( TQResizeEvent * );
|
||
15 years ago
|
private:
|
||
|
KPrinter *printer;
|
||
14 years ago
|
TQButtonGroup *bgroup;
|
||
15 years ago
|
QPushButton *print;
|
||
|
int drawindex;
|
||
|
int maxindex;
|
||
|
};
|
||
|
|
||
|
#endif
|