19 #ifndef QGSMAPOVERVIEWCANVAS_H
20 #define QGSMAPOVERVIEWCANVAS_H
27 class QgsPanningWidget;
49 void setBackgroundColor(
const QColor &color );
52 void setLayers(
const QList<QgsMapLayer *> &layers );
55 QList<QgsMapLayer *> layers()
const;
63 void updateFullExtent();
66 void mapRenderingFinished();
71 void layerRepaintRequested(
bool deferred =
false );
76 void drawExtentRect();
79 void destinationCrsChanged();
82 void transformContextChanged();
85 void paintEvent( QPaintEvent *pe )
override;
88 void showEvent( QShowEvent *e )
override;
91 void resizeEvent( QResizeEvent *e )
override;
94 void mouseMoveEvent( QMouseEvent *e )
override;
97 void mousePressEvent( QMouseEvent *e )
override;
100 void mouseReleaseEvent( QMouseEvent *e )
override;
103 void wheelEvent( QWheelEvent *e )
override;
106 void updatePanningWidget( QPoint pos );
109 QgsPanningWidget *mPanningWidget =
nullptr;
132 class QgsPanningWidget :
public QWidget
139 explicit QgsPanningWidget( QWidget *parent );
141 void setPolygon(
const QPolygon &p );
143 void paintEvent( QPaintEvent *pe )
override;