16 #ifndef QGSEXTENTGROUPBOX_H    17 #define QGSEXTENTGROUPBOX_H    24 #include "ui_qgsextentgroupboxwidget.h"    50     Q_PROPERTY( QString titleBase READ titleBase WRITE setTitleBase )
   144     void setTitleBase( 
const QString &title );
   151     QString titleBase() 
const;
   165     QSize 
ratio()
 const { 
return mRatio; }
   172     void setOutputExtentFromOriginal();
   177     void setOutputExtentFromCurrent();
   188     void setOutputExtentFromLayer( 
const QgsMapLayer *layer );
   194     void setOutputExtentFromDrawOnCanvas();
   213     void groupBoxClicked();
   214     void layerMenuAboutToShow();
   220     void setOutputExtentFromLineEdit();
   236     QMenu *mLayerMenu = 
nullptr;
   238     QList< QAction * > mMenuActions;
   239     QPointer< const QgsMapLayer > mExtentLayer;
   240     QString mExtentLayerName;
   242     std::unique_ptr< QgsMapToolExtent > mMapToolExtent;
   243     QPointer< QgsMapTool > mMapToolPrevious = 
nullptr;
   247     void setExtentToLayerExtent( 
const QString &layerId );
   251 #endif // QGSEXTENTGROUPBOX_H QSize ratio() const
Returns the current fixed aspect ratio to be used when dragging extent onto the canvas. 
 
Extent manually entered/modified by the user. 
 
A rectangle specified with double values. 
 
Base class for all map layer types. 
 
QgsRectangle originalExtent() const
Returns the original extent set for the widget. 
 
void setRatio(QSize ratio)
Sets a fixed aspect ratio to be used when dragging extent onto the canvas. 
 
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
 
const QgsCoordinateReferenceSystem & crs
 
Map canvas is a class for displaying all GIS data types on a canvas. 
 
ExtentState
Available states for the current extent selection in the widget. 
 
Extent taken from a rectangled drawn onto the map canvas. 
 
Extent taken from a layer within the project. 
 
The QgsMapLayerModel class is a model to display layers in widgets. 
 
QgsRectangle currentExtent() const
Returns the current extent set for the widget. 
 
This class represents a coordinate reference system (CRS). 
 
QgsCoordinateReferenceSystem originalCrs() const
Returns the original coordinate reference system set for the widget. 
 
QgsExtentGroupBox::ExtentState extentState() const
Returns the currently selected state for the widget's extent. 
 
const QgsCoordinateReferenceSystem & outputCrs
 
QgsCoordinateReferenceSystem currentCrs() const
Returns the coordinate reference system for the current extent set for the widget. 
 
QgsCoordinateReferenceSystem outputCrs() const
Returns the current output CRS, used in the display. 
 
Collapsible group box for configuration of extent, typically for a save operation.