18 #ifndef QGSNEWHTTPCONNECTION_H 19 #define QGSNEWHTTPCONNECTION_H 22 #include "ui_qgsnewhttpconnectionbase.h" 45 ConnectionWfs = 1 << 1,
46 ConnectionWms = 1 << 2,
47 ConnectionWcs = 1 << 3,
48 ConnectionOther = 1 << 4,
58 FlagShowTestConnection = 1 << 1,
59 FlagHideAuthenticationGroup = 1 << 2,
61 Q_DECLARE_FLAGS( Flags,
Flag )
74 const QString &baseKey = "qgis/connections-wms/",
75 const QString &connectionName = QString(),
77 Qt::WindowFlags fl =
QgsGuiUtils::ModalDialogFlags );
93 void accept() override;
97 void nameChanged( const QString & );
98 void urlChanged( const QString & );
99 void updateOkButtonState();
100 void wfsVersionCurrentIndexChanged(
int index );
101 void wfsFeaturePagingStateChanged(
int state );
110 virtual
bool validate();
116 QPushButton *testConnectButton();
128 QPushButton *wfsVersionDetectButton() SIP_SKIP;
134 QComboBox *wfsVersionComboBox() SIP_SKIP;
140 QCheckBox *wfsPagingEnabledCheckBox() SIP_SKIP;
146 QLineEdit *wfsPageSizeLineEdit() SIP_SKIP;
152 QUrl urlTrimmed() const SIP_SKIP;
159 virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
166 virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
173 void updateServiceSpecificSettings();
177 ConnectionTypes mTypes = ConnectionWms;
180 QString mCredentialsBaseKey;
181 QString mOriginalConnName;
191 #endif // QGSNEWHTTPCONNECTION_H
The QgsGuiUtils namespace contains constants and helper functions used throughout the QGIS GUI...
Flag
Flags controlling dialog behavior.
ConnectionType
Available connection types for configuring in the dialog.
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS...