private static void LoadATA() { PCIDevice xDevice = PCI.GetDeviceClass(0x1, 0x1); //Media Storage - IDE Controller if (xDevice != null) { //We are going to support only parallel ata PrimaryIDE = new IDE(false); SecondayIDE = new IDE(true); if (PrimaryIDE.DriveInfo.Device != Device.IDE_None) { Devices.Add(PrimaryIDE); xINT.RegisterHandler(delegate() { PrimaryIDE.IRQInvoked = true; }, 0x2E); } if (SecondayIDE.DriveInfo.Device != Device.IDE_None) { Devices.Add(SecondayIDE); xINT.RegisterHandler(delegate() { SecondayIDE.IRQInvoked = true; }, 0x2F); } } /* * xDevice = PCI.GetDeviceClass(0x1, 0x6);//Media Storage - SATA * if (xDevice != null) * { * * }*/ }
/// <summary> /// Converty given arguments to solution file(.sln) entry /// </summary> /// <param name="environment">given ide environment</param> /// <param name="language">target language</param> /// <returns>valid sln string entry</returns> public string this[IDE environment, ProgrammingLanguage language] { get { switch (environment) { case IDE.VS2010: if (language == ProgrammingLanguage.CSharp) { return("# Visual C# Express 2010"); } else { return("# Visual Basic Express 2010"); } //case IDE.VS2012: // if (language == ProgrammingLanguage.CSharp) // return "# Visual C# Express 2012"; // else // return "# Visual Basic Express 2012"; case IDE.VS20131517: return("# Visual Studio Express 2013 for Windows Desktop\r\nVisualStudioVersion = 12.0.30723.0\r\nMinimumVisualStudioVersion = 10.0.40219.1"); default: throw new ArgumentOutOfRangeException("environment"); } } }
public void Initialize(IDE ide) { _ide = ide; _ide.IDEEventRaised += OnIDEEventRaised; AddPinnedProgramsToContextMenu(); }
static public void Init(TextScreenBase textScreen) { if (textScreen != null) { TextScreen = textScreen; } mDebugger.Send("Before Core.Global.Init"); Core.Global.Init(); //TODO Redo this - Global init should be other. // Move PCI detection to hardware? Or leave it in core? Is Core PC specific, or deeper? // If we let hardware do it, we need to protect it from being used by System. // Probably belongs in hardware, and core is more specific stuff like CPU, memory, etc. //Core.PCI.OnPCIDeviceFound = PCIDeviceFound; //TODO: Since this is FCL, its "common". Otherwise it should be // system level and not accessible from Core. Need to think about this // for the future. Console.WriteLine("Finding PCI Devices"); mDebugger.Send("PCI Devices"); PCI.Setup(); Console.WriteLine("Starting ACPI"); mDebugger.Send("ACPI Init"); ACPI.Start(); IDE.InitDriver(); AHCI.InitDriver(); //EHCI.InitDriver(); mDebugger.Send("Done initializing Cosmos.HAL.Global"); }
IEnumerator Start() { background_texture = Resources.Load("SpellbookMock") as Texture2D; button_style.normal.background = button_up_texture; button_style.active.background = button_down_texture; button_style.normal.textColor = Color.white; button_style.active.textColor = new Color(0.75f, 0.75f, 0.75f); button_style.alignment = TextAnchor.MiddleCenter; button_style.fontSize = 30; //set code_style code_style.fontSize = 20; code_style.normal.textColor = Color.black; code_style.font = code_font; code_style.wordWrap = false; //set code_style for display of small spellbook half_code_style.fontSize = 20; //will be reset based on scaling half_code_style.normal.textColor = Color.black; half_code_style.font = code_font; half_code_style.wordWrap = false; ide = GameObject.Find("IDE").GetComponent <IDE>(); return(null); }
public void Initialize(IDE ide) { _ide = ide; checkBox_FullPaths.Checked = _ide.IDEConfiguration.ViewFullFolderPaths; UpdateProjectInfo(); }
public void Initialize(IDE ide) { settings_SpecialFunctions.Initialize(ide); settings_ProjectInfo.Initialize(ide); settings_Icon.Initialize(ide); settings_SplashScreen.Initialize(ide); settings_StartupImage.Initialize(ide); settings_Logo.Initialize(ide); }
private void SelectionButton_Click(object sender, RoutedEventArgs e) { string menu = LanguageDropDownMenu.Text; // This actually calls the constructor stored in the dictionary and casts it to the most abstract type (IDE) IDE ide = (IDE)ideConstructors[menu].Invoke(null); nav.Navigate(new IDEPage(ide)); }
/// <summary> /// Called when a solution is closed to conditionally show the start page. /// </summary> private void OnSolutionClosedShowStartPage() { if (!Settings.Default.General_ShowStartPageOnSolutionClose) { return; } IDE.ExecuteCommand("View.StartPage"); }
public FormMnemonicInfo(IDE ide) { InitializeComponent(); _ide = ide; checkBox_AlwaysTop.Checked = _ide.IDEConfiguration.InfoBox_AlwaysOnTop; checkBox_CloseTabs.Checked = _ide.IDEConfiguration.InfoBox_CloseTabsOnClose; }
public void Initialize(IDE ide) { _ide = ide; radioButton_Wide.Checked = !_ide.IDEConfiguration.StandardAspectRatioPreviewEnabled; radioButton_Standard.Checked = _ide.IDEConfiguration.StandardAspectRatioPreviewEnabled; UpdatePreview(); }
public void Initialize(IDE ide) { _ide = ide; _ide.IDEEventRaised += OnIDEEventRaised; button_ViewFileNames.Checked = _ide.IDEConfiguration.ViewFileNames; FillLevelList(); // With levels taken from the .trproj file (current _ide.Project) }
// Use this for initialization void OnGUI() { if (GUI.Button(new Rect(10, 15, 130, 65), "String", button_style)) { IDE ide = (GameObject.Find("IDE").GetComponent("IDE") as IDE); ide.SetInput(input); ide.show(gameObject); } }
public FormPluginManager(IDE ide) { _ide = ide; _ide.IDEEventRaised += OnIDEEventRaised; InitializeComponent(); _ide.RefreshPluginLists(); }
public FormFolderCreation(IDE ide, string initialNodePath) { InitializeComponent(); _ide = ide; FillFolderList(); SetInitialNodePath(initialNodePath); }
public void Initialize(IDE ide) { _ide = ide; _ide.IDEEventRaised += OnIDEEventRaised; UpdateTreeView(); tabControl.HideTab(1); // The "Description" tab initialPlugins.AddRange(_ide.Project.InstalledPlugins); }
public FormStart(IDE ide) { _ide = ide; InitializeComponent(); Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); ApplySavedSettings(); FillProjectList(); }
public EditorPanel(IDE idething) { ide = idething; //backgroundRect = new Rectangle(0,0,Screen.width*3/4,Screen.height); // half screen, on right //backgroundRect = new Rectangle(Screen.width*1/2, 0, Screen.width*1/2, Screen.height*4/5); backgroundRect = new Rectangle(Screen.width*3/8, 0, Screen.width*5/8, Screen.height*4/5); textAreaRect = new Rectangle(); setTextAreaRect(); setScrollDims(); }
public EditorPanel(IDE idething) { ide = idething; //backgroundRect = new Rectangle(0,0,Screen.width*3/4,Screen.height); // half screen, on right //backgroundRect = new Rectangle(Screen.width*1/2, 0, Screen.width*1/2, Screen.height*4/5); backgroundRect = new Rectangle(Screen.width * 3 / 8, 0, Screen.width * 5 / 8, Screen.height * 4 / 5); textAreaRect = new Rectangle(); setTextAreaRect(); setScrollDims(); }
public FormFileCreation(IDE ide, FileCreationMode mode, string initialNodePath = null, string initialFileName = null) { InitializeComponent(); SwitchMode(mode); _ide = ide; FillFolderList(); SetInitialNodePath(initialNodePath); SetInitialFileName(initialFileName); }
/// <summary> /// Constructor for a Disk Listing /// </summary> /// <param name="num"></param> /// <param name="disk"></param> public DiskListing(int num, IDE disk) { DiskNumber = num + 1; Disk = disk; DiskListings.Add(this); int pnum = 0; foreach (PrimaryPartition Partition in disk.PrimaryPartitions) { pnum += 1; PartitionListings.Add(new PartitionListing(pnum, this, Partition.Infos)); } }
public MBR(IDE mDisk) { this.aDisk = mDisk; this.aPartitions = new List <Partition>(); var aMBR = new byte[512]; mDisk.Read(0U, 1U, aMBR); ParseData(aMBR, 446); ParseData(aMBR, 462); ParseData(aMBR, 478); ParseData(aMBR, 494); }
public void Initialize(IDE ide) { _ide = ide; _ide.IDEEventRaised += OnIDEEventRaised; // Initialize the watchers prj2FileWatcher.Path = _ide.Project.LevelsPath; levelFolderWatcher.Path = _ide.Project.LevelsPath; string pluginsFolderPath = DefaultPaths.GetTRNGPluginsPath(); if (!Directory.Exists(pluginsFolderPath)) { Directory.CreateDirectory(pluginsFolderPath); } projectDLLFileWatcher.Path = _ide.Project.EnginePath; internalDLLFileWatcher.Path = pluginsFolderPath; internalPluginFolderWatcher.Path = pluginsFolderPath; // Initialize the sections section_LevelList.Initialize(_ide); section_LevelProperties.Initialize(_ide); section_ProjectInfo.Initialize(_ide); section_PluginList.Initialize(_ide); if (_ide.Project.GameVersion == TRVersion.Game.TR4) { button_ShowPlugins.Enabled = false; button_ShowPlugins.Visible = false; splitContainer_Info.Panel2Collapsed = true; } else if (_ide.IDEConfiguration.PluginsPanelHidden) { button_ShowPlugins.Enabled = true; button_ShowPlugins.Visible = true; splitContainer_Info.Panel2Collapsed = true; } else if (!_ide.IDEConfiguration.PluginsPanelHidden) { button_ShowPlugins.Enabled = false; button_ShowPlugins.Visible = false; splitContainer_Info.Panel2Collapsed = false; } CheckPlugins(); }
public void Render(PatternsModel model) { // Note: Invoke is handled by ViewModelBase - Sara lbPatterns.Items.Clear(); foreach (var item in model.Patterns.OrderBy(n => n.Name)) { lbPatterns.Items.Add(item); } IDE.Render(); StatusUpdate(StatusModel.Completed); }
private void UpdateIDE() { bool projectLoad = _project != null; bool projectSaved = projectLoad && _project.IsSaved; IDE.GetAppMenuItem(_fileMenuItem, AppAction.ProjectSave).Enabled = !projectSaved; IDE.GetAppToolStripButtom(_toolStrip, AppAction.ProjectSave).Enabled = !projectSaved; IDE.GetAppMenuItem(_fileMenuItem, AppAction.ProjectSaveAs).Enabled = projectLoad; IDE.GetAppMenuItem(_fileMenuItem, AppAction.ProjectClose).Enabled = projectLoad; _projectMenuItem.Visible = projectLoad; IDE.GetAppToolStripButtom(_toolStrip, AppAction.ProjectBuild).Enabled = projectLoad && !_buildStarted; }
private static void Main(string[] args) { UpdateNGCompilerPaths(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IDEConfiguration ideConfiguration = IDEConfiguration.Load(); List <Project> availableProjects = XmlHandling.GetProjectsFromXml(); List <Plugin> availablePlugins = XmlHandling.GetPluginsFromXml(); using (IDE ide = new IDE(ideConfiguration, availableProjects, availablePlugins)) { using (FormStart form = new FormStart(ide)) { if (args.Length > 0) { if (Path.GetExtension(args[0]).ToLower() != ".trproj") { MessageBox.Show("Invalid file type. TombIDE can only open .trproj files.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } ide.IDEConfiguration.RememberedProject = string.Empty; form.OpenTrprojWithTombIDE(args[0]); // Changes ide.Configuration.RememberedProject to the opened project on success if (string.IsNullOrEmpty(ide.IDEConfiguration.RememberedProject)) { return; // Opening project failed } Application.Run(form); // Reset the RememberedProject setting after closing ide.IDEConfiguration.RememberedProject = string.Empty; ide.IDEConfiguration.Save(); } else { Application.Run(form); } } } #if (DEBUG) System.Diagnostics.Process.GetCurrentProcess().Kill(); // Faster app closing while debugging #endif }
public ButtonPanel(IDE idething) { ide = idething; // old button location //groupRect = new Rectangle(Screen.width*3/4+5,0,Screen.width*1/4-5,100); //Screen.height); // top left corner groupRect = new Rectangle(5, 0, Screen.width * 3 / 8 - 5, Screen.height / 4); // upper left //backRect = new Rectangle(10,15,130,65); //removeRect = new Rectangle(180,15,65,65); // upper right removeRect = new Rectangle(groupRect.w - 75, 15, 64, 64); backRect = new Rectangle(removeRect.x - 170, 15, 130, 64); //newSpellRect = new Rectangle(removeRect.x, removeRect.y+removeRect.h+15, 64, 64); }
public ButtonPanel(IDE idething) { ide = idething; // old button location //groupRect = new Rectangle(Screen.width*3/4+5,0,Screen.width*1/4-5,100); //Screen.height); // top left corner groupRect = new Rectangle(5,0,Screen.width*3/8-5,Screen.height/4); // upper left //backRect = new Rectangle(10,15,130,65); //removeRect = new Rectangle(180,15,65,65); // upper right removeRect = new Rectangle(groupRect.w-75,15,64,64); backRect = new Rectangle(removeRect.x-170,15,130,64); //newSpellRect = new Rectangle(removeRect.x, removeRect.y+removeRect.h+15, 64, 64); }
override public void Process(IDE ide) { //Right now we just print out the build errors and the completions // Ulitimately, we'll need to parse this (on the Euclid side) and display the information to the user somehow. // But I'm not really sure where to put the build errors in our IDE. // And I'm not sure how I want to implement the drop-down menu for the code completion. //In any event, we are fetching the info we need. We just need to massage it and display. /* * string messages = eclipse.JavaSrcUpdateString(short_file_name,project_name); * Debug.Log(messages); * * int cursor = ide.GetCursorPosition(); * * string completions=eclipse.JavaCompleteString(short_file_name,project_name,cursor); * Debug.Log(completions); */ javaCompile(); ide.setErrorMessage(noviceClean(current_error)); ide.clearStyles(); string pat = @":([0-9]+)"; // Instantiate the regular expression object. Regex r = new Regex(pat); // Match the regular expression pattern against a text string. Match m = r.Match(current_error); int matchCount = 0; while (m.Success) { Capture c = m.Groups[1].Captures[0]; int line_num = int.Parse(c.ToString()); ide.addStyle(line_num - 1, "error"); m = m.NextMatch(); } }
internal static void LoadIDE(bool IsPrimary, bool IsMaster) { var xIDE = new IDE(IsPrimary, IsMaster); bool Clean = true; if (xIDE.IsValid) { switch (xIDE.Device) { case Device.IDE_ATA: { /* * First we check If it has partitions, * If parition.count > 0 * Add Individual Partitions */ var xMBR = new MBR(xIDE); if (xMBR.PartInfo.Count > 0) { for (int i = 0; i < xMBR.PartInfo.Count; i++) { /* * Iterate over all FileSystem Drivers and check which is valid */ var xFileSystem = new FatFileSystem(xMBR.PartInfo[i]); if (xFileSystem.IsValid) { VirtualFileSystem.MountDevice(null, xFileSystem); Clean = false; } else { Heap.Free(xFileSystem); } } } xMBR.Clean(); } break; } } if (Clean) { Heap.Free(xIDE); } }
public ErrorPanel(IDE idething) { ide = idething; //errorRect = new Rectangle(Screen.width*3/4+15, 100, 230, 500); //errorRect = new Rectangle(Screen.width*1/2+15, Screen.height*4/5+5, Screen.width*1/2 - 30, Screen.height*1/5 - 10); bgRect = new Rectangle(Screen.width*7/16, Screen.height*4/5+5, Screen.width*1/2, Screen.height*1/5 - 10); setTextAreaRect(); style.fontSize = 12; style.normal.textColor = Color.black; style.alignment = TextAnchor.UpperLeft; style.wordWrap = true; labelStyle.fontSize = 30; labelStyle.normal.textColor = Color.red; labelStyle.alignment = TextAnchor.LowerCenter; labelRect = new Rectangle(bgRect.x, bgRect.y + bgRect.h/4, errorRect.x - bgRect.x, bgRect.h / 2); }
public override void Process(IDE ide) { //Right now we just print out the build errors and the completions // Ulitimately, we'll need to parse this (on the Euclid side) and display the information to the user somehow. // But I'm not really sure where to put the build errors in our IDE. // And I'm not sure how I want to implement the drop-down menu for the code completion. //In any event, we are fetching the info we need. We just need to massage it and display. string messages = eclipse.JavaSrcUpdateString(short_file_name,project_name); Debug.Log(messages); int cursor = ide.GetCursorPosition(); string completions=eclipse.JavaCompleteString(short_file_name,project_name,cursor); Debug.Log(completions); }
public void Initialize(IDE ide) { _ide = ide; if (_ide.Project.ProjectPath.ToLower() == _ide.Project.EnginePath.ToLower()) { button_RenameLauncher.Enabled = false; textBox_LauncherName.ForeColor = Color.Gray; textBox_LauncherName.Text = "Unavailable for legacy projects"; } else { textBox_LauncherName.Text = Path.GetFileName(_ide.Project.LaunchFilePath); } }
public ErrorPanel(IDE idething) { ide = idething; //errorRect = new Rectangle(Screen.width*3/4+15, 100, 230, 500); //errorRect = new Rectangle(Screen.width*1/2+15, Screen.height*4/5+5, Screen.width*1/2 - 30, Screen.height*1/5 - 10); bgRect = new Rectangle(Screen.width * 7 / 16, Screen.height * 4 / 5 + 5, Screen.width * 1 / 2, Screen.height * 1 / 5 - 10); setTextAreaRect(); style.fontSize = 12; style.normal.textColor = Color.black; style.alignment = TextAnchor.UpperLeft; style.wordWrap = true; labelStyle.fontSize = 30; labelStyle.normal.textColor = Color.red; labelStyle.alignment = TextAnchor.LowerCenter; labelRect = new Rectangle(bgRect.x, bgRect.y + bgRect.h / 4, errorRect.x - bgRect.x, bgRect.h / 2); }
public MainViewModel(IDE ide) { _ide = ide; if(_ide.CurrentSolution != null) this.SetSolution(_ide.CurrentSolution); _ide.CurrentSolutionChanged += (s, e) => { this.SetSolution(e.Value); }; _ide.RequestHandleFileOpen += (s, e) => { OpenFile(e.Value); }; Globals.MainVM = this; }
public Nota(INFeContexto nFeContexto) { this.nFeContexto = nFeContexto; ide = new IDE(); emit = new EMIT(); dest = new DEST(); detList = new List<DET>(); total = new TOTAL(); transp = new TRANSP(); cobr = new COBR(); xmlString = new StringBuilder(); if (this.nFeContexto.Producao) ide.tpAmb = "1"; else ide.tpAmb = "2"; }
public override void Process(IDE ide) { }
public override void Process(IDE ide) { //Right now we just print out the build errors and the completions // Ulitimately, we'll need to parse this (on the Euclid side) and display the information to the user somehow. // But I'm not really sure where to put the build errors in our IDE. // And I'm not sure how I want to implement the drop-down menu for the code completion. //In any event, we are fetching the info we need. We just need to massage it and display. /* string messages = eclipse.JavaSrcUpdateString(short_file_name,project_name); Debug.Log(messages); int cursor = ide.GetCursorPosition(); string completions=eclipse.JavaCompleteString(short_file_name,project_name,cursor); Debug.Log(completions); */ javaCompile(); ide.setErrorMessage(noviceClean(current_error)); ide.clearStyles(); string pat = @":([0-9]+)"; // Instantiate the regular expression object. Regex r = new Regex(pat); // Match the regular expression pattern against a text string. Match m = r.Match(current_error); int matchCount = 0; while (m.Success) { Capture c = m.Groups[1].Captures[0]; int line_num = int.Parse(c.ToString()); ide.addStyle(line_num - 1, "error"); m = m.NextMatch(); } }
public abstract void Process(IDE ide);
IEnumerator Start() { background_texture = Resources.Load("SpellbookMock") as Texture2D; button_style.normal.background = button_up_texture; button_style.active.background = button_down_texture; button_style.normal.textColor = Color.white; button_style.active.textColor = new Color(0.75f,0.75f,0.75f); button_style.alignment = TextAnchor.MiddleCenter; button_style.fontSize = 30; //set code_style code_style.fontSize = 20; code_style.normal.textColor = Color.black; code_style.font = code_font; code_style.wordWrap = false; //set code_style for display of small spellbook half_code_style.fontSize = 20; //will be reset based on scaling half_code_style.normal.textColor = Color.black; half_code_style.font = code_font; half_code_style.wordWrap = false; ide = GameObject.Find("IDE").GetComponent<IDE>(); return null; }