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;
59 void updateFullExtent();
62 void mapRenderingFinished();
67 void layerRepaintRequested(
bool deferred =
false );
72 void drawExtentRect();
75 void destinationCrsChanged();
78 void transformContextChanged();
81 void paintEvent( QPaintEvent *pe )
override;
84 void showEvent( QShowEvent *e )
override;
87 void resizeEvent( QResizeEvent *e )
override;
90 void mouseMoveEvent( QMouseEvent *e )
override;
93 void mousePressEvent( QMouseEvent *e )
override;
96 void mouseReleaseEvent( QMouseEvent *e )
override;
99 void updatePanningWidget( QPoint pos );
102 QgsPanningWidget *mPanningWidget =
nullptr;
125 class QgsPanningWidget :
public QWidget
132 explicit QgsPanningWidget( QWidget *parent );
134 void setPolygon(
const QPolygon &p );
136 void paintEvent( QPaintEvent *pe )
override;