def on_editConnectionBtn_clicked(self): conn = self.connectionCombo.currentText() dlg = QgsNewHttpConnection(self, QgsNewHttpConnection.ConnectionWfs, "qgis/connections-wfs/", conn) dlg.setWindowTitle("Edit a WFS connection") if dlg.exec_() == QDialog.Accepted: self.refresh_connections() self.connectionCombo.setCurrentText(conn)
def on_newConnectionBtn_clicked(self): dlg = QgsNewHttpConnection(self, QgsNewHttpConnection.ConnectionWfs, "qgis/connections-wfs/") if dlg.exec_() == QDialog.Accepted: self.refresh_connections() self.connectionCombo.setCurrentText(dlg.name())
def on_btnEdit_clicked(self): nc = QgsNewHttpConnection (self, "/Qgis/connections-sos/", self.cmbConnections.currentText()) nc.setWindowTitle(self.tr("Modify SOS connection")) if nc.exec_(): self.populateConnectionList()
def on_btnNew_clicked(self): nc = QgsNewHttpConnection (self, "/Qgis/connections-sos/") nc.setWindowTitle(self.tr("Create a new SOS connection")) if nc.exec_(): self.populateConnectionList()
def on_btnEdit_clicked(self): nc = QgsNewHttpConnection(self, "/Qgis/connections-sos/", self.cmbConnections.currentText()) nc.setWindowTitle(self.tr("Modify SOS connection")) if nc.exec_(): self.populateConnectionList()
def on_btnNew_clicked(self): nc = QgsNewHttpConnection(self, "/Qgis/connections-sos/") nc.setWindowTitle(self.tr("Create a new SOS connection")) if nc.exec_(): self.populateConnectionList()