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 );
241 RoleDeprecated = Qt::UserRole,
246 QTreeWidgetItem *mUserProjList =
nullptr;
248 QTreeWidgetItem *mGeoList =
nullptr;
250 QTreeWidgetItem *mProjList =
nullptr;
253 QString mCustomCsFile;
255 QString mSrsDatabaseFileName;
260 long getLargestCrsIdMatch(
const QString &sql );
263 void insertRecent(
long crsId );
266 bool mProjListDone =
false;
269 bool mUserProjListDone =
false;
273 bool mRecentProjListDone =
false;
275 enum Columns { NameColumn, AuthidColumn, QgisCrsIdColumn, None };
276 int mSearchColumn = QgsProjectionSelectionTreeWidget::None;
277 QString mSearchValue;
279 bool mPushProjectionToFront =
false;
282 QSet<QString> mCrsFilter;
285 QStringList mRecentProjections;
288 void hideDeprecated( QTreeWidgetItem *item );
294 bool mShowMap =
true;
296 QList<QgsMapLayer *> mLayers;
303 void updateBoundsPreview();
304 QStringList authorities();
307 void lstCoordinateSystems_itemDoubleClicked( QTreeWidgetItem *current,
int column );
308 void lstRecent_itemDoubleClicked( QTreeWidgetItem *current,
int column );
309 void lstCoordinateSystems_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
310 void lstRecent_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
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).