[chronojump] test's video disabled is selected on preferences



commit 1bb93b42948a9b03c818cb78715f8f83fc1ea40b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 15 14:13:15 2011 +0200

    test's video disabled is selected on preferences

 src/gui/eventExecute.cs   |   61 +-------------------------------------------
 src/sqlite/main.cs        |    2 +-
 src/sqlite/preferences.cs |    2 +-
 3 files changed, 4 insertions(+), 61 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 6ff363e..16feed5 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -40,7 +40,6 @@ using LongoMatch.Video.Common;
 
 public partial class ChronoJumpWindow 
 {
-//	[Widget] Gtk.Window event_execute;
 	
 //	[Widget] Gtk.Label event_execute_label_person;
 //	[Widget] Gtk.Label event_execute_label_event_type;
@@ -61,7 +60,6 @@ public partial class ChronoJumpWindow
 	[Widget] Gtk.Button event_execute_button_cancel;
 	[Widget] Gtk.Button event_execute_button_finish;
 	[Widget] Gtk.Button event_execute_button_update;
-//	[Widget] Gtk.Button button_close;
 
 	
 	[Widget] Gtk.Table event_execute_table_jump_simple;
@@ -192,56 +190,6 @@ public partial class ChronoJumpWindow
 		"100", "200", "300", "400", "500"
 	};
 	
-	//static EventExecuteWindow EventExecuteWindowBox;
-	
-/*	
-	EventExecuteWindow () {
-		Glade.XML gladeXML;
-		gladeXML = Glade.XML.FromAssembly (Util.GetGladePath() + "chronojump.glade", "event_execute", null);
-		gladeXML.Autoconnect(this);
-		
-		//put an icon to window
-		UtilGtk.IconWindow(event_execute);
-
-		//this hides it when it's creating (hiding and showing tables stuff)
-		//then user doesn't see a moving/changing creation window
-		event_execute.Hide ();
-		
-		if(Util.IsWindows()) {
-			event_execute_rightMargin = 50;
-			event_execute_arcSystemCorrection = 1;
-		}
-
-		configureColors();
-	}
-	*/
-
-	/*
-	static public EventExecuteWindow Show (
-			string windowTitle, string phasesName, int personID, string personName, int sessionID, 
-			string event_execute_tableName, string event_execute_eventType, int pDN, double limit, bool connected)
-	{
-		if (EventExecuteWindowBox == null) {
-			EventExecuteWindowBox = new EventExecuteWindow (); 
-		}
-
-		//create the properties window if doesnt' exists, but do not show
-		if(eventGraphConfigureWin == null)
-			eventGraphConfigureWin = EventGraphConfigureWindow.Show(false);
-
-		
-		EventExecuteWindowBox.hideAllTables();
-		EventExecuteWindowBox.hideImages();
-	
-		EventExecuteWindowBox.initializeVariables (
-				windowTitle, phasesName, personID, personName, sessionID, 
-				event_execute_tableName, event_execute_eventType, pDN, limit, connected);
-
-		EventExecuteWindowBox.event_execute.Show ();
-
-		return EventExecuteWindowBox;
-	}
-	*/
 
 	ExecutingGraphData event_execute_initializeVariables (
 			int personID,
@@ -271,16 +219,10 @@ public partial class ChronoJumpWindow
 		//this.event_execute_personName.Text = event_execute_personName; 	//"Jumps" (rjInterval), "Runs" (runInterval), "Ticks" (pulses), 
 		this.event_execute_label_phases_name.Text = phasesName; 	//"Jumps" (rjInterval), "Runs" (runInterval), "Ticks" (pulses), 
 								//"Phases" (simple jumps, dj, simple runs)
-//		this.personID = personID;
 		this.event_execute_personID = personID;
-//		this.event_execute_label_person.Text = personName;
 		this.event_execute_tableName = tableName;
-//		this.sessionID = sessionID;
 
 		this.event_execute_eventType = event_execute_eventType;
-//		this.event_execute_label_event_type.Text = this.event_execute_eventType;
-//		this.pDN = pDN;
-//		this.event_execute_limit = event_execute_limit;
 
 		//finish not sensitive for all events. 
 		//Later reactive, interval and pulse will sensitive it when a subevent is done
@@ -322,7 +264,8 @@ public partial class ChronoJumpWindow
 	
 		eventHasEnded = false;
 	
-		cameraRecordInitiate();
+		if(videoOn)
+			cameraRecordInitiate();
 		
 		ExecutingGraphData executingGraphData = new ExecutingGraphData(
 				event_execute_button_cancel, event_execute_button_finish, 
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index 588a626..9212842 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -1110,7 +1110,7 @@ class Sqlite
 				conversionRateTotal = 2;
 
 				conversionRate = 1;
-				SqlitePreferences.Insert ("videoOn", "True"); 
+				SqlitePreferences.Insert ("videoOn", "False"); 
 				conversionRate = 2;
 				Log.WriteLine("Converted DB to 0.82 Added videoOn"); 
 
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index 4f0d853..770c1ba 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -59,7 +59,7 @@ class SqlitePreferences : Sqlite
 		Insert ("language", "es-ES"); 
 		Insert ("allowFinishRjAfterTime", "True"); 
 		Insert ("volumeOn", "True"); 
-		Insert ("videoOn", "True"); 
+		Insert ("videoOn", "False"); 
 		Insert ("evaluatorServerID", "-1");
 		Insert ("versionAvailable", "");
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]