def __init__(self, app, editor):
		AEComponent.__init__(self, app, editor)
		UserDataManager.__init__(self)
		self._recursing = False
		self._userdata_load_started = False
		self._current_profile = None
		self._current_menu = None
		self.parser = GuiActionParser()
Beispiel #2
0
 def __init__(self, app):
     UserDataManager.__init__(self)
     self.app = app
     self.setup_widgets()
     self.app.config.reload()
     self.load_autoswitch()
     self.load_profile_list()
     self._recursing = False
     self._eh_ids = (self.app.dm.connect('reconfigured',
                                         self.on_daemon_reconfigured), )
	def __init__(self, app, controller, profile_switcher=None):
		UserDataManager.__init__(self)
		self.app = app
		self.controller = controller
		self.profile_switcher = profile_switcher
		self.setup_widgets()
		self.load_icons()
		self._timer = None
		self.app.config.reload()
		self.load_settings()
		self._eh_ids = ()
	def __init__(self, app, controller, profile_switcher=None):
		UserDataManager.__init__(self)
		self.app = app
		self.controller = controller
		self.profile_switcher = profile_switcher
		self.setup_widgets()
		self.load_icons()
		self._timer = None
		self.app.config.reload()
		self.load_settings()
		self._eh_ids = ()
	def __init__(self, app):
		UserDataManager.__init__(self)
		self.app = app
		self.setup_widgets()
		self.app.config.reload()
		self.load_autoswitch()
		self.load_profile_list()
		self._recursing = False
		self._eh_ids = (
			self.app.dm.connect('reconfigured', self.on_daemon_reconfigured),
		)
 def __init__(self, app):
     UserDataManager.__init__(self)
     self.app = app
     self.setup_widgets()
     self._recursing = False
     self.app.config.reload()
     Action.register_all(sys.modules['scc.osd.osk_actions'], prefix="OSK")
     self.load_settings()
     self.load_profile_list()
     self._recursing = False
     self._eh_ids = (self.app.dm.connect('reconfigured',
                                         self.on_daemon_reconfigured), )
	def __init__(self, app):
		UserDataManager.__init__(self)
		self.app = app
		self.setup_widgets()
		self._timer = None
		self._recursing = False
		self.app.config.reload()
		Action.register_all(sys.modules['scc.osd.osk_actions'], prefix="OSK")
		self.load_settings()
		self.load_profile_list()
		self._recursing = False
		self._eh_ids = (
			self.app.dm.connect('reconfigured', self.on_daemon_reconfigured),
		)
 def __init__(self, imagepath, config):
     Gtk.EventBox.__init__(self)
     UserDataManager.__init__(self)
     self.imagepath = imagepath
     self.config = config
     self._allow_new = False
     self._first_time = True
     self._current = None
     self._recursing = False
     self._timer = None  # Used to prevent sending too many request
     # when user scrolls throught combobox
     self._signal = None
     self._controller = None
     self.setup_widgets()
	def __init__(self, imagepath, config):
		Gtk.EventBox.__init__(self)
		UserDataManager.__init__(self)
		self.imagepath = imagepath
		self.config = config
		self._allow_new = False
		self._first_time = True
		self._current = None
		self._recursing = False
		self._timer = None	# Used to prevent sending too many request
							# when user scrolls throught combobox
		self._signal = None
		self._controller = None
		self.setup_widgets()
 def __init__(self, app):
     UserDataManager.__init__(self)
     self.app = app
     self.setup_widgets()
     self._timer = None
     self._recursing = False
     self._gamepad_icons = {
         'unknown':
         GdkPixbuf.Pixbuf.new_from_file(
             os.path.join(self.app.imagepath, "controller-icons",
                          "unknown.svg"))
     }
     self.app.config.reload()
     Action.register_all(sys.modules['scc.osd.osk_actions'], prefix="OSK")
     self.load_settings()
     self.load_profile_list()
     self._recursing = False
     self._eh_ids = (self.app.dm.connect('reconfigured',
                                         self.on_daemon_reconfigured), )
Beispiel #11
0
	def __init__(self, gladepath="/usr/share/scc",
						imagepath="/usr/share/scc/images"):
		Gtk.Application.__init__(self,
				application_id="me.kozec.scc",
				flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE | Gio.ApplicationFlags.NON_UNIQUE )
		UserDataManager.__init__(self)
		BindingEditor.__init__(self, self)
		# Setup Gtk.Application
		self.setup_commandline()
		# Setup DaemonManager
		self.dm = DaemonManager()
		self.dm.connect("alive", self.on_daemon_alive)
		self.dm.connect("controller-count-changed", self.on_daemon_ccunt_changed)
		self.dm.connect("dead", self.on_daemon_dead)
		self.dm.connect("error", self.on_daemon_error)
		self.dm.connect('reconfigured', self.on_daemon_reconfigured),
		self.dm.connect("version", self.on_daemon_version)
		# Set variables
		self.config = Config()
		self.gladepath = gladepath
		self.imagepath = imagepath
		self.builder = None
		self.recursing = False
		self.statusicon = None
		self.status = "unknown"
		self.context_menu_for = None
		self.daemon_changed_profile = False
		self.osd_mode = False	# In OSD mode, only active profile can be editted
		self.osd_mode_mapper = None
		self.background = None
		self.outdated_version = None
		self.profile_switchers = []
		self.current_file = None	# Currently edited file
		self.controller_count = 0
		self.current = Profile(GuiActionParser())
		self.just_started = True
		self.button_widgets = {}
		self.hilights = { App.HILIGHT_COLOR : set(), App.OBSERVE_COLOR : set() }
		self.undo = []
		self.redo = []
Beispiel #12
0
	def __init__(self, gladepath="/usr/share/scc",
						imagepath="/usr/share/scc/images"):
		Gtk.Application.__init__(self,
				application_id="me.kozec.scc",
				flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE | Gio.ApplicationFlags.NON_UNIQUE )
		UserDataManager.__init__(self)
		BindingEditor.__init__(self, self)
		# Setup Gtk.Application
		self.setup_commandline()
		# Setup DaemonManager
		self.dm = DaemonManager()
		self.dm.connect("alive", self.on_daemon_alive)
		self.dm.connect("controller-count-changed", self.on_daemon_ccunt_changed)
		self.dm.connect("dead", self.on_daemon_dead)
		self.dm.connect("error", self.on_daemon_error)
		self.dm.connect('reconfigured', self.on_daemon_reconfigured),
		self.dm.connect("version", self.on_daemon_version)
		# Set variables
		self.config = Config()
		self.gladepath = gladepath
		self.imagepath = imagepath
		self.builder = None
		self.recursing = False
		self.statusicon = None
		self.status = "unknown"
		self.context_menu_for = None
		self.daemon_changed_profile = False
		self.background = None
		self.outdated_version = None
		self.profile_switchers = []
		self.current_file = None	# Currently edited file
		self.controller_count = 0
		self.current = Profile(GuiActionParser())
		self.just_started = True
		self.button_widgets = {}
		self.hilights = { App.HILIGHT_COLOR : set(), App.OBSERVE_COLOR : set() }
		self.undo = []
		self.redo = []
Beispiel #13
0
	def __init__(self):
		UserDataManager.__init__(self)
		self._current_menu = None
		self.parser = GuiActionParser()
		self.allow_globals = True
		self.allow_in_profile = True
Beispiel #14
0
	def __init__(self, app, callback):
		UserDataManager.__init__(self)
		self.app = app
		self.callback = callback
		self.setup_widgets()
 def __init__(self, app, callback):
     UserDataManager.__init__(self)
     self.app = app
     self.callback = callback
     self.setup_widgets()
Beispiel #16
0
 def __init__(self):
     UserDataManager.__init__(self)
     self._current_menu = None
     self.parser = GuiActionParser()
     self.allow_globals = True
     self.allow_in_profile = True