Ejemplo n.º 1
0
    def disable(self):
        """ disables the plugin and connects to the editor """
        if self._enabled: return
        self._enabled = False

        postMapShown.disconnect(self.update_namespaces)
        onObjectSelected.disconnect(self.set_object)
        onObjectsImported.disconnect(self.update_namespaces)
Ejemplo n.º 2
0
	def disable(self):
		""" disables the plugin and connects to the editor """
		if self._enabled: return
		self._enabled = False
		
		postMapShown.disconnect(self.update_namespaces)
		onObjectSelected.disconnect(self.set_object)
		onObjectsImported.disconnect(self.update_namespaces)		
Ejemplo n.º 3
0
    def disable(self):
        """ plugin method """
        if not self._enabled: return
        self._enabled = False

        self.container.hide()
        self.reset()

        onObjectSelected.disconnect(self.update)
        onInstancesSelected.disconnect(self.update)
        preMapClosed.disconnect(self.hide)
        postMapShown.disconnect(self.update)

        self._editor._tools_menu.removeAction(self._action_show)
Ejemplo n.º 4
0
	def disable(self):
		""" plugin method """
		if not self._enabled: return
		self._enabled = False
			
		self.container.hide()
		self.reset()
		
		onObjectSelected.disconnect(self.update)
		onInstancesSelected.disconnect(self.update)
		preMapClosed.disconnect(self.hide)
		postMapShown.disconnect(self.update)
		
		self._editor._tools_menu.removeAction(self._action_show)