17#ifndef QGSPROJECTIONSELECTIONWIDGET_H
18#define QGSPROJECTIONSELECTIONWIDGET_H
75 void setOptionVisible( CrsOption option,
bool visible );
82 bool optionVisible( CrsOption option )
const;
89 void setNotSetText(
const QString &text );
97 void setMessage(
const QString &text );
114 bool showAccuracyWarnings()
const;
123 void setShowAccuracyWarnings(
bool show );
134 void setSourceEnsemble(
const QString &ensemble );
145 QString sourceEnsemble()
const;
152 void setDialogTitle(
const QString &title );
159 QString dialogTitle()
const;
166 void setFilter(
const QList< QgsCoordinateReferenceSystem > &crses );
203 void dragEnterEvent( QDragEnterEvent *event )
override;
204 void dragLeaveEvent( QDragLeaveEvent *event )
override;
205 void dropEvent( QDropEvent *event )
override;
214 QToolButton *mButton =
nullptr;
218 bool mShowAccuracyWarnings =
false;
219 QString mSourceEnsemble;
221 QWidget *mWarningLabelContainer =
nullptr;
222 QLabel *mWarningLabel =
nullptr;
224 QPointer< QgsCrsSelectionWidget > mActivePanel;
225 int mIgnorePanelSignals = 0;
227 QString mDialogTitle;
229 QList<QgsCoordinateReferenceSystem> mFilter;
231 void addNotSetOption();
232 void addProjectCrsOption();
233 void addDefaultCrsOption();
234 void addCurrentCrsOption();
237 bool crsIsShown(
long srsid )
const;
239 int firstRecentCrsIndex()
const;
240 void updateTooltip();
242 QgsMapLayer *mapLayerFromMimeData(
const QMimeData *data )
const;
247 void comboIndexChanged(
int idx );
248 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