[Monodevelop-patches-list] r430 - in trunk/MonoDevelop/src: AddIns/DisplayBindings/TextEditor/Gui/Editor Libraries/ICSharpCode.TextEditor/src/Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Jan 10 19:08:51 EST 2004
Author: tberman
Date: 2004-01-10 19:08:51 -0500 (Sat, 10 Jan 2004)
New Revision: 430
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs
trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
Log:
fix all the copy paste bugs i could find:
1) not working
2) menu sensitivity not contextually correct
3) yeow
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs 2004-01-11 00:03:27 UTC (rev 429)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/TextEditorDisplayBinding.cs 2004-01-11 00:08:51 UTC (rev 430)
@@ -358,102 +358,57 @@
#region ICSharpCode.SharpDevelop.Gui.IClipboardHandler interface implementation
public bool EnableCut {
get {
-#if GTK
- // FIXME: GTKize
-#else
return textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.EnableCut;
-#endif
- return true;
}
}
public bool EnableCopy {
get {
-#if GTK
- // FIXME: GTKize
-#else
return textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.EnableCopy;
-#endif
- return true;
}
}
public bool EnablePaste {
get {
-#if GTK
- // FIXME: GTKize
-#else
return textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.EnablePaste;
-#endif
- return true;
}
}
public bool EnableDelete {
get {
-#if GTK
- // FIXME: GTKize
-#else
return textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.EnableDelete;
-#endif
- return true;
}
}
public bool EnableSelectAll {
get {
-#if GTK
- // FIXME: GTKize
-#else
return textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.EnableSelectAll;
-#endif
- return true;
}
}
public void SelectAll(object sender, System.EventArgs e)
{
-#if GTK
- // FIXME: GTKize
-#else
textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.SelectAll(sender, e);
-#endif
}
public void Delete(object sender, System.EventArgs e)
{
-#if GTK
- // FIXME: GTKize
-#else
textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.Delete(sender, e);
-#endif
}
public void Paste(object sender, System.EventArgs e)
{
-#if GTK
- // FIXME: GTKize
-#else
textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.Paste(sender, e);
-#endif
}
public void Copy(object sender, System.EventArgs e)
{
-#if GTK
- // FIXME: GTKize
-#else
textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.Copy(sender, e);
-#endif
}
public void Cut(object sender, System.EventArgs e)
{
-#if GTK
- // FIXME: GTKize
-#else
textAreaControl.ActiveTextAreaControl.TextArea.ClipboardHandler.Cut(sender, e);
-#endif
}
#endregion
}
Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs 2004-01-11 00:03:27 UTC (rev 429)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs 2004-01-11 00:08:51 UTC (rev 430)
@@ -42,9 +42,10 @@
}
}
- /*
+
public bool EnablePaste {
get {
+ //FIXME: This should make sure pastable data is somewhere on the clipboard.
// Clipboard.GetDataObject may throw an exception...
try {
//IDataObject data = Clipboard.GetDataObject();
@@ -53,8 +54,9 @@
Console.WriteLine("Got exception while enablepaste : " + e);
return false;
}
+ return true;
}
- }*/
+ }
public bool EnableDelete {
get {
More information about the Monodevelop-patches-list
mailing list