Browse Source

add SelectedFrameBookmark

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
fd2044b3d5
  1. BIN
      data/resources/image/BitmapResources/BitmapResources-data/Icons.48x48.CurrentFrame.png
  2. 52
      src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/SelectedFrameBookmark.cs
  3. BIN
      src/Main/StartUp/Project/Resources/BitmapResources.resources

BIN
data/resources/image/BitmapResources/BitmapResources-data/Icons.48x48.CurrentFrame.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

52
src/AddIns/Debugger/Debugger.AddIn/Pads/ParallelPad/SelectedFrameBookmark.cs

@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Windows.Media;
using ICSharpCode.Core;
using ICSharpCode.NRefactory;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Bookmarks;
using ICSharpCode.SharpDevelop.Editor;
namespace Debugger.AddIn.Pads.ParallelPad
{
/// <summary>
/// Description of SelectedFrameBookmark.
/// </summary>
public class SelectedFrameBookmark : SDMarkerBookmark
{
public static readonly IImage SelectedFrameImage = new ResourceServiceImage("Icons.48x48.CurrentFrame");
public SelectedFrameBookmark(FileName fileName, Location location) : base(fileName, location)
{
this.IsVisibleInBookmarkPad = false;
}
/// <summary>
/// <inheritdoc/>
/// </summary>
public override bool CanToggle {
get {
return false;
}
}
/// <summary>
/// <inheritdoc/>
/// </summary>
public override IImage Image {
get {
return SelectedFrameImage;
}
}
protected override ITextMarker CreateMarker(ITextMarkerService markerService)
{
IDocumentLine line = this.Document.GetLine(this.LineNumber);
ITextMarker marker = markerService.Create(line.Offset, line.Length);
marker.BackgroundColor = Color.FromRgb(162, 208, 80);
marker.ForegroundColor = Colors.White;
return marker;
}
}
}

BIN
src/Main/StartUp/Project/Resources/BitmapResources.resources

Binary file not shown.
Loading…
Cancel
Save