Exemplo n.º 1
0
    def __init__(self):

        self.infobar = None

        self.forceBindInfoBarTimer = eTimer()
        try:
            self.forceBindInfoBarTimer_conn = self.forceBindInfoBarTimer.timeout.connect(
                self.bindInfoBar)
        except:
            self.forceBindInfoBarTimer.callback.append(self.bindInfoBar)

        # Bind InfoBarEvents
        #self.bindInfoBar()
        #self.onLayoutFinish.append(self.bindInfoBar)
        # Workaround
        # The Plugin starts before the InfoBar is instantiated
        # Check every second if the InfoBar instance exists and try to bind our functions
        # Is there an alternative solution?
        if config.infobartunerstate.show_infobar.value:
            self.forceBindInfoBarTimer.start(1000, False)

        if config.infobartunerstate.show_overwrite.value:
            overwriteInfoBar()

        # Handle extension menu integration
        if config.infobartunerstate.extensions_menu_show.value or config.infobartunerstate.extensions_menu_setup.value:
            # Add to extension menu
            addExtension()
        else:
            # Remove from extension menu
            removeExtension()
Exemplo n.º 2
0
	def __init__(self):
		
		self.infobar = None
		
		self.forceBindInfoBarTimer = eTimer()
		try:
			self.forceBindInfoBarTimer_conn = self.forceBindInfoBarTimer.timeout.connect(self.bindInfoBar)
		except:
			self.forceBindInfoBarTimer.callback.append(self.bindInfoBar)
		
		# Bind InfoBarEvents
		#self.bindInfoBar()
		#self.onLayoutFinish.append(self.bindInfoBar)
		# Workaround
		# The Plugin starts before the InfoBar is instantiated
		# Check every second if the InfoBar instance exists and try to bind our functions
		# Is there an alternative solution?
		if config.infobartunerstate.show_infobar.value:
			self.forceBindInfoBarTimer.start(1000, False)
		
		if config.infobartunerstate.show_overwrite.value:
			overwriteInfoBar()
		
		# Handle extension menu integration
		if config.infobartunerstate.extensions_menu_show.value or config.infobartunerstate.extensions_menu_setup.value:
			# Add to extension menu
			addExtension()
		else:
			# Remove from extension menu
			removeExtension()
Exemplo n.º 3
0
    def __init__(self):

        overwriteInfoBar()

        # Handle extension menu integration
        if config.infobartunerstate.extensions_menu_show.value or config.infobartunerstate.extensions_menu_setup.value:
            # Add to extension menu
            addExtension()
        else:
            # Remove from extension menu
            removeExtension()
	def __init__(self):
		
		overwriteInfoBar()
		
		# Handle extension menu integration
		if config.infobartunerstate.extensions_menu_show.value or config.infobartunerstate.extensions_menu_setup.value:
			# Add to extension menu
			addExtension()
		else:
			# Remove from extension menu
			removeExtension()
Exemplo n.º 5
0
	def close(self):
		print "IBTS close"
		recoverInfoBar()
		removeExtension()
		self.unbindInfoBar()
		self.removeEvents()
		self.tunerHide()
		for id, win in self.entries.items():
			win.hide()
			self.session.deleteDialog(win)
			del self.entries[id]
		from Plugins.Extensions.InfoBarTunerState.plugin import gInfoBarTunerState
		global gInfoBarTunerState
		gInfoBarTunerState = None
Exemplo n.º 6
0
 def undoHandler(self):
     recoverInfoBar()
     removeExtension()
	def undoHandler(self):
		recoverInfoBar()
		removeExtension()