Exemple #1
0
				public DebugErrorMarker(TextMarkerService svc, CodeException ex)
					: base(svc, svc.Editor.Document.GetOffset((int)ex.SourceLine, 0), true)
				{
					this.Exception = ex;
					ToolTip = ex.Message;

					BackgroundColor = Colors.Yellow;
				}
Exemple #2
0
				public DebugStackFrameMarker(TextMarkerService svc, DebugEngineWrapper.StackFrame frm, int text_offset)
					: base(svc, text_offset, true)
				{
					Frame = frm;

					if (frm.FrameNumber < 1)
						BackgroundColor = Colors.Yellow;
					else
						BackgroundColor = Colors.Green;
					MarkerType = TextMarkerType.None;
				}
Exemple #3
0
		public LogPanel()
		{
			Name = "LogPanel";
			InitializeComponent();

			tms1 = new TextMarkerService(Text_Sys);
			tms2 = new TextMarkerService(Text_Build);
			tms3 = new TextMarkerService(Text_Output);

			Text_Output.Encoding = Encoding.Unicode;
		}
Exemple #4
0
		void AddMarkerForOffsetUntilEnd(TextEditor editor, TextMarkerService tms, int beginOffset,ErrorType type)
		{
			if (type == ErrorType.Message || type==ErrorType.Information)
				return;

			var tm = new TextMarker(tms,beginOffset,true);
			
			tm.MarkerType = TextMarkerType.None;
			tm.ForegroundColor = type==ErrorType.Error? Colors.Red:Colors.OrangeRed;

			tms.Add(tm);
			tm.Redraw();
		}
Exemple #5
0
				public static DebugStackFrameMarker Create(TextMarkerService svc, DebugEngineWrapper.StackFrame frm)
				{
					string fn;
					uint ln;
					ulong off = frm.InstructionOffset;
					if (Engine.Symbols.GetLineByOffset(off, out fn, out ln))
					{
						var text_off = svc.Editor.Document.GetOffset((int)ln, 0);

						var m = new DebugStackFrameMarker(svc, frm, text_off);
						m.Redraw();

						return m;
					}
					return null;
				}
		public TextMarker(TextMarkerService svc, int WordOffset, bool WholeLine)
		{
			TextMarkerService = svc;
			CalculateWordOffset(WordOffset, WholeLine);
		}
		public TextMarker(TextMarkerService svc, int offset, int length)
		{
			TextMarkerService = svc;
			StartOffset = offset;
			Length = length;
		}
		public TextMarker(TextMarkerService svc)
		{
			TextMarkerService = svc;
		}
 public TextMarker(TextMarkerService svc, int WordOffset, bool WholeLine)
 {
     TextMarkerService = svc;
     CalculateWordOffset(WordOffset, WholeLine);
 }
 public TextMarker(TextMarkerService svc, int offset, int length)
 {
     TextMarkerService = svc;
     StartOffset       = offset;
     Length            = length;
 }
 public TextMarker(TextMarkerService svc)
 {
     TextMarkerService = svc;
 }