コード例 #1
0
ファイル: DebugManagement.cs プロジェクト: DinrusGroup/D-IDE
				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;
				}
コード例 #2
0
ファイル: DebugManagement.cs プロジェクト: DinrusGroup/D-IDE
				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;
				}
コード例 #3
0
ファイル: LogPanel.xaml.cs プロジェクト: DinrusGroup/D-IDE
		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;
		}
コード例 #4
0
ファイル: LogPanel.xaml.cs プロジェクト: DinrusGroup/D-IDE
		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();
		}
コード例 #5
0
ファイル: DebugManagement.cs プロジェクト: DinrusGroup/D-IDE
				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;
				}
コード例 #6
0
		public TextMarker(TextMarkerService svc, int WordOffset, bool WholeLine)
		{
			TextMarkerService = svc;
			CalculateWordOffset(WordOffset, WholeLine);
		}
コード例 #7
0
		public TextMarker(TextMarkerService svc, int offset, int length)
		{
			TextMarkerService = svc;
			StartOffset = offset;
			Length = length;
		}
コード例 #8
0
		public TextMarker(TextMarkerService svc)
		{
			TextMarkerService = svc;
		}
コード例 #9
0
 public TextMarker(TextMarkerService svc, int WordOffset, bool WholeLine)
 {
     TextMarkerService = svc;
     CalculateWordOffset(WordOffset, WholeLine);
 }
コード例 #10
0
 public TextMarker(TextMarkerService svc, int offset, int length)
 {
     TextMarkerService = svc;
     StartOffset       = offset;
     Length            = length;
 }
コード例 #11
0
 public TextMarker(TextMarkerService svc)
 {
     TextMarkerService = svc;
 }