[Monodevelop-patches-list] r1272 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Mar 28 00:39:07 EST 2004
Author: jluke
Date: 2004-03-28 00:39:06 -0500 (Sun, 28 Mar 2004)
New Revision: 1272
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
implement IsReadOnly and fix langauge to be a switch statement
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-03-28 05:01:22 UTC (rev 1271)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-03-28 05:39:06 UTC (rev 1272)
@@ -1,3 +1,8 @@
+2004-03-28 John Luke <jluke at cfl.rr.com>
+
+ * Gui/SourceEditorDisplayBinding.cs:
+ implement IsReadOnly, fix language to be a switch statement
+
2004-03-27 Todd berman <tberman at sevenl.net>
* CodeCompletion/CodeCompletionDataProvider.cs: use the
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-03-28 05:01:22 UTC (rev 1271)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-03-28 05:39:06 UTC (rev 1272)
@@ -62,11 +62,21 @@
{
SourceEditorDisplayBindingWrapper w = new SourceEditorDisplayBindingWrapper ();
- // FIXME
- if (language == "C#")
- language = "text/x-csharp";
- else
- language = "text/plain";
+ //FIXME
+ switch (language) {
+ case "C#":
+ language = "text/x-csharp";
+ break;
+ case "Java":
+ language = "text/x-java";
+ break;
+ //case language "VB":
+ // language = "text/x-vbnet";
+ // break;
+ default:
+ language = "text/plain";
+ break;
+ }
w.LoadString (language, sps.Parse (content));
return w;
@@ -152,8 +162,7 @@
public override bool IsReadOnly
{
get {
- // FIXME
- return false;
+ return se.View.Editable;
}
}
@@ -336,15 +345,13 @@
// CANTDO: show tabs Key = "ShowTabs"
// CANTDO eol makers Key = "ShowEOLMarkers"
// CANTDO: show horizontal ruler Key = "ShowHRuler"
- // CANTDO: underline errors Key = "ShowErrors"
+ // CANDO in pango1.4: underline errors Key = "ShowErrors"
// DONOTDO: auto insert braces Key = "AutoInsertCurlyBracket"
// TODO: Show Invalid Lines Key = "ShowInvalidLines"
- // TODO: CodeCompletion Key = "EnableCodeCompletion"
// TODO: Code Folding Key = "EnableFolding"
// TODO: Double Buffering Key = "DoubleBuffer"
// TODO: can move past EOL Key = "CursorBehindEOL"
// TODO: auto insert template Key = "AutoInsertTemplates"
- // TODO: hide mouse while typing Key = "HideMouseCursor"
}
}
}
More information about the Monodevelop-patches-list
mailing list