Beispiel #1
0
	def setLayer(self, vl):
		""" set the layer as the current one used by the plugin """
		# store the new layer
		LayerStyler.setEarthquakesStyle(vl)
		self.vl = vl
		QObject.connect( self.vl, SIGNAL("layerDeleted()"), self.layerDestroyed )

		# create the layer that will contain classified point
		self.createClassifiedLayer()

		# enable the filter/plot panel
		self.createDock()
		self.updateActionsState()
Beispiel #2
0
    def setLayer(self, vl):
        """ set the layer as the current one used by the plugin """
        # store the new layer
        LayerStyler.setEarthquakesStyle(vl)
        self.vl = vl
        QObject.connect(self.vl, SIGNAL("layerDeleted()"), self.layerDestroyed)

        # create the layer that will contain classified point
        self.createClassifiedLayer()

        # enable the filter/plot panel
        self.createDock()
        self.updateActionsState()