コード例 #1
0
        public LircPlugin()
        {
            actions = new ActionGroup("Lirc");
            ctrl    = new ActionMapper(new BansheeController());
            actions.Add(new ActionEntry[] {
                new ActionEntry("LircAction", null, "_Lirc", null,
                                "Configure the Lirc Addin", null),
                new ActionEntry("LircConfigureAction", Stock.Properties, "_Configure",
                                null, "Configure the Lirc addin", OnConfigurePlugin),
            });

            action_service = ServiceManager.Get <InterfaceActionService>("InterfaceActionService");

            action_service.UIManager.InsertActionGroup(actions, 0);
            action_service.UIManager.AddUiFromResource("Ui.xml");
        }
コード例 #2
0
        public LircPlugin()
        {
            actions = new ActionGroup("Lirc");
            ctrl = new ActionMapper(new BansheeController());
            actions.Add(new ActionEntry[] {
                new ActionEntry("LircAction", null, "_Lirc", null,
                                "Configure the Lirc Addin", null),
                new ActionEntry("LircConfigureAction", Stock.Properties, "_Configure",
                                null, "Configure the Lirc addin", OnConfigurePlugin),
            });

            action_service = ServiceManager.Get<InterfaceActionService>("InterfaceActionService");

            action_service.UIManager.InsertActionGroup(actions, 0);
            action_service.UIManager.AddUiFromResource("Ui.xml");
        }
コード例 #3
0
        public LircPlugin()
        {
			ctrl = new ActionMapper(new BansheeController());
        }
コード例 #4
0
 public LircPlugin()
 {
     ctrl = new ActionMapper(new BansheeController());
 }
コード例 #5
0
	public void Test1()
	{
		ActionMapper am = new ActionMapper(new MockController());
		am.DispatchAction("play");
	}