|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS, etc. More...
#include <qgsnewhttpconnection.h>

Public Types | |
| enum | ConnectionType { ConnectionWfs = 1 << 1 , ConnectionWms = 1 << 2 , ConnectionWcs = 1 << 3 , ConnectionOther = 1 << 4 } |
| Available connection types for configuring in the dialog. More... | |
| typedef QFlags< ConnectionType > | ConnectionTypes |
| enum | Flag { FlagShowTestConnection = 1 << 1 , FlagHideAuthenticationGroup = 1 << 2 , FlagShowHttpSettings = 1 << 3 } |
| Flags controlling dialog behavior. More... | |
| typedef QFlags< Flag > | Flags |
Public Slots | |
| void | accept () override |
Public Member Functions | |
| QgsNewHttpConnection (QWidget *parent=nullptr, QgsNewHttpConnection::ConnectionTypes types=ConnectionWms, const QString &serviceName="WMS", const QString &connectionName=QString(), QgsNewHttpConnection::Flags flags=QgsNewHttpConnection::Flags(), Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) | |
| Constructor for QgsNewHttpConnection. | |
| QString | name () const |
| Returns the current connection name. | |
| QString | originalConnectionName () const |
| Returns the original connection name (might be empty). | |
| QString | url () const |
| Returns the current connection url. | |
Static Public Attributes | |
| static const QgsSettingsEntryBool * | settingsIgnoreReportedLayerExtentsDefault = new QgsSettingsEntryBool( QStringLiteral( "ignore-reported-layer-extents-default" ), sTreeHttpConnectionDialog, false ) |
| static QgsSettingsTreeNode * | sTreeHttpConnectionDialog = QgsSettingsTree::sTreeConnections->createChildNode( QStringLiteral( "http-connection-dialog" ) ) |
Protected Types | |
| enum class | WfsFeaturePagingIndex { DEFAULT = 0 , ENABLED = 1 , DISABLED = 2 } |
| Index of wfsFeaturePaging. More... | |
| enum | WfsVersionIndex { WFS_VERSION_MAX = 0 , WFS_VERSION_1_0 = 1 , WFS_VERSION_1_1 = 2 , WFS_VERSION_2_0 = 3 , WFS_VERSION_API_FEATURES_1_0 = 4 } |
| Index of wfsVersionComboBox. More... | |
Protected Member Functions | |
| QgsAuthorizationSettings | authorizationSettings () const |
| Returns the authorization settings. | |
| QgsAuthSettingsWidget * | authSettingsWidget () |
| Returns the current authentication settings widget. | |
| QComboBox * | featureFormatComboBox () |
| Returns the "Feature format" combobox. | |
| QPushButton * | featureFormatDetectButton () |
| Returns the "Feature format detect" button. | |
| bool | ignoreAxisOrientation () const |
| Returns the ignore axis orientation checkbox status. | |
| bool | invertAxisOrientation () const |
| Returns the invert axis orientation checkbox status. | |
| Qgis::HttpMethod | preferredHttpMethod () const |
| Returns the selected preferred HTTP method. | |
| void | showEvent (QShowEvent *event) override |
| Adjust height of dialog to fit the content. | |
| QPushButton * | testConnectButton () |
| Returns the "test connection" button. | |
| void | updateServiceSpecificSettings () |
| Triggers a resync of the GUI widgets for the service specific settings (i.e. | |
| QUrl | urlTrimmed () const |
| Returns the url. | |
| virtual bool | validate () |
Returns true if dialog settings are valid, or false if current settings are not valid and the dialog should not be acceptable. | |
| QLineEdit * | wfsPageSizeLineEdit () |
| Returns the "WFS page size" edit. | |
| QComboBox * | wfsPagingComboBox () |
| Returns the "WFS paging" combobox. | |
| virtual QString | wfsSettingsKey (const QString &base, const QString &connectionName) const |
| Returns the QSettings key for WFS related settings for the connection. | |
| QCheckBox * | wfsUseGml2EncodingForTransactions () |
| Returns the "Use GML2 encoding for transactions" checkbox. | |
| QComboBox * | wfsVersionComboBox () |
| Returns the "WFS version" combobox. | |
| QPushButton * | wfsVersionDetectButton () |
| Returns the "WFS version detect" button. | |
| QPushButton * | wmsFormatDetectButton () |
| Returns the WMS Format Detect Button. | |
| QComboBox * | wmsPreferredFormatCombo () const |
| Returns the "WMS preferred format" combobox. | |
| virtual QString | wmsSettingsKey (const QString &base, const QString &connectionName) const |
| Returns the QSettings key for WMS related settings for the connection. | |
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS, etc.
Definition at line 37 of file qgsnewhttpconnection.h.
| typedef QFlags< ConnectionType > QgsNewHttpConnection::ConnectionTypes |
Definition at line 58 of file qgsnewhttpconnection.h.
| typedef QFlags< Flag > QgsNewHttpConnection::Flags |
Definition at line 69 of file qgsnewhttpconnection.h.
Available connection types for configuring in the dialog.
| Enumerator | |
|---|---|
| ConnectionWfs | WFS connection. |
| ConnectionWms | WMS connection. |
| ConnectionWcs | WCS connection. |
| ConnectionOther | Other connection type. |
Definition at line 51 of file qgsnewhttpconnection.h.
Flags controlling dialog behavior.
| Enumerator | |
|---|---|
| FlagShowTestConnection | Display the 'test connection' button. |
| FlagHideAuthenticationGroup | Hide the Authentication group. |
| FlagShowHttpSettings | Display the 'http' group. |
Definition at line 63 of file qgsnewhttpconnection.h.
|
strongprotected |
Index of wfsFeaturePaging.
| Enumerator | |
|---|---|
| DEFAULT | |
| ENABLED | |
| DISABLED | |
Definition at line 125 of file qgsnewhttpconnection.h.
|
protected |
Index of wfsVersionComboBox.
| Enumerator | |
|---|---|
| WFS_VERSION_MAX | |
| WFS_VERSION_1_0 | |
| WFS_VERSION_1_1 | |
| WFS_VERSION_2_0 | |
| WFS_VERSION_API_FEATURES_1_0 | |
Definition at line 114 of file qgsnewhttpconnection.h.
| QgsNewHttpConnection::QgsNewHttpConnection | ( | QWidget * | parent = nullptr, |
| QgsNewHttpConnection::ConnectionTypes | types = ConnectionWms, | ||
| const QString & | serviceName = "WMS", | ||
| const QString & | connectionName = QString(), | ||
| QgsNewHttpConnection::Flags | flags = QgsNewHttpConnection::Flags(), | ||
| Qt::WindowFlags | fl = QgsGuiUtils::ModalDialogFlags ) |
Constructor for QgsNewHttpConnection.
The types argument dictates which connection type settings should be shown in the dialog.
The flags argument allows specifying flags which control the dialog behavior and appearance.
Definition at line 39 of file qgsnewhttpconnection.cpp.
|
overrideslot |
Definition at line 463 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the authorization settings.
Definition at line 296 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the current authentication settings widget.
Definition at line 291 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "Feature format" combobox.
Definition at line 332 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "Feature format detect" button.
Definition at line 327 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the ignore axis orientation checkbox status.
Definition at line 301 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the invert axis orientation checkbox status.
Definition at line 311 of file qgsnewhttpconnection.cpp.
| QString QgsNewHttpConnection::name | ( | ) | const |
Returns the current connection name.
Definition at line 231 of file qgsnewhttpconnection.cpp.
| QString QgsNewHttpConnection::originalConnectionName | ( | ) | const |
Returns the original connection name (might be empty).
Definition at line 431 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the selected preferred HTTP method.
Definition at line 352 of file qgsnewhttpconnection.cpp.
|
overrideprotected |
Adjust height of dialog to fit the content.
Definition at line 426 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "test connection" button.
Definition at line 281 of file qgsnewhttpconnection.cpp.
|
protected |
Triggers a resync of the GUI widgets for the service specific settings (i.e.
WFS and WMS related settings).
Definition at line 367 of file qgsnewhttpconnection.cpp.
| QString QgsNewHttpConnection::url | ( | ) | const |
Returns the current connection url.
Definition at line 236 of file qgsnewhttpconnection.cpp.
|
protected |
|
protectedvirtual |
Returns true if dialog settings are valid, or false if current settings are not valid and the dialog should not be acceptable.
Definition at line 261 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS page size" edit.
Definition at line 347 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS paging" combobox.
Definition at line 337 of file qgsnewhttpconnection.cpp.
|
protectedvirtual |
Returns the QSettings key for WFS related settings for the connection.
Definition at line 357 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "Use GML2 encoding for transactions" checkbox.
Definition at line 342 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS version" combobox.
Definition at line 322 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS version detect" button.
Definition at line 317 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the WMS Format Detect Button.
Definition at line 286 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WMS preferred format" combobox.
Definition at line 306 of file qgsnewhttpconnection.cpp.
|
protectedvirtual |
Returns the QSettings key for WMS related settings for the connection.
Definition at line 362 of file qgsnewhttpconnection.cpp.
|
static |
Definition at line 45 of file qgsnewhttpconnection.h.
|
inlinestatic |
Definition at line 43 of file qgsnewhttpconnection.h.