mail-archives/monodevelop-patches-list/2004-March/000705.html

112 строки
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1100 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1100%20-%20trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000704.html">
<LINK REL="Next" HREF="000706.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1100 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1100%20-%20trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1100 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Wed Mar 3 23:10:29 EST 2004</I>
<P><UL>
<LI>Previous message: <A HREF="000704.html">[Monodevelop-patches-list] r1099 - in trunk/MonoDevelop: build/AddIns src/AddIns/DisplayBindings/SourceEditor/Gui
</A></li>
<LI>Next message: <A HREF="000706.html">[Monodevelop-patches-list] r1101 - in trunk/MonoDevelop: data/resources/glade src/AddIns/BackendBindings/CSharpBinding src/AddIns/BackendBindings/CSharpBinding/Gui
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#705">[ date ]</a>
<a href="thread.html#705">[ thread ]</a>
<a href="subject.html#705">[ subject ]</a>
<a href="author.html#705">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: tberman
Date: 2004-03-03 23:10:29 -0500 (Wed, 03 Mar 2004)
New Revision: 1100
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
adding a red text background to the current line of execution.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-03-04 03:48:15 UTC (rev 1099)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-03-04 04:10:29 UTC (rev 1100)
@@ -57,11 +57,23 @@
public class SourceEditorBuffer : SourceBuffer, IClipboardHandler {
SourceLanguagesManager slm = new SourceLanguagesManager ();
+ TextTag markup;
public SourceEditorBuffer () : base (new SourceTagTable ())
{
+ markup = new TextTag (&quot;breakpoint&quot;);
+ markup.Background = &quot;red&quot;;
+ TagTable.Add (markup);
}
+ public void MarkupLine (int linenumber)
+ {
+ TextIter begin_line = GetIterAtLine (linenumber);
+ TextIter end_line = begin_line;
+ begin_line.LineOffset = 0;
+ end_line.ForwardToLineEnd ();
+ ApplyTag (markup, begin_line, end_line);
+ }
public void LoadFile (string file, string mime)
{
LoadText (File.OpenText (file).ReadToEnd (), mime);
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-03-04 03:48:15 UTC (rev 1099)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-03-04 04:10:29 UTC (rev 1100)
@@ -101,7 +101,8 @@
public void ExecutingAt (int linenumber)
{
buf.ClearMarks (SourceMarkerType.ExecutionMark);
- buf.ToggleMark (linenumber, SourceMarkerType.ExecutionMark);
+ buf.ToggleMark (linenumber, SourceMarkerType.ExecutionMark);
+ buf.MarkupLine (linenumber);
}
public void SimulateKeyPress (ref Gdk.EventKey evnt)
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000704.html">[Monodevelop-patches-list] r1099 - in trunk/MonoDevelop: build/AddIns src/AddIns/DisplayBindings/SourceEditor/Gui
</A></li>
<LI>Next message: <A HREF="000706.html">[Monodevelop-patches-list] r1101 - in trunk/MonoDevelop: data/resources/glade src/AddIns/BackendBindings/CSharpBinding src/AddIns/BackendBindings/CSharpBinding/Gui
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#705">[ date ]</a>
<a href="thread.html#705">[ thread ]</a>
<a href="subject.html#705">[ subject ]</a>
<a href="author.html#705">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>