QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
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... | |
enum | Flag { FlagShowTestConnection = 1 << 1, FlagHideAuthenticationGroup = 1 << 2 } |
Flags controlling dialog behavior. More... | |
Public Slots | |
void | accept () override |
Public Member Functions | |
QgsNewHttpConnection (QWidget *parent=nullptr, QgsNewHttpConnection::ConnectionTypes types=ConnectionWms, const QString &baseKey="qgis/connections-wms/", const QString &connectionName=QString(), QgsNewHttpConnection::Flags flags=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) | |
Constructor for QgsNewHttpConnection. More... | |
QString | name () const |
Returns the current connection name. More... | |
QString | url () const |
Returns the current connection url. More... | |
Protected Member Functions | |
QgsAuthSettingsWidget * | authSettingsWidget () |
Returns the current authentication settings widget. More... | |
QPushButton * | testConnectButton () |
Returns the "test connection" button. More... | |
void | updateServiceSpecificSettings () |
Triggers a resync of the GUI widgets for the service specific settings (i.e. More... | |
QUrl | urlTrimmed () const |
Returns the url. More... | |
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. More... | |
QLineEdit * | wfsPageSizeLineEdit () |
Returns the "WFS page size" edit. More... | |
QCheckBox * | wfsPagingEnabledCheckBox () |
Returns the "WFS paging enabled" checkbox. More... | |
virtual QString | wfsSettingsKey (const QString &base, const QString &connectionName) const |
Returns the QSettings key for WFS related settings for the connection. More... | |
QComboBox * | wfsVersionComboBox () |
Returns the "WFS version" combobox. More... | |
QPushButton * | wfsVersionDetectButton () |
Returns the "WFS version detect" button. More... | |
virtual QString | wmsSettingsKey (const QString &base, const QString &connectionName) const |
Returns the QSettings key for WMS related settings for the connection. More... | |
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS, etc.
Definition at line 33 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 43 of file qgsnewhttpconnection.h.
Flags controlling dialog behavior.
Enumerator | |
---|---|
FlagShowTestConnection |
Display the 'test connection' button. |
FlagHideAuthenticationGroup |
Hide the Authentication group. |
Definition at line 56 of file qgsnewhttpconnection.h.
QgsNewHttpConnection::QgsNewHttpConnection | ( | QWidget * | parent = nullptr , |
QgsNewHttpConnection::ConnectionTypes | types = ConnectionWms , |
||
const QString & | baseKey = "qgis/connections-wms/" , |
||
const QString & | connectionName = QString() , |
||
QgsNewHttpConnection::Flags | flags = nullptr , |
||
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 29 of file qgsnewhttpconnection.cpp.
|
overrideslot |
Definition at line 362 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the current authentication settings widget.
Definition at line 239 of file qgsnewhttpconnection.cpp.
QString QgsNewHttpConnection::name | ( | ) | const |
Returns the current connection name.
Definition at line 177 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "test connection" button.
Definition at line 234 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 274 of file qgsnewhttpconnection.cpp.
QString QgsNewHttpConnection::url | ( | ) | const |
Returns the current connection url.
Definition at line 182 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 206 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS page size" edit.
Definition at line 259 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS paging enabled" checkbox.
Definition at line 254 of file qgsnewhttpconnection.cpp.
|
protectedvirtual |
Returns the QSettings key for WFS related settings for the connection.
Definition at line 264 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS version" combobox.
Definition at line 249 of file qgsnewhttpconnection.cpp.
|
protected |
Returns the "WFS version detect" button.
Definition at line 244 of file qgsnewhttpconnection.cpp.
|
protectedvirtual |
Returns the QSettings key for WMS related settings for the connection.
Definition at line 269 of file qgsnewhttpconnection.cpp.