kstars
mapcanvas.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef MAPCANVAS_H
00022 #define MAPCANVAS_H
00023
00024 #include <qwidget.h>
00025 #include <qpoint.h>
00026
00037 class QPixmap;
00038
00039 class MapCanvas : public QWidget {
00040 Q_OBJECT
00041 public:
00046 MapCanvas(QWidget *parent=0, const char *name=0);
00049 ~MapCanvas();
00050
00051 public slots:
00061 virtual void setGeometry( int x, int y, int w, int h );
00062
00071 virtual void setGeometry( const QRect &r );
00072
00073 protected:
00080 virtual void paintEvent( QPaintEvent *e );
00081
00086 virtual void mousePressEvent( QMouseEvent *e );
00087
00088 private:
00089 QPixmap *Canvas, *bgImage;
00090 QString BGColor;
00091 QPoint origin;
00092 };
00093
00094 #endif