16#ifndef QGSEXTENTGROUPBOX_H
17#define QGSEXTENTGROUPBOX_H
49 Q_PROPERTY( QString titleBase READ titleBase WRITE setTitleBase )
142 void setTitleBase(
const QString &title );
148 QString titleBase()
const;
155 void setMapCanvas(
QgsMapCanvas *canvas,
bool drawOnCanvasOption =
true );
168 void setOutputExtentFromOriginal();
173 void setOutputExtentFromCurrent();
183 void setOutputExtentFromLayer(
const QgsMapLayer *layer );
188 void setOutputExtentFromDrawOnCanvas();
195 void setRatio( QSize ratio );
206 void groupBoxClicked();
208 void widgetExtentChanged();
210 void validationChanged(
bool valid );
A groupbox that collapses/expands when toggled and can save its collapsed and checked states.
This class represents a coordinate reference system (CRS).
Collapsible group box for configuration of extent, typically for a save operation.
ExtentState
Available states for the current extent selection in the widget.
@ UserExtent
Extent manually entered/modified by the user.
@ CurrentExtent
Map canvas extent.
@ ProjectLayerExtent
Extent taken from a layer within the project.
@ DrawOnCanvas
Extent taken from a rectangled drawn onto the map canvas.
@ OriginalExtent
Layer's extent.
void extentChanged(const QgsRectangle &r)
Emitted when the widget's extent is changed.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A rectangle specified with double values.
const QgsCoordinateReferenceSystem & outputCrs
const QgsCoordinateReferenceSystem & crs