preferences.cs 4.49 KB
Newer Older
Xavier de Blas's avatar
Xavier de Blas committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
/*
 * This file is part of ChronoJump
 *
 * ChronoJump is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or   
 *    (at your option) any later version.
 *    
 * ChronoJump is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 *    GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *  Copyright (C) 2004-2014   Xavier de Blas <xaviblas@gmail.com> 
 */

using System;
using System.Data;

public class Preferences 
{
	/*
	 * these are sent to preferences window
	 */

	public int digitsNumber;
	public bool showHeight;
	public bool showPower;
	public bool showInitialSpeed;
	public bool showAngle;
	public bool showQIndex;
	public bool showDjIndex;
	public bool askDeletion;
	public bool weightStatsPercent;		//AKA weightPercentPreferred
	public bool heightPreferred;
	public bool metersSecondsPreferred;
	public bool encoderPropulsive;
	public double encoderSmoothCon;
	public int videoDeviceNum; 		//AKA videoDevice
	public Constants.Encoder1RMMethod encoder1RMMethod;
	public string CSVExportDecimalSeparator;
	public bool RGraphsTranslate;
	public bool useHeightsOnJumpIndexes;
	public Constants.EncoderAutoSaveCurve encoderAutoSaveCurve;
	
	/*
	 * these are NOT sent to preferences window
	 */
	
	public bool allowFinishRjAfterTime;
	public bool volumeOn;
	public bool videoOn;
	public int evaluatorServerID;
	public string versionAvailable;
	public bool runSpeedStartArrival;
	public bool runISpeedStartArrival;
	public string machineID;
	public Constants.MultimediaStorage multimediaStorage;
	public string databaseVersion;

	/*
	 * these are unused on SqlitePreferences.SelectAll
	 */
	
	//public string chronopicPort;
	//public bool simulated;
	//public string language;
	//public double encoderSmoothEccCon; 	//unused
	//public double inertialmomentum; 	//unused



	public Preferences() {
	}
	
	public static Preferences LoadAllFromSqlite() {
		return SqlitePreferences.SelectAll();
	}
	
	
	/*
	public Preferences(
			string databaseVersion, string chronopicPort, int digitsNumber, 
			bool showHeight, bool showPower, bool showInitialSpeed, bool showAngle, 
			bool showQIndex, bool showDjIndex, 
			bool simulated bool weightStatsPercent, bool askDeletion, 
			bool heightPreferred, bool metersSecondsPreferred, 
			string language, bool allowFinishRjAfterTime, 
			bool volumeOn, bool videoOn, bool evaluatorServerID, 
			string versionAvailable, bool runSpeedStartArrival, bool runISpeedStartArrival, 
			string machineID, Constants.MultimediaStorage multimediaStorage, 
			bool encoderPropulsive, double encoderSmoothCon, 
			int videoDeviceNum, Constants.Encoder1RMMethod encoder1RMMethod, 
			string CSVExportDecimalSeparator, bool RGraphsTranslate, 
			bool useHeightsOnJumpIndexes, Constants.EncoderAutoSaveCurve encoderAutoSaveCurve
			) 
	{
	 this.databaseVersion = databaseVersion; 
	 this.chronopicPort = chronopicPort;
	 this.digitsNumber = digitsNumber;
	 this.showHeight = showHeight;
	 this.showPower = showPower;
	 this.showInitialSpeed = showInitialSpeed;
	 this.showAngle = showAngle;
	 this.showQIndex = showQIndex;
	 this.showDjIndex = showDjIndex; 
	 this.simulated = simulated;
	 this.weightStatsPercent =  
	 this.askDeletion = askDeletion;
	 this.heightPreferred = heightPreferred;
	 this.metersSecondsPreferred = metersSeconsPreferred;
	 this.language = language;
	 this.allowFinishRjAfterTime = allowFinishRjAfterTime;
	 this.volumeOn = volumeOn;
	 this.videoOn = videoOn;
	 this.evaluatorServerID = evaluatorServerID;
	 this.versionAvailable = versionAvailable;
	 this.runSpeedStartArrival = runSpeedStartArrival;
	 this.runISpeedStartArrival = runISpeedStartArrival;
	 this.machineID = machineID;
	 this.multimediaStorage = multimediaStorage;
	 this.encoderPropulsive = encoderPropulsive;
	 this.encoderSmoothCon = encoderSmoothCon;
	 this.videoDeviceNum = videoDeviceNum;
	 this.encoder1RMMethod = encoder1RMMethod;
	 this.CSVExportDecimalSeparator = CSVExportDecimalSeparator;
	 this.RGraphsTranslate = RGraphsTranslate;
	 this.useHeightsOnJumpIndexes = useHeightsOnJumpIndexes;
	 this.encoderAutoSaveCurve = encoderAutoSaveCurve;
	}
	*/

	~Preferences() {}
	   
}