8 , mTitleBase(
tr(
"Extent" ) )
9 , mExtentState( OriginalExtent )
91 msg =
tr(
"map view" );
94 msg =
tr(
"user defined" );
141 return QgsRectangle( mXMinLineEdit->text().toDouble(), mYMinLineEdit->text().toDouble(),
142 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)
void clicked(bool checked)
double yMaximum() const
Get the y maximum value (top side of rectangle)
QgsCoordinateReferenceSystem mOutputCrs
QString titleBase() const
Set base part of title of the group box (will be appended with extent state)
QgsCoordinateReferenceSystem mOriginalCrs
QString tr(const char *sourceText, const char *disambiguation, int n)
void setOutputExtent(const QgsRectangle &r, const QgsCoordinateReferenceSystem &srcCrs, ExtentState state)
const QgsCoordinateReferenceSystem & currentCrs() const
QString mTitleBase
Base part of the title used for the extent.
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...
QgsExtentGroupBox(QWidget *parent=nullptr)
void setTitleBase(const QString &title)
Set base part of title of the group box (will be appended with extent state)
QgsRectangle currentExtent() const
void setTitle(const QString &title)
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) ...
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QgsRectangle mOriginalExtent
void setOriginalExtent(const QgsRectangle &originalExtent, const QgsCoordinateReferenceSystem &originalCrs)
Setup original extent - should be called as part of initialization.
QgsCoordinateReferenceSystem mCurrentCrs
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
double xMinimum() const
Get the x minimum value (left side of rectangle)