Class: QgsNewHttpConnection¶
- class qgis.gui.QgsNewHttpConnection¶
Bases:
PyQt5.QtWidgets.QDialog
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS, etc.
QgsNewHttpConnection(parent: QWidget = None, types: Union[QgsNewHttpConnection.ConnectionTypes, QgsNewHttpConnection.ConnectionType] = QgsNewHttpConnection.ConnectionWms, settingsKey: str = ‘’, connectionName: str = ‘’, flags: Union[QgsNewHttpConnection.Flags, QgsNewHttpConnection.Flag] = QgsNewHttpConnection.Flags(), fl: Union[Qt.WindowFlags, Qt.WindowType] = 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.Methods
Returns the current connection name.
Returns the "test connection" button.
Triggers a resync of the GUI widgets for the service specific settings (i.e.
Returns the current connection url.
Returns
True
if dialog settings are valid, orFalse
if current settings are not valid and the dialog should not be acceptable.Returns the QSettings key for WFS related settings for the connection.
Returns the QSettings key for WMS related settings for the connection.
Attributes
- ConnectionOther = 16¶
- class ConnectionType¶
Bases:
int
- class ConnectionTypes¶
- class ConnectionTypes(Union[QgsNewHttpConnection.ConnectionTypes, QgsNewHttpConnection.ConnectionType])
- class ConnectionTypes(QgsNewHttpConnection.ConnectionTypes)
Bases:
sip.wrapper
- ConnectionWcs = 8¶
- ConnectionWfs = 2¶
- ConnectionWms = 4¶
- class Flag¶
Bases:
int
- FlagHideAuthenticationGroup = 4¶
- FlagShowHttpSettings = 8¶
- FlagShowTestConnection = 2¶
- class Flags¶
- class Flags(Union[QgsNewHttpConnection.Flags, QgsNewHttpConnection.Flag])
- class Flags(QgsNewHttpConnection.Flags)
Bases:
sip.wrapper
- WFS_VERSION_1_0 = 1¶
- WFS_VERSION_1_1 = 2¶
- WFS_VERSION_2_0 = 3¶
- WFS_VERSION_API_FEATURES_1_0 = 4¶
- WFS_VERSION_MAX = 0¶
- class WfsVersionIndex¶
Bases:
int
- accept(self)¶
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- name(self) str ¶
Returns the current connection name.
New in version 3.0.
- Return type:
str
- nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- testConnectButton(self) QPushButton ¶
Returns the “test connection” button.
New in version 3.0.
- Return type:
QPushButton
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- updateServiceSpecificSettings(self)¶
Triggers a resync of the GUI widgets for the service specific settings (i.e. WFS and WMS related settings).
New in version 3.0.
- url(self) str ¶
Returns the current connection url.
New in version 3.0.
- Return type:
str
- validate(self) bool ¶
Returns
True
if dialog settings are valid, orFalse
if current settings are not valid and the dialog should not be acceptable.New in version 3.0.
- Return type:
bool
- wfsSettingsKey(self, base: str, connectionName: str) str ¶
Returns the QSettings key for WFS related settings for the connection.
See also
New in version 3.0.
- Parameters:
base (str) –
connectionName (str) –
- Return type:
str
- wheelEvent(self, QWheelEvent)¶
- wmsSettingsKey(self, base: str, connectionName: str) str ¶
Returns the QSettings key for WMS related settings for the connection.
See also
New in version 3.0.
- Parameters:
base (str) –
connectionName (str) –
- Return type:
str