11 #ifndef QGSCRSSELECTOR_H
12 #define QGSCRSSELECTOR_H
14 #include <ui_qgsprojectionselectorbase.h>
17 #include <QStringList>
45 void loadUserCrsList( QSet<QString> *crsFilter = 0 );
56 void loadCrsList( QSet<QString> *crsFilter = 0 );
67 const QString sqlSafeString(
const QString theSQL );
70 QString selectedAuthId();
73 void setSelectedCrsName( QString theCRSName );
75 QString selectedName();
77 void setSelectedCrsId(
long theCRSID );
79 void setSelectedAuthId( QString authId );
81 QString selectedProj4String();
84 long selectedPostgresSrId();
101 void setOgcWmsCrsFilter( QSet<QString> crsFilter );
102 void on_lstCoordinateSystems_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
103 void on_lstRecent_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
104 void on_cbxHideDeprecated_stateChanged();
105 void on_leSearch_textChanged(
const QString & );
108 void pushProjectionToFront();
112 void showEvent( QShowEvent * theEvent );
115 void resizeEvent( QResizeEvent * theEvent );
129 QString ogcWmsCrsFilterAsSqlExpression( QSet<QString> * crsFilter );
141 void applySelection(
int column = NONE, QString value = QString::null );
148 QString getSelectedExpression( QString e );
151 void showDBMissingWarning(
const QString theFileName );
154 QTreeWidgetItem *mUserProjList;
156 QTreeWidgetItem *mGeoList;
158 QTreeWidgetItem *mProjList;
161 QString mCustomCsFile;
163 QString mSrsDatabaseFileName;
168 long getLargestCRSIDMatch( QString theSql );
171 void insertRecent(
long theCrsId );
177 bool mUserProjListDone;
181 bool mRecentProjListDone;
183 enum columns { NAME_COLUMN, AUTHID_COLUMN, QGIS_CRS_ID_COLUMN, NONE };
185 QString mSearchValue;
187 bool mPushProjectionToFront;
190 QSet<QString> mCrsFilter;
193 QStringList mRecentProjections;
196 void hideDeprecated( QTreeWidgetItem *item );
200 QStringList authorities();
203 void sridSelected( QString theSRID );
207 void searchBoxHasFocus(
bool );