[Monodevelop-patches-list] r2243 - in trunk/MonoDevelop: . Core/src/AddIns/DisplayBindings/SourceEditor Core/src/AddIns/DisplayBindings/SourceEditor/Gui Extras/MonoQuery

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Feb 10 18:44:07 EST 2005


Author: tberman
Date: 2005-02-10 18:44:07 -0500 (Thu, 10 Feb 2005)
New Revision: 2243

Added:
   trunk/MonoDevelop/svnci
Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
   trunk/MonoDevelop/Extras/MonoQuery/
   trunk/MonoDevelop/configure.in
Log:
Polishing up configure.in a bit, and ignoring MonoQuery.addin.xml.

Also adding Ben Maurer's svnci script. This is what should be used for committing, as it generates proper commit messages.

Patch from Ben Motmans:

2005-02-10  Ben Motmans  <ben.motmans at gmail.com>

	* Gui/SourceEditorView.cs: Added ScrollUp and ScrollDown methods
	for ctrl-up/down keybinds



Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-02-09 19:30:58 UTC (rev 2242)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-02-10 23:44:07 UTC (rev 2243)
@@ -1,3 +1,8 @@
+2005-02-10  Ben Motmans  <ben.motmans at gmail.com>
+
+	* Gui/SourceEditorView.cs: Added ScrollUp and ScrollDown methods
+	for ctrl-up/down keybinds
+
 2005-02-02  John Luke  <john.luke at gmail.com>
 
 	* EditorBindings.glade:

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-02-09 19:30:58 UTC (rev 2242)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-02-10 23:44:07 UTC (rev 2243)
@@ -246,6 +246,24 @@
 			
 			return true;
 		}
+
+		void ScrollUp () {
+			ParentEditor.Vadjustment.Value -= (ParentEditor.Vadjustment.StepIncrement / 5);
+			if (ParentEditor.Vadjustment.Value < 0.0d)
+				ParentEditor.Vadjustment.Value = 0.0d;
+
+			ParentEditor.Vadjustment.ChangeValue();
+		}
+
+		void ScrollDown () {
+			double maxvalue = ParentEditor.Vadjustment.Upper - ParentEditor.Vadjustment.PageSize;
+
+			ParentEditor.Vadjustment.Value += (ParentEditor.Vadjustment.StepIncrement / 5);
+			if (ParentEditor.Vadjustment.Value > maxvalue)
+				ParentEditor.Vadjustment.Value = maxvalue;
+
+			ParentEditor.Vadjustment.ChangeValue();
+		}
 		
 		protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
 		{
@@ -306,6 +324,12 @@
 				case Gdk.Key.l:
 					DeleteLine ();
 					return true;
+				case Gdk.Key.Up:
+					ScrollUp ();
+					return true;
+				case Gdk.Key.Down:
+					ScrollDown ();
+					return true;
 				}
 				break;
 			}


Property changes on: trunk/MonoDevelop/Extras/MonoQuery
___________________________________________________________________
Name: svn:ignore
   - Makefile
Makefile.in
MonoQuery.dll

   + Makefile
Makefile.in
MonoQuery.dll
MonoQuery.addin.xml


Modified: trunk/MonoDevelop/configure.in
===================================================================
--- trunk/MonoDevelop/configure.in	2005-02-09 19:30:58 UTC (rev 2242)
+++ trunk/MonoDevelop/configure.in	2005-02-10 23:44:07 UTC (rev 2243)
@@ -124,13 +124,9 @@
    [PKG_CHECK_MODULES(MONO_DEBUGGER, mono-debugger >= $MONO_DEBUGGER_REQUIRED_VERSION,
 				     enable_debugger=yes, enable_debugger=no)],
    enable_debugger=no)
- AM_CONDITIONAL(ENABLE_DEBUGGER, test x$enable_debugger = xyes)]
+ AM_CONDITIONAL(ENABLE_DEBUGGER, test x$enable_debugger = xyes)
  AC_SUBST(MONO_DEBUGGER_LIBS)
 
-dnl check for sqlite supported mono
-MONOQUERY_REQUIRED_MONO_VERSION=1.1.2.99
-PKG_CHECK_MODULES(MONO_VERSION, mono >= MONOQUERY_REQUIRED_MONO_VERSION, enable_sqlite=yes, enable_sqliter=no)
-
 MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
 AC_SUBST(MOZILLA_HOME)
 

Added: trunk/MonoDevelop/svnci
===================================================================
--- trunk/MonoDevelop/svnci	2005-02-09 19:30:58 UTC (rev 2242)
+++ trunk/MonoDevelop/svnci	2005-02-10 23:44:07 UTC (rev 2243)
@@ -0,0 +1,54 @@
+#! /bin/bash
+
+FILES=$@
+
+echo "Creating commit message..."
+
+MSG=`mktemp`
+
+svn di $FILES | filterdiff -i'*ChangeLog' | 
+  sed -e '/^[^+]/d' -e 's,^[+],,' -e '/^[^+]/b' -e 's,^[+][+],In,' -e 's,/ChangeLog.*$,:,' -e 's,ChangeLog.*$,.:,' >> $MSG
+
+case `grep '^In' $MSG | wc -l` in
+1) (echo 1d; echo w; echo q) | ed - $MSG ;;
+*) ;;
+esac
+
+cat $MSG
+
+echo About to commit
+svn st $FILES
+
+while [[ 1 ]]
+do 
+
+	read -a RESPONSE  -p"Would you like to continue (Y)es/(N)o/(E)dit Message:  "
+	if [[ $? != 0 ]]
+	then
+		RESPONSE="N"
+	fi
+
+	case $RESPONSE in
+		"Y" | "y" | "yes" | "Yes")
+		
+			echo "Comitting..."
+			svn ci -F $MSG $FILES
+			rm $MSG
+			exit 0
+		;;
+		
+		"N" | "n" | "no" | "No")
+			echo "Aborting..."
+			rm $MSG
+			exit 1
+		;;
+		
+		"E" | "e" | "ed" | "Ed" | "Edit" | "edit")
+			vi $MSG
+			# try again
+		;;
+		*)
+			# try again
+		;;
+	esac
+done


Property changes on: trunk/MonoDevelop/svnci
___________________________________________________________________
Name: svn:executable
   + *




More information about the Monodevelop-patches-list mailing list