[Monodevelop-patches-list] r2544 - in trunk/MonoDevelop/Core/src: AddIns/DisplayBindings/SourceEditor AddIns/DisplayBindings/SourceEditor/Gui MonoDevelop.Base MonoDevelop.Base/Gui MonoDevelop.Base/Gui/Workbench/Layouts

Jacob Ilsø Christensen <jacobilsoe@gmail.com> jacobilsoe at mono-cvs.ximian.com
Wed May 18 16:30:48 EDT 2005


Author: jacobilsoe
Date: 2005-05-18 16:30:48 -0400 (Wed, 18 May 2005)
New Revision: 2544

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
   trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
   trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/IWorkbenchLayout.cs
   trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
Log:
Added ctrl+tab/ctrl+shift+tab support for tabs

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-05-16 18:21:12 UTC (rev 2543)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-05-18 20:30:48 UTC (rev 2544)
@@ -1,3 +1,7 @@
+2005-05-16  Jacob Ilsø Christensen  <jacobilsoe at gmail.com>
+
+	* Gui/SourceEditorView.cs: Added support to ctrl+tab/shift+ctrl+tab through open files.
+
 2005-05-15  Todd Berman  <tberman at off.net>
 
 	* texteditoraddin.glade: Add some missing 'Activates Default' props.

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-05-16 18:21:12 UTC (rev 2543)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-05-18 20:30:48 UTC (rev 2544)
@@ -281,7 +281,7 @@
 			Gdk.Key key = evnt.Key;
 			uint state = (uint)evnt.State;
 			state &= 1101u;
-			const uint Normal = 0, Shift = 1, Control = 4; /*ShiftControl = 5, Alt = 8*/
+			const uint Normal = 0, Shift = 1, Control = 4, ShiftControl = 5; /*, Alt = 8*/
 			
 			switch (state) {
 			case Normal:
@@ -316,6 +316,14 @@
 					return true;
 				}
 				break;
+			case ShiftControl:
+				switch (key)
+				{
+				case Gdk.Key.ISO_Left_Tab:
+					WorkbenchSingleton.Workbench.WorkbenchLayout.PreviousTab();
+					return true;
+				}
+				break;
 			case Control:
 				switch (key) {
 				case Gdk.Key.space:
@@ -330,6 +338,9 @@
 				case Gdk.Key.Down:
 					ScrollDown ();
 					return true;
+				case Gdk.Key.Tab:
+					WorkbenchSingleton.Workbench.WorkbenchLayout.NextTab();
+					return true;
 				}
 				break;
 			}

Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog	2005-05-16 18:21:12 UTC (rev 2543)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog	2005-05-18 20:30:48 UTC (rev 2544)
@@ -1,3 +1,9 @@
+2005-05-17  Jacob Ilsø Christensen  <jacobilsoe at gmail.com>
+
+	* Gui/IWorkbenchLayout.cs:
+	* Gui/Workbench/Layouts/SdiWorkspaceLayout.cs:
+	Added methods to go to next/previous tab page.
+
 2005-05-15  Lluis Sanchez Gual  <lluis at novell.com> 
 
 	* Services/File/DefaultFileService.cs: Make the service GUI thread safe.
@@ -14,7 +20,7 @@
 	refereces of referenced projects. They are not needed for compiling, but
 	they are for running. The Build method now also builds required references.
 
-2005-05-09 Jacob Ilsø Christensen  <jacobilsoe at gmail.com>
+2005-05-09 Jacob Ilsø Christensen  <jacobilsoe at gmail.com>
  
  	* Gui/Pads/OpenTaskView.cs: Fixed Gtk warnings by using Clipboard.Text
 

Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/IWorkbenchLayout.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/IWorkbenchLayout.cs	2005-05-16 18:21:12 UTC (rev 2543)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/IWorkbenchLayout.cs	2005-05-18 20:30:48 UTC (rev 2544)
@@ -88,6 +88,16 @@
 		void RemoveTab (int pageNum);	
 
 		/// <summary>
+		/// Moves to the next tab.
+		/// </summary>          
+		void NextTab();
+		
+		/// <summary>
+		/// Moves to the previous tab.
+		/// </summary>          
+		void PreviousTab();
+		
+		/// <summary>
 		/// Is called, when the workbench window which the user has into
 		/// the foreground (e.g. editable) changed to a new one.
 		/// </summary>

Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs	2005-05-16 18:21:12 UTC (rev 2543)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs	2005-05-18 20:30:48 UTC (rev 2544)
@@ -504,7 +504,23 @@
 		public void RemoveTab (int pageNum) {
 			tabControl.RemovePage (pageNum);
 		}
+
+		/// <summary>
+		/// Moves to the next tab.
+		/// </summary>          
+		public void NextTab()
+		{
+			this.tabControl.NextPage();
+		}
 		
+		/// <summary>
+		/// Moves to the previous tab.
+		/// </summary>          
+		public void PreviousTab()
+		{
+			this.tabControl.PrevPage();
+		}
+		
 		public void ActiveMdiChanged(object sender, SwitchPageArgs e)
 		{
 			try {




More information about the Monodevelop-patches-list mailing list