Example #1
0
 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)
Example #2
0
 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())
Example #3
0
 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()
Example #4
0
 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()
Example #5
0
 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()
Example #6
0
 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()