private void lv_SelectResource(SimPe.Windows.Forms.ResourceListViewExt sender, SimPe.Windows.Forms.ResourceListViewExt.SelectResourceEventArgs e) { if (lv.SelectedItem != null) { resloader.AddResource(lv.SelectedItem, !e.CtrlDown); } lv.Focus(); }
/// <summary> /// Returns a List of Builtin Actions /// </summary> /// <returns></returns> SimPe.Interfaces.IToolAction[] GetDefaultActions(SimPe.Windows.Forms.ResourceListViewExt lv) { return(new SimPe.Interfaces.IToolAction[] { new SimPe.Actions.Default.AddAction(), new SimPe.Actions.Default.ExportAction(), new SimPe.Actions.Default.ReplaceAction(), new SimPe.Actions.Default.DeleteAction(), new SimPe.Actions.Default.RestoreAction(), new SimPe.Actions.Default.CloneAction(), new SimPe.Actions.Default.CreateAction(), new SimPe.Actions.Default.ActionGroupFilter(lv), }); }
internal PluginManager( ToolStripMenuItem toolmenu, ToolStrip tootoolbar, TD.SandDock.TabControl dc, LoadedPackage lp, SteepValley.Windows.Forms.ThemedControls.XPTaskBox defaultactiontaskbox, ContextMenuStrip defaultactionmenu, SteepValley.Windows.Forms.ThemedControls.XPTaskBox toolactiontaskbox, SteepValley.Windows.Forms.ThemedControls.XPTaskBox extactiontaskbox, ToolStrip actiontoolbar, Ambertation.Windows.Forms.DockContainer docktooldc, ToolStripMenuItem helpmenu, SimPe.Windows.Forms.ResourceListViewExt lv ) : base(true) { Splash.Screen.SetMessage("Loading Type Registry"); SimPe.PackedFiles.TypeRegistry tr = new SimPe.PackedFiles.TypeRegistry(); FileTable.ProviderRegistry = tr; FileTable.ToolRegistry = tr; FileTable.WrapperRegistry = tr; FileTable.CommandLineRegistry = tr; FileTable.HelpTopicRegistry = tr; FileTable.SettingsRegistry = tr; wloader = new LoadFileWrappersExt(); this.LoadDynamicWrappers(); this.LoadStaticWrappers(); this.LoadMenuItems(toolmenu, tootoolbar); Splash.Screen.SetMessage("Loading Listeners"); wloader.AddListeners(ref ChangedGuiResourceEvent); //dc.ActiveDocumentChanged += new TD.SandDock.ActiveDocumentEventHandler(wloader.ActiveDocumentChanged); //lp.AfterFileLoad += new SimPe.Events.PackageFileLoadedEvent(wloader.ChangedPackage); Splash.Screen.SetMessage("Loading Default Actions"); LoadActionTools(defaultactiontaskbox, actiontoolbar, defaultactionmenu, GetDefaultActions(lv)); Splash.Screen.SetMessage("Loading External Tools"); LoadActionTools(toolactiontaskbox, actiontoolbar, defaultactionmenu, LoadExternalTools()); Splash.Screen.SetMessage("Loading Default Tools"); LoadActionTools(extactiontaskbox, actiontoolbar, null, null); Splash.Screen.SetMessage("Loading Docks"); LoadDocks(docktooldc, lp); Splash.Screen.SetMessage("Loading Help Topics"); lht = new LoadHelpTopics(helpmenu); Splash.Screen.SetMessage("Loaded Help Topics"); }
public ActionGroupFilter(SimPe.Windows.Forms.ResourceListViewExt value) { lv = value; }