11 mXMinLineEdit->setValidator(
new QDoubleValidator(
this ) );
12 mXMaxLineEdit->setValidator(
new QDoubleValidator(
this ) );
13 mYMinLineEdit->setValidator(
new QDoubleValidator(
this ) );
14 mYMaxLineEdit->setValidator(
new QDoubleValidator(
this ) );
85 msg =
tr(
"map view" );
88 msg =
tr(
"user defined" );
93 msg =
tr(
"Extent (current: %1)" ).arg( msg );
119 return QgsRectangle( mXMinLineEdit->text().toDouble(), mYMinLineEdit->text().toDouble(),
120 mXMaxLineEdit->text().toDouble(), mYMaxLineEdit->text().toDouble() );
extent manually entered/modified by the user
A rectangle specified with double values.
static QString printValue(double value)
Print double value with all necessary significant digits.
void setOutputExtentFromCurrent()
set output extent to be the same as current extent (may be transformed to output CRS) ...
void setOutputExtentFromLineEdit()
void extentChanged(const QgsRectangle &r)
emitted when extent is changed
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
void setOutputExtentFromUser(const QgsRectangle &extent, const QgsCoordinateReferenceSystem &crs)
set output extent to custom extent (may be transformed to outut CRS)
double yMaximum() const
Get the y maximum value (top side of rectangle)
QgsExtentGroupBox(QWidget *parent=0)
QgsCoordinateReferenceSystem mOutputCrs
QgsCoordinateReferenceSystem mOriginalCrs
void setOutputExtent(const QgsRectangle &r, const QgsCoordinateReferenceSystem &srcCrs, ExtentState state)
const QgsCoordinateReferenceSystem & currentCrs() const
QgsRectangle mCurrentExtent
QgsRectangle originalExtent() const
double yMinimum() const
Get the y minimum value (bottom side of rectangle)
double xMaximum() const
Get the x maximum value (right side of rectangle)
QgsRectangle outputExtent() const
Get the resulting extent - in output CRS coordinates.
void setOutputCrs(const QgsCoordinateReferenceSystem &outputCrs)
Set the output CRS - may need to be used for transformation from original/current extent...
void setCurrentExtent(const QgsRectangle ¤tExtent, const QgsCoordinateReferenceSystem ¤tCrs)
Setup current extent - should be called as part of initialization (or whenever current extent changes...
QgsRectangle currentExtent() const
const QgsCoordinateReferenceSystem & originalCrs() const
Class for storing a coordinate reference system (CRS)
void setOutputExtentFromOriginal()
set output extent to be the same as original extent (may be transformed to output CRS) ...
QgsRectangle mOriginalExtent
void setOriginalExtent(const QgsRectangle &originalExtent, const QgsCoordinateReferenceSystem &originalCrs)
Setup original extent - should be called as part of initialization.
QgsCoordinateReferenceSystem mCurrentCrs
double xMinimum() const
Get the x minimum value (left side of rectangle)