20 #ifndef QGSOWSSOURCESELECT_H 21 #define QGSOWSSOURCESELECT_H 22 #include "ui_qgsowssourceselectbase.h" 29 #include <QStringList> 30 #include <QPushButton> 31 #include <QNetworkRequest> 67 void refresh()
override;
69 void reset()
override;
73 void showError(
const QString &title,
const QString &format,
const QString &error );
76 void showStatusMessage(
const QString &message );
84 virtual QList<QgsOWSSourceSelect::SupportedFormat> providerFormats();
87 virtual QStringList selectedLayersFormats();
90 virtual QStringList selectedLayersCrses();
93 virtual QStringList selectedLayersTimes();
98 void populateConnectionList();
101 void populateFormats();
113 void populateTimes();
122 QString connectionInfo();
125 void setConnectionListPosition();
128 void addDefaultServers();
138 virtual void populateLayerList();
145 const QStringList &names,
146 QMap<int, QgsTreeWidgetItem *> &items,
147 int &layerAndStyleCount,
148 const QMap<int, int> &layerParents,
152 QString descriptionForAuthId(
const QString &authId );
159 void addWmsListRow(
const QDomElement &item,
int row );
160 void addWmsListItem(
const QDomElement &el,
int row,
int column );
162 virtual void enableLayersForCrs( QTreeWidgetItem *item );
165 QString selectedFormat();
168 QString selectedCrs();
171 QString selectedTime();
174 QNetworkRequest::CacheLoadControl selectedCacheLoadControl();
177 QTableWidgetItem *mCurrentTileset =
nullptr;
191 void mNewButton_clicked();
193 void mEditButton_clicked();
195 void mDeleteButton_clicked();
197 void mSaveButton_clicked();
199 void mLoadButton_clicked();
205 void mConnectButton_clicked();
207 void searchFinished();
210 void mChangeCRSButton_clicked();
213 virtual void mLayersTreeWidget_itemSelectionChanged();
216 void mConnectionsComboBox_activated(
int );
219 void mAddDefaultButton_clicked();
224 QString mSelectedCRS;
227 QSet<QString> mSelectedLayersCRSs;
230 QList<SupportedFormat> mProviderFormats;
233 QMap<QString, QString> mMimeLabelMap;
236 void mSearchButton_clicked();
237 void mSearchTableWidget_itemSelectionChanged();
238 void mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
239 void mLayerUpButton_clicked();
240 void mLayerDownButton_clicked();
241 virtual void updateButtons();
244 #endif // QGSOWSSOURCESELECT_H WidgetMode
Different ways a source select dialog can be used.
QMap< QString, QString > mCrsNames
Abstract base class for spatial data provider implementations.
QString mLastLayerName
layer name derived from latest layer selection (updated as long it's not edited manually) ...
QString mConnectionInfo
Connection info for selected connection.
Dialog to create connections and add layers WCS etc.
QString mService
Service name.
Class for storing the component parts of a RDBMS data source URI (e.g.
QList< QTreeWidgetItem * > mCurrentSelection
QgsDataSourceUri mUri
URI for selected connection.
QString mConnName
Name for selected connection.