public static void Initialize(IMainForm mainForm) { Icons.mainForm = mainForm; imageList = new ImageList(); imageList.ColorDepth = ColorDepth.Depth32Bit; imageList.ImageSize = new Size(16, 16); imageList.TransparentColor = Color.Transparent; BulletAdd = Get(0); SilkPage = GetResource("Icons.SilkPage.png"); XmlFile = GetResource("Icons.XmlFile.png"); MxmlFile = GetResource("Icons.MxmlFile.png"); MxmlFileCompile = GetResource("Icons.MxmlFileCompile.png"); HiddenItems = GetResource("Icons.HiddenItems.png"); HiddenFolder = GetGray("203"); HiddenFile = GetResource("Icons.HiddenFile.png"); BlankFile = GetResource("Icons.BlankPage.png"); Project = Get(274); ProjectClasspath = Get(98); Classpath = Get(98); ProjectClasspathError = Get("98|6|3|3"); ClasspathError = Get("98|6|3|3"); Font = Get(408); ImageResource = Get(336); ActionScript = GetResource("Icons.ActionscriptFile.png"); HaxeFile = GetResource("Icons.HaxeFile.png"); SwfFile = GetResource("Icons.SwfMovie.png"); SwfFileHidden = GetResource("Icons.SwfMovieHidden.png"); SwcFile = GetResource("Icons.SwcFile.png"); Folder = Get(203); FolderCompile = Get("203|22|-3|3"); TextFile = Get(315); FlashCS3 = GetResource("Icons.FlashCS3.png"); ActionScriptCompile = GetResource("Icons.ActionscriptCompile.png"); HtmlFile = GetResource("Icons.HtmlFile.png"); AddFile = GetResource("Icons.AddFile.png"); //Get("304|0|5|4"); OpenFile = Get(214); EditFile = Get(282); Cut = Get(158); Copy = Get(292); Paste = Get(283); Delete = Get(111); Options = Get(54); NewProject = Get("274|0|5|4"); GreenCheck = Get(351); Gear = Get(127); Class = GetResource("Icons.Class.png"); Refresh = Get(66); Debug = Get(101); UpArrow = Get(74); DownArrow = Get(60); AllClasses = Get(202); SyncToFile = Get("315|9|-3|-4"); }
public static FDImage ExtractIconIfNecessary(string file) { string extension = Path.GetExtension(file); if (extensionIcons.ContainsKey(extension)) { return(extensionIcons[extension]); } else { Icon icon = IconExtractor.GetFileIcon(file, true); Image image = ImageKonverter.ImageResize(icon.ToBitmap(), 16, 16); icon.Dispose(); imageList.Images.Add(image); int index = imageList.Images.Count - 1; // of the icon we just added FDImage fdImage = new FDImage(image, index); extensionIcons.Add(extension, fdImage); return(fdImage); } }
public static FDImage ExtractIconIfNecessary(string file) { string extension = Path.GetExtension(file); if (extensionIcons.ContainsKey(extension)) { return(extensionIcons[extension]); } else { Icon icon = IconExtractor.GetFileIcon(file, true); Image image = ScaleHelper.Scale(icon.ToBitmap()); image = (Bitmap)PluginBase.MainForm.ImageSetAdjust(image); icon.Dispose(); imageList.Images.Add(image); int index = imageList.Images.Count - 1; // of the icon we just added FDImage fdImage = new FDImage(image, index); extensionIcons.Add(extension, fdImage); return(fdImage); } }
public static FDImage ExtractIconIfNecessary(string file) { string extension = Path.GetExtension(file); if (extensionIcons.ContainsKey(extension)) { return extensionIcons[extension]; } else { Icon icon = IconExtractor.GetFileIcon(file, true); Image image = ScaleHelper.Scale(icon.ToBitmap()); image = (Bitmap)PluginBase.MainForm.ImageSetAdjust(image); icon.Dispose(); imageList.Images.Add(image); int index = imageList.Images.Count - 1; // of the icon we just added FDImage fdImage = new FDImage(image, index); extensionIcons.Add(extension, fdImage); return fdImage; } }
public static void Initialize(IMainForm mainForm) { Icons.mainForm = mainForm; imageList = new ImageList(); imageList.ColorDepth = ColorDepth.Depth32Bit; imageList.ImageSize = ScaleHelper.Scale(new Size(16, 16)); imageList.TransparentColor = Color.Transparent; BulletAdd = Get(0); SilkPage = Get(526); XmlFile = GetResource("Icons.XmlFile.png"); MxmlFile = GetResource("Icons.MxmlFile.png"); MxmlFileCompile = GetResource("Icons.MxmlFileCompile.png"); HiddenItems = GetGray(292); HiddenFolder = GetGray(203); HiddenFile = GetGray(526); BlankFile = Get(526); Project = Get(274); ProjectClasspath = Get(98); Classpath = Get(98); ProjectClasspathError = Get("98|6|3|3"); ClasspathError = Get("98|6|3|3"); Font = Get(408); ImageResource = Get(336); ActionScript = GetResource("Icons.ActionscriptFile.png"); HaxeFile = GetResource("Icons.HaxeFile.png"); SwfFile = GetResource("Icons.SwfMovie.png"); SwfFileHidden = GetResource("Icons.SwfMovieHidden.png"); SwcFile = GetResource("Icons.SwcFile.png"); Folder = Get(203); FolderCompile = Get("203|22|-3|3"); TextFile = Get(315); FlashCS3 = GetResource("Icons.FlashCS3.png"); ActionScriptCompile = GetResource("Icons.ActionscriptCompile.png"); HtmlFile = GetResource("Icons.HtmlFile.png"); AddFile = Get("526|0|5|4"); OpenFile = Get(214); EditFile = Get(282); Browse = Get(56); FindAndReplace = Get(484); FindInFiles = Get(209); Cut = Get(158); Copy = Get(292); Paste = Get(283); Delete = Get(111); Rename = Get(331); Options = Get(54); OptionsWithIssues = Get("54|6|3|3"); NewProject = Get("274|0|5|4"); GreenCheck = Get(351); Gear = Get(127); X = Get(153); Info = Get(229); Class = GetResource("Icons.Class.png"); Method = GetResource("Icons.Method.png"); Variable = GetResource("Icons.Variable.png"); Const = GetResource("Icons.Const.png"); Refresh = Get(66); Debug = Get(101); UpArrow = Get(74); DownArrow = Get(60); AllClasses = Get(202); SyncToFile = Get("315|9|-3|-4"); ClasspathFolder = Get(544); LibrarypathFolder = Get(208); DocumentClass = Get(147); CommandPrompt = Get(57); CollapseAll = GetGray(166); }
public static FDImage ExtractIconIfNecessary(string file) { string extension = Path.GetExtension(file); if (extensionIcons.ContainsKey(extension)) { return extensionIcons[extension]; } else { Icon icon = IconExtractor.GetFileIcon(file, true); Image image = ImageKonverter.ImageResize(icon.ToBitmap(), 16, 16); icon.Dispose(); imageList.Images.Add(image); int index = imageList.Images.Count - 1; // of the icon we just added FDImage fdImage = new FDImage(image, index); extensionIcons.Add(extension, fdImage); return fdImage; } }
public static void Initialize(IMainForm mainForm) { Icons.mainForm = mainForm; imageList = new FDImageList(); imageList.ColorDepth = ColorDepth.Depth32Bit; imageList.ImageSize = ScaleHelper.Scale(new Size(16, 16)); imageList.TransparentColor = Color.Transparent; BulletAdd = Get(0); SilkPage = Get(526); XmlFile = GetResource("Icons.XmlFile.png"); MxmlFile = GetResource("Icons.MxmlFile.png"); MxmlFileCompile = GetResource("Icons.MxmlFileCompile.png"); HiddenItems = GetGray(292); HiddenFolder = GetGray(203); HiddenFile = GetGray(526); BlankFile = Get(526); Project = Get(274); ProjectClasspath = Get(98); Classpath = Get(98); ProjectClasspathError = Get("98|6|3|3"); ClasspathError = Get("98|6|3|3"); Font = Get(408); ImageResource = Get(336); ActionScript = GetResource("Icons.ActionscriptFile.png"); HaxeFile = GetResource("Icons.HaxeFile.png"); SwfFile = GetResource("Icons.SwfMovie.png"); SwfFileHidden = GetResource("Icons.SwfMovieHidden.png"); SwcFile = GetResource("Icons.SwcFile.png"); Folder = Get(203); FolderCompile = Get("203|22|-3|3"); TextFile = Get(315); FlashCS3 = GetResource("Icons.FlashCS3.png"); ActionScriptCompile = GetResource("Icons.ActionscriptCompile.png"); HtmlFile = GetResource("Icons.HtmlFile.png"); AddFile = Get("526|0|5|4"); OpenFile = Get(214); EditFile = Get(282); Browse = Get(46); FindAndReplace = Get(484); FindInFiles = Get(209); Cut = Get(158); Copy = Get(292); Paste = Get(283); Delete = Get(111); Rename = Get(331); Options = Get(54); OptionsWithIssues = Get("54|6|3|3"); NewProject = Get("274|0|5|4"); GreenCheck = Get(351); Gear = Get(127); X = Get(153); Info = Get(229); Class = GetResource("Icons.Class.png"); Method = GetResource("Icons.Method.png"); Variable = GetResource("Icons.Variable.png"); Const = GetResource("Icons.Const.png"); Refresh = Get(66); Debug = Get(101); UpArrow = Get(74); DownArrow = Get(60); AllClasses = Get(202); SyncToFile = Get("315|9|-3|-4"); ClasspathFolder = Get(544); LibrarypathFolder = Get(208); DocumentClass = Get(147); CommandPrompt = Get(57); CollapseAll = GetGray(166); }