[Monodevelop-patches-list] r2069 - in trunk/MonoDevelop/Core: build/AddIns src/AddIns/DisplayBindings/SourceEditor src/AddIns/DisplayBindings/SourceEditor/Gui src/Main/Base src/Main/Base/Commands src/Main/Base/Gui/ContentInterfaces
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Dec 10 20:19:14 EST 2004
Author: tberman
Date: 2004-12-10 20:19:14 -0500 (Fri, 10 Dec 2004)
New Revision: 2069
Modified:
trunk/MonoDevelop/Core/build/AddIns/ChangeLog
trunk/MonoDevelop/Core/build/AddIns/SharpDevelopCore.addin.xml
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Commands/EditCommands.cs
trunk/MonoDevelop/Core/src/Main/Base/Gui/ContentInterfaces/ICodeStyleOperations.cs
Log:
2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
* Gui/SourceEditorDisplayBinding.cs: Added support for the already
implemented Indent and UnIndent selection.
2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
* Commands/EditCommands.cs,
* Gui/ContentInterfaces/ICodeStyleOperations.cs: Added support and menu
entries for the already implemented Indent and UnIndent selection.
2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
* SharpDevelopCode.addin.xml: Added menus entries for Indent and
UnIndent selection
Modified: trunk/MonoDevelop/Core/build/AddIns/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/build/AddIns/ChangeLog 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/build/AddIns/ChangeLog 2004-12-11 01:19:14 UTC (rev 2069)
@@ -1,3 +1,8 @@
+2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
+
+ * SharpDevelopCode.addin.xml: Added menus entries for Indent and
+ UnIndent selection
+
2004-12-07 Alexandre Gomes <alexmipego at hotmail.com>
* SharpDevelopCore.Addin.xml: Added Comment Code and UncommentCode
Modified: trunk/MonoDevelop/Core/build/AddIns/SharpDevelopCore.addin.xml
===================================================================
--- trunk/MonoDevelop/Core/build/AddIns/SharpDevelopCore.addin.xml 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/build/AddIns/SharpDevelopCore.addin.xml 2004-12-11 01:19:14 UTC (rev 2069)
@@ -711,7 +711,14 @@
shortcut = "Control|Alt|U"
_label = "_Uncomment Code"
class = "MonoDevelop.Commands.UncommentCode"/>
-
+ <MenuItem id = "IndentSelection"
+ shortcut = "Control|Alt|Home"
+ _label = "_Indent Selection"
+ class = "MonoDevelop.Commands.IndentSelection"/>
+ <MenuItem id = "UnIndentSelection"
+ shortcut = "Control|Alt|End"
+ _label = "_Unindent Selection"
+ class = "MonoDevelop.Commands.UnIndentSelection"/>
</Conditional>
<MenuItem id = "Separator5" _label = "-" />
<Conditional action="Disable">
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-12-11 01:19:14 UTC (rev 2069)
@@ -1,3 +1,8 @@
+2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
+
+ * Gui/SourceEditorDisplayBinding.cs: Added support for the already
+ implemented Indent and UnIndent selection.
+
2004-12-10 Alexandre Gomes <alexmipego at hotmail.com>
* Gui/SourceEditorDisplayBinding.cs:
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-12-11 01:19:14 UTC (rev 2069)
@@ -380,6 +380,16 @@
{
se.Buffer.UncommentCode ();
}
+
+ void ICodeStyleOperations.IndentSelection ()
+ {
+ se.View.IndentSelection ();
+ }
+
+ void ICodeStyleOperations.UnIndentSelection ()
+ {
+ se.View.UnIndentSelection ();
+ }
#endregion
#region IBookmarkOperations
void IBookmarkOperations.ToggleBookmark ()
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-12-11 01:19:14 UTC (rev 2069)
@@ -1,3 +1,9 @@
+2004-12-11 Alexandre Gomes <alexmipego at hotmail.com>
+
+ * Commands/EditCommands.cs,
+ * Gui/ContentInterfaces/ICodeStyleOperations.cs: Added support and menu
+ entries for the already implemented Indent and UnIndent selection.
+
2004-12-09 Todd Berman <tberman at off.net>
* Gui/Pads/HelpBrowser/HelpViewer.cs: gtk# API changed again (thanks
Modified: trunk/MonoDevelop/Core/src/Main/Base/Commands/EditCommands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Commands/EditCommands.cs 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/src/Main/Base/Commands/EditCommands.cs 2004-12-11 01:19:14 UTC (rev 2069)
@@ -225,5 +225,50 @@
}
}
}
+
+ public class IndentSelection : AbstractMenuCommand
+ {
+ public override bool IsEnabled {
+ get {
+ IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+ IEditable editable = window != null ? window.ActiveViewContent as IEditable : null;
+ if (editable != null) {
+ return true;
+ }
+ return false;
+ }
+ }
+ public override void Run()
+ {
+ IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+ ICodeStyleOperations styling = window != null ? window.ActiveViewContent as ICodeStyleOperations : null;
+ if (styling != null) {
+ styling.IndentSelection ();
+ }
+ }
+ }
+
+ public class UnIndentSelection : AbstractMenuCommand
+ {
+ public override bool IsEnabled {
+ get {
+ IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+ IEditable editable = window != null ? window.ActiveViewContent as IEditable : null;
+ if (editable != null) {
+ return true;
+ }
+ return false;
+ }
+ }
+
+ public override void Run()
+ {
+ IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+ ICodeStyleOperations styling = window != null ? window.ActiveViewContent as ICodeStyleOperations : null;
+ if (styling != null) {
+ styling.UnIndentSelection ();
+ }
+ }
+ }
}
Modified: trunk/MonoDevelop/Core/src/Main/Base/Gui/ContentInterfaces/ICodeStyleOperations.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Gui/ContentInterfaces/ICodeStyleOperations.cs 2004-12-11 01:03:07 UTC (rev 2068)
+++ trunk/MonoDevelop/Core/src/Main/Base/Gui/ContentInterfaces/ICodeStyleOperations.cs 2004-12-11 01:19:14 UTC (rev 2069)
@@ -3,5 +3,7 @@
public interface ICodeStyleOperations {
void CommentCode ();
void UncommentCode ();
+ void IndentSelection ();
+ void UnIndentSelection ();
}
}
\ No newline at end of file
More information about the Monodevelop-patches-list
mailing list