17#ifndef QGSPROJECTIONSELECTIONWIDGET_H
18#define QGSPROJECTIONSELECTIONWIDGET_H
74 void setOptionVisible( CrsOption option,
bool visible );
81 bool optionVisible( CrsOption option )
const;
88 void setNotSetText(
const QString &text );
96 void setMessage(
const QString &text );
113 bool showAccuracyWarnings()
const;
122 void setShowAccuracyWarnings(
bool show );
133 void setSourceEnsemble(
const QString &ensemble );
144 QString sourceEnsemble()
const;
151 void setDialogTitle(
const QString &title );
158 QString dialogTitle()
const;
165 void setFilter(
const QList< QgsCoordinateReferenceSystem > &crses );
202 void dragEnterEvent( QDragEnterEvent *event )
override;
203 void dragLeaveEvent( QDragLeaveEvent *event )
override;
204 void dropEvent( QDropEvent *event )
override;
213 QToolButton *mButton =
nullptr;
217 bool mShowAccuracyWarnings =
false;
218 QString mSourceEnsemble;
220 QWidget *mWarningLabelContainer =
nullptr;
221 QLabel *mWarningLabel =
nullptr;
223 QPointer< QgsCrsSelectionWidget > mActivePanel;
224 int mIgnorePanelSignals = 0;
226 QString mDialogTitle;
228 QList<QgsCoordinateReferenceSystem> mFilter;
230 void addNotSetOption();
231 void addProjectCrsOption();
232 void addDefaultCrsOption();
233 void addCurrentCrsOption();
236 bool crsIsShown(
long srsid )
const;
238 int firstRecentCrsIndex()
const;
239 void updateTooltip();
241 QgsMapLayer *mapLayerFromMimeData(
const QMimeData *data )
const;
246 void comboIndexChanged(
int idx );
247 void updateWarning();
This class represents a coordinate reference system (CRS).
A QComboBox subclass with the ability to "highlight" the edges of the widget.
Base class for all map layer types.
const QgsCoordinateReferenceSystem & crs