Exemple #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)
Exemple #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())
 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()
Exemple #5
0
# coding: utf-8
from qgis.gui import QgsNewHttpConnection

new_http_connection = QgsNewHttpConnection()

new_http_connection.show()
Exemple #6
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()
Exemple #7
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()