public CodeViewList(CodeViewTab parent) { InitializeComponent(); _parent = parent; //this.BackColor = System.Drawing.Color.DarkGray; this.Dock = System.Windows.Forms.DockStyle.Fill; this.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.Font = new System.Drawing.Font("Courier New", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.HorizontalScrollbar = true; this.IntegralHeight = true; //this.ItemHeight = 20; this.Location = new System.Drawing.Point(0, 0); this.Name = _parent.Name; this.SelectionMode = System.Windows.Forms.SelectionMode.None; this.Size = new System.Drawing.Size(464, 304); this.TabIndex = 0; }
public bool InitNormal(IList <ArmAssembly.ArmFileInfo> progInfo) { _errors = false; this.tabControl1.TabPages.Clear(); foreach (ArmAssembly.ArmFileInfo pp in progInfo) { CodeViewTab tabPage = new CodeViewTab(pp, _JM); tabPage.CurrentFont = this.CurrentFont; tabPage.CurrentHighlightColour = this.CurrentHighlightColour; tabPage.CurrentTextColour = this.CurrentTextColour; tabPage.CurrentBackgroundColour = this.CurrentBackgroundColour; //tabPage.init(); this.tabControl1.TabPages.Add(tabPage); } //All breakpoint logic moved to sim engine //this.loadBreakpoints(); return(true); }
public void InitErrors(IList <ArmAssembly.ArmFileInfo> progInfo) { _errors = true; this.tabControl1.TabPages.Clear(); foreach (ArmAssembly.ArmFileInfo pp in progInfo) { if (pp == null) { continue; } CodeViewTab tabPage = new CodeViewTab(pp, _JM); tabPage.CurrentFont = this.CurrentFont; tabPage.CurrentHighlightColour = this.CurrentHighlightColour; tabPage.CurrentTextColour = this.CurrentTextColour; tabPage.CurrentBackgroundColour = this.CurrentBackgroundColour; tabPage.initErrors(); this.tabControl1.Controls.Add(tabPage); } }
public ErrorLine(DrawParameters drawParameters, string text, int line, CodeViewTab parent) : base(drawParameters, text, parent) { mLine = line; }
protected CodeViewLine(DrawParameters drawParameters, string text, CodeViewTab parent) { _drawParameters = drawParameters; Text = text; _parent = parent; }
}//ctor ObjectCodeLine public ObjectCodeLine(DrawParameters drawParameters, uint address, string op, string operands, CodeViewTab parent) : base(drawParameters, String.Format(" {0,-6} {1}", op, operands), address, parent) { } //ctor ObjectCodeLine
public ObjectCodeLine(DrawParameters drawParameters, uint address, uint hexContents, string contents, CodeViewTab parent) : base(drawParameters, contents, address, hexContents.ToString("X8"), parent) { }//ctor ObjectCodeLine
}//ctor lstLine for ARM instruction public ListLine(DrawParameters drawParameters, string text, uint address, string hexContents, CodeViewTab parent) : base(drawParameters, text, parent) { Address = address; this.hexContents = hexContents; if (hexContents.Length == 8) { opcodeBytes = 4; } else if (hexContents.Length == 4) { opcodeBytes = 2; } addressValid = true; }//ctor lstLine for ARM instruction
}//ctor lstLine public ListLine(DrawParameters drawParameters, string text, string hexContents, CodeViewTab parent) : base(drawParameters, text, parent) { this.hexContents = hexContents; addressValid = false; }//ctor lstLine for ARM instruction
public ListLine(DrawParameters drawParameters, string text, uint address, CodeViewTab parent) : base(drawParameters, text, parent) { Address = address; addressValid = true; }//ctor lstLine
private string hexContents = null; // hex contents of line public ListLine(DrawParameters drawParameters, string text, CodeViewTab parent) : base(drawParameters, text, parent) { }
//private readonly int col; public ErrorMsgLine(DrawParameters drawParameters, string errorMsg, CodeViewTab parent) : base(drawParameters, errorMsg, parent) { //this.col = col; }