11#ifndef CRSSELECTIONDIALOG_H
12#define CRSSELECTIONDIALOG_H
21class QDialogButtonBox;
22class QSortFilterProxyModel;
23class QStandardItemModel;
52 void onSearchTextChanged(
const QString &
text);
53 void onAuthorityFilterChanged(
int index);
54 void onTypeFilterChanged(
int index);
55 void onTreeSelectionChanged();
60 void buildTree(
const QString &authority = {},
61 const QString &typeFilter = {},
62 const QString &searchText = {});
66 static constexpr int AuthCodeRole = Qt::UserRole + 1;
67 static constexpr int IsLeafRole = Qt::UserRole + 2;
69 QLineEdit *m_searchEdit =
nullptr;
70 QComboBox *m_authorityCombo =
nullptr;
71 QComboBox *m_typeCombo =
nullptr;
72 QTreeView *m_treeView =
nullptr;
73 QTextBrowser *m_wktPreview =
nullptr;
74 QDialogButtonBox *m_buttonBox =
nullptr;
75 QStandardItemModel *m_treeModel =
nullptr;
77 QString m_selectedAuthCode;
Modal dialog for browsing and selecting a CRS from the GDAL database.
Definition crsselectiondialog.h:38
void setCurrentCRS(const SpatialReferenceSystem *current)
Definition crsselectiondialog.cpp:136
QString selectedAuthCode() const
Definition crsselectiondialog.cpp:195
SpatialReferenceSystem * selectedSRS() const
Definition crsselectiondialog.cpp:170
~CRSSelectionDialog() override
Represents a coordinate reference system backed by a GDAL OGRSpatialReference.
Definition spatialreferencesystem.h:28
int index
Position in m_quadRegions / m_quadReports.
Definition meshgenerator.cpp:153
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString text
Definition queryparser.cpp:35