11 #ifndef QGSCRSSELECTOR_H 12 #define QGSCRSSELECTOR_H 14 #include "ui_qgsprojectionselectorbase.h" 17 #include <QStringList> 67 void setShowNoProjection(
bool show );
74 void setShowBoundsMap(
bool show );
82 bool showNoProjection()
const;
89 bool showBoundsMap()
const;
97 bool hasValidSelection()
const;
134 void setOgcWmsCrsFilter(
const QSet<QString> &crsFilter );
139 void pushProjectionToFront();
158 void projectionDoubleClicked();
162 void showEvent( QShowEvent *event )
override;
165 void resizeEvent( QResizeEvent *event )
override;
176 void loadUserCrsList( QSet<QString> *crsFilter =
nullptr );
185 void loadCrsList( QSet<QString> *crsFilter =
nullptr );
195 QString sqlSafeString(
const QString &
string )
const;
208 QString ogcWmsCrsFilterAsSqlExpression( QSet<QString> *crsFilter );
220 void applySelection(
int column = QgsProjectionSelectionTreeWidget::None, QString value = QString() );
227 QString getSelectedExpression(
const QString &e )
const;
229 QString selectedName();
231 QString selectedProj4String();
234 long selectedCrsId();
237 void showDBMissingWarning(
const QString &fileName );
240 QTreeWidgetItem *mUserProjList =
nullptr;
242 QTreeWidgetItem *mGeoList =
nullptr;
244 QTreeWidgetItem *mProjList =
nullptr;
247 QString mCustomCsFile;
249 QString mSrsDatabaseFileName;
254 long getLargestCrsIdMatch(
const QString &sql );
257 void insertRecent(
long crsId );
260 bool mProjListDone =
false;
263 bool mUserProjListDone =
false;
267 bool mRecentProjListDone =
false;
269 enum Columns { NameColumn, AuthidColumn, QgisCrsIdColumn, None };
270 int mSearchColumn = QgsProjectionSelectionTreeWidget::None;
271 QString mSearchValue;
273 bool mPushProjectionToFront =
false;
276 QSet<QString> mCrsFilter;
279 QStringList mRecentProjections;
282 void hideDeprecated( QTreeWidgetItem *item );
288 bool mShowMap =
true;
290 QList<QgsMapLayer *> mLayers;
297 void updateBoundsPreview();
298 QStringList authorities();
301 void lstCoordinateSystems_itemDoubleClicked( QTreeWidgetItem *current,
int column );
302 void lstRecent_itemDoubleClicked( QTreeWidgetItem *current,
int column );
303 void lstCoordinateSystems_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
304 void lstRecent_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
305 void cbxHideDeprecated_stateChanged();
306 void leSearch_textChanged(
const QString & );
A rectangle specified with double values.
A class for drawing transient features (e.g.
A class for marking vertices of features using e.g.
This class represents a coordinate reference system (CRS).