17#ifndef QGSPROJECTIONSELECTIONWIDGET_H
18#define QGSPROJECTIONSELECTIONWIDGET_H
73 void setOptionVisible( CrsOption option,
bool visible );
80 bool optionVisible( CrsOption option )
const;
87 void setNotSetText(
const QString &text );
95 void setMessage(
const QString &text );
112 bool showAccuracyWarnings()
const;
121 void setShowAccuracyWarnings(
bool show );
132 void setSourceEnsemble(
const QString &ensemble );
143 QString sourceEnsemble()
const;
150 void setDialogTitle(
const QString &title );
157 QString dialogTitle()
const;
164 void setFilter(
const QList< QgsCoordinateReferenceSystem > &crses );
201 void dragEnterEvent( QDragEnterEvent *event )
override;
202 void dragLeaveEvent( QDragLeaveEvent *event )
override;
203 void dropEvent( QDropEvent *event )
override;
212 QToolButton *mButton =
nullptr;
216 bool mShowAccuracyWarnings =
false;
217 QString mSourceEnsemble;
219 QWidget *mWarningLabelContainer =
nullptr;
220 QLabel *mWarningLabel =
nullptr;
222 QPointer< QgsCrsSelectionWidget > mActivePanel;
223 int mIgnorePanelSignals = 0;
225 QString mDialogTitle;
227 QList<QgsCoordinateReferenceSystem> mFilter;
229 void addNotSetOption();
230 void addProjectCrsOption();
231 void addDefaultCrsOption();
232 void addCurrentCrsOption();
235 bool crsIsShown(
long srsid )
const;
237 int firstRecentCrsIndex()
const;
238 void updateTooltip();
240 QgsMapLayer *mapLayerFromMimeData(
const QMimeData *data )
const;
245 void comboIndexChanged(
int idx );
246 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