コード例 #1
0
    //execution
    public PulseExecute(int personID, string personName, int sessionID, string type, double fixedPulse, int totalPulsesNum,
                        Chronopic cp, Gtk.Window app, int pDN,
                        bool volumeOn, Preferences.GstreamerTypes gstreamer,
                        //double progressbarLimit,
                        ExecutingGraphData egd
                        )
    {
        this.personID       = personID;
        this.personName     = personName;
        this.sessionID      = sessionID;
        this.type           = type;
        this.fixedPulse     = fixedPulse;
        this.totalPulsesNum = totalPulsesNum;


        this.cp  = cp;
        this.app = app;

        this.pDN       = pDN;
        this.volumeOn  = volumeOn;
        this.gstreamer = gstreamer;
//		this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Pulse
        eventDone = new Pulse();
    }
コード例 #2
0
ファイル: run.cs プロジェクト: dineshkummarc/chronojump
    //run execution
    public RunExecute(int personID, int sessionID, string type, double distance,   
			Chronopic cp, Gtk.TextView event_execute_textview_message, Gtk.Window app, int pDN, bool metersSecondsPreferred, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.sessionID = sessionID;
        this.type = type;
        this.distance = distance;

        this.cp = cp;
        this.event_execute_textview_message = event_execute_textview_message;
        this.app = app;

        this.pDN = pDN;
        this.metersSecondsPreferred = metersSecondsPreferred;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Run
        eventDone = new Run();
    }
コード例 #3
0
    //reactionTime execution
    public ReactionTimeExecute(int personID, string personName, int sessionID,   
			Chronopic cp, Gtk.TextView event_execute_textview_message, Gtk.Window app, int pDN, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;

        this.cp = cp;
        this.event_execute_textview_message = event_execute_textview_message;
        this.app = app;

        this.pDN = pDN;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a ReactionTime
        eventDone = new ReactionTime();

        //updateProgressBar = new UpdateProgressBar();
    }
コード例 #4
0
ファイル: pulse.cs プロジェクト: dineshkummarc/chronojump
    //execution
    public PulseExecute(int personID, string personName, int sessionID, string type, double fixedPulse, int totalPulsesNum,  
			Chronopic cp, Gtk.TextView event_execute_textview_message, Gtk.Window app, int pDN, bool volumeOn,
			//double progressbarLimit, 
			ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;
        this.fixedPulse = fixedPulse;
        this.totalPulsesNum = totalPulsesNum;

        this.cp = cp;
        this.event_execute_textview_message = event_execute_textview_message;
        this.app = app;

        this.pDN = pDN;
        this.volumeOn = volumeOn;
        //		this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Pulse
        eventDone = new Pulse();
    }
コード例 #5
0
    public MultiChronopicExecute(int personID, string personName, int sessionID, string type,
                                 Chronopic cp, Chronopic cp2, Chronopic cp3, Chronopic cp4, bool syncFirst, bool deleteFirst, string vars,
                                 Gtk.Window app,
                                 //double progressbarLimit,
                                 ExecutingGraphData egd

                                 )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;

        this.cp          = cp;
        this.cp2         = cp2;
        this.cp3         = cp3;
        this.cp4         = cp4;
        this.syncFirst   = syncFirst;
        this.deleteFirst = deleteFirst;
        this.vars        = vars;

        this.app = app;
//		this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        chronopics = 4;
        initValues();
    }
コード例 #6
0
ファイル: jump.cs プロジェクト: davidfombella/chronojump
    //jump execution
    public JumpRjExecute(int personID, string personName,
                         int sessionID, string type, double fall, double weight,
                         double limitAsDouble, bool jumpsLimited,
                         Chronopic cp, Gtk.Window app, int pDN, bool allowFinishAfterTime,
                         bool volumeOn, Preferences.GstreamerTypes gstreamer,
                         RepetitiveConditionsWindow repetitiveConditionsWin,
                         double progressbarLimit, ExecutingGraphData egd
                         )
    {
        this.personID      = personID;
        this.personName    = personName;
        this.sessionID     = sessionID;
        this.type          = type;
        this.fall          = fall;
        this.weight        = weight;
        this.limitAsDouble = limitAsDouble;

        this.jumpsLimited = jumpsLimited;
        if (jumpsLimited)
        {
            this.limited = limitAsDouble.ToString() + "J";
        }
        else
        {
            //this.limited = limitAsDouble.ToString() + "T"; define later, because it can be higher if allowFinishRjAfterTime is defined
        }

        this.cp  = cp;
        this.app = app;

        this.pDN = pDN;
        this.allowFinishAfterTime    = allowFinishAfterTime;
        this.volumeOn                = volumeOn;
        this.gstreamer               = gstreamer;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit        = progressbarLimit;
        this.egd = egd;

        if (TypeHasFall)
        {
            hasFall = true;
        }
        else
        {
            hasFall = false;
        }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        timesForSavingRepetitive = 10;         //number of times that this repetive event needs for being recorded in temporal table

        //initialize eventDone as a JumpRj
        eventDone = new JumpRj();
    }
コード例 #7
0
ファイル: jump.cs プロジェクト: davidfombella/chronojump
    //jump execution
    public JumpExecute(int personID, string personName, int sessionID, string type, double fall, double weight,
                       Chronopic cp, Gtk.Window app, int pDN,
                       bool volumeOn, Preferences.GstreamerTypes gstreamer,
                       double progressbarLimit, ExecutingGraphData egd, string description,
                       bool avoidGraph  //on configChronojump.Exhibition do not show graph because it gets too slow with big database
                       )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;
        this.fall       = fall;   //-1 means has to be calculated with a previous jump
        this.weight     = weight;

        this.cp  = cp;
        this.app = app;

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.gstreamer        = gstreamer;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;
        this.avoidGraph       = avoidGraph;

        if (TypeHasFall)
        {
            hasFall = true;
        }
        else
        {
            hasFall = false;
        }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Jump
        eventDone = new Jump();
    }
コード例 #8
0
    //jump execution
    public JumpExecute(int personID, string personName, int sessionID, string type, double fall, double weight,
                       Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool volumeOn,
                       double progressbarLimit, ExecutingGraphData egd, string description
                       )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;
        this.fall       = fall;   //-1 means has to be calculated with a previous jump
        this.weight     = weight;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;

        if (TypeHasFall)
        {
            hasFall = true;
        }
        else
        {
            hasFall = false;
        }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Jump
        eventDone = new Jump();
    }
コード例 #9
0
ファイル: jump.cs プロジェクト: GNOME/chronojump
    //jump execution
    public JumpExecute(int personID, string personName, int sessionID, string type, double fall, double weight,  
			Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd, string description
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;
        this.fall = fall; //-1 means has to be calculated with a previous jump
        this.weight = weight;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.description = description;

        if(TypeHasFall) {
            hasFall = true;
        } else {
            hasFall = false;
        }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();
        fakeButtonThreadDyed = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Jump
        eventDone = new Jump();
    }
コード例 #10
0
    //run execution
    public RunExecute(int personID, int sessionID, string type, double distance,
                      Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app,
                      int pDN, bool metersSecondsPreferred, bool volumeOn,
                      double progressbarLimit, ExecutingGraphData egd,
                      Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime,
                      bool speedStartArrival
                      )
    {
        this.personID  = personID;
        this.sessionID = sessionID;
        this.type      = type;
        this.distance  = distance;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.metersSecondsPreferred = metersSecondsPreferred;
        this.volumeOn         = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival      = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        //initialize eventDone as a Run
        eventDone = new Run();
    }
コード例 #11
0
ファイル: jump.cs プロジェクト: dineshkummarc/chronojump
    //jump execution
    public JumpExecute(int personID, string personName, int sessionID, string type, double fall, double weight,  
			Chronopic cp, Gtk.TextView event_execute_textview_message, Gtk.Window app, int pDN, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;
        this.fall = fall;
        this.weight = weight;

        this.cp = cp;
        this.event_execute_textview_message = event_execute_textview_message;
        this.app = app;

        this.pDN = pDN;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        if(TypeHasFall) {
            hasFall = true;
        } else {
            hasFall = false;
        }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Jump
        eventDone = new Jump();
    }
コード例 #12
0
ファイル: run.cs プロジェクト: GNOME/chronojump
    //run execution
    public RunExecute(int personID, int sessionID, string type, double distance,   
			Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, 
			int pDN, bool metersSecondsPreferred, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd,
			Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime, 
			bool speedStartArrival
			)
    {
        this.personID = personID;
        this.sessionID = sessionID;
        this.type = type;
        this.distance = distance;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.metersSecondsPreferred = metersSecondsPreferred;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();
        fakeButtonThreadDyed = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a Run
        eventDone = new Run();
    }
コード例 #13
0
    //reactionTime execution
    public ReactionTimeExecute(int personID, string personName, int sessionID,
                               Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool volumeOn,
                               double progressbarLimit, ExecutingGraphData egd, string description
                               )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        FakeButtonReactionTimeStart = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;


        //initialize eventDone as a ReactionTime
        eventDone = new ReactionTime();

        //updateProgressBar = new UpdateProgressBar();
    }
コード例 #14
0
ファイル: reactionTime.cs プロジェクト: GNOME/chronojump
    //reactionTime execution
    public ReactionTimeExecute(int personID, string personName, int sessionID, string type,
			Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool volumeOn,
			double progressbarLimit, ExecutingGraphData egd, string description
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.pDN = pDN;
        this.volumeOn = volumeOn;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.description = description;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();
        fakeButtonThreadDyed = new Gtk.Button();

        FakeButtonReactionTimeStart = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        //initialize eventDone as a ReactionTime
        eventDone = new ReactionTime();

        //updateProgressBar = new UpdateProgressBar();
    }
コード例 #15
0
    //reactionTime execution
    public ReactionTimeExecute(int personID, string personName, int sessionID, string type,
                               Chronopic cp, Gtk.Window app, int pDN,
                               bool volumeOn, Preferences.GstreamerTypes gstreamer,
                               double progressbarLimit, ExecutingGraphData egd, string description
                               )
    {
        this.personID   = personID;
        this.personName = personName;
        this.sessionID  = sessionID;
        this.type       = type;

        this.cp  = cp;
        this.app = app;

        this.pDN              = pDN;
        this.volumeOn         = volumeOn;
        this.gstreamer        = gstreamer;
        this.progressbarLimit = progressbarLimit;
        this.egd              = egd;
        this.description      = description;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        FakeButtonReactionTimeStart = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;


        //initialize eventDone as a ReactionTime
        eventDone = new ReactionTime();

        //updateProgressBar = new UpdateProgressBar();
    }
コード例 #16
0
ファイル: jump.cs プロジェクト: dineshkummarc/chronojump
    //jump execution
    public JumpRjExecute(int personID, string personName, 
			int sessionID, string type, double fall, double weight, 
			double limitAsDouble, bool jumpsLimited, 
			Chronopic cp, Gtk.TextView event_execute_textview_message, Gtk.Window app, int pDN, bool allowFinishAfterTime, 
			bool volumeOn, RepetitiveConditionsWindow repetitiveConditionsWin,
			double progressbarLimit, ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;
        this.fall = fall;
        this.weight = weight;
        this.limitAsDouble = limitAsDouble;

        this.jumpsLimited = jumpsLimited;
        if(jumpsLimited) {
            this.limited = limitAsDouble.ToString() + "J";
        } else {
            //this.limited = limitAsDouble.ToString() + "T"; define later, because it can be higher if allowFinishRjAfterTime is defined
        }

        this.cp = cp;
        this.event_execute_textview_message = event_execute_textview_message;
        this.app = app;

        this.pDN = pDN;
        this.allowFinishAfterTime = allowFinishAfterTime;
        this.volumeOn = volumeOn;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        if(TypeHasFall) { hasFall = true; }
        else { hasFall = false; }

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        timesForSavingRepetitive = 10; //number of times that this repetive event needs for being recorded in temporal table

        //initialize eventDone as a JumpRj
        eventDone = new JumpRj();
    }
コード例 #17
0
    ExecutingGraphData event_execute_initializeVariables(
			int personID,
			string personName,
			string phasesName, 
			string tableName,
			string event_execute_eventType
			)
    {
        eventExecuteHideAllTables();
        eventExecuteHideImages();

        if(Util.IsWindows()) {
            event_execute_rightMargin = 50;
            event_execute_arcSystemCorrection = 1;
        }

        event_execute_configureColors();

        event_graph_label_graph_person.Text = personName;
        event_graph_label_graph_test.Text = event_execute_eventType;

        event_execute_textview_message.Buffer = UtilGtk.TextViewPrint("");

        //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.event_execute_personID = personID;
        this.event_execute_tableName = tableName;

        this.event_execute_eventType = event_execute_eventType;

        //finish not sensitive for all events.
        //Later reactive, interval and pulse will sensitive it when a subevent is done
        event_execute_button_finish.Sensitive = false;

        if(event_execute_tableName == Constants.JumpTable) {
            showJumpSimpleLabels();
        } else if(event_execute_tableName == Constants.JumpRjTable) {
            showJumpReactiveLabels();
        } else if(event_execute_tableName == Constants.RunTable) {
            showRunSimpleLabels();
        } else if(event_execute_tableName == Constants.RunIntervalTable) {
            showRunIntervalLabels();
        } else if(event_execute_tableName == Constants.ReactionTimeTable) {
            showReactionTimeLabels();
        } else if(event_execute_tableName == Constants.PulseTable) {
            showPulseLabels();
        }

        event_execute_button_cancel.Sensitive = true;

        event_execute_clearDrawingArea();
        clearProgressBars();

        event_execute_eventbox_jump_simple_tc.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 255, 0, 0));
        event_execute_eventbox_jump_simple_tf.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 0, 0, 255));
        event_execute_eventbox_jump_reactive_tc.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 255, 0, 0));
        event_execute_eventbox_jump_reactive_tf.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 0, 0, 255));
        event_execute_eventbox_run_simple_time.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 255, 0, 0));
        event_execute_eventbox_run_simple_speed.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 0, 0, 255));
        event_execute_eventbox_run_interval_time.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 255, 0, 0));
        event_execute_eventbox_run_interval_speed.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 0, 0, 255));
        event_execute_eventbox_pulse_time.ModifyBg(Gtk.StateType.Normal, new Gdk.Color( 0, 0, 255)); //only one serie in pulse, leave blue

        layout = new Pango.Layout (event_execute_drawingarea.PangoContext);
        layout.FontDescription = Pango.FontDescription.FromString ("Courier 7");

        eventHasEnded = false;

        if(videoOn)
            cameraRecordInitiate();

        ExecutingGraphData executingGraphData = new ExecutingGraphData(
                event_execute_button_cancel, event_execute_button_finish,
                event_execute_textview_message,
                event_execute_label_event_value,  event_execute_label_time_value,
                event_execute_progressbar_event,  event_execute_progressbar_time);
        return executingGraphData;
    }
コード例 #18
0
    //run execution
    public RunIntervalExecute(int personID, int sessionID, string type, double distanceInterval, double limitAsDouble, bool tracksLimited,
                              Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool metersSecondsPreferred,
                              bool volumeOn, RepetitiveConditionsWindow repetitiveConditionsWin,
                              double progressbarLimit, ExecutingGraphData egd,
                              Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime,
                              bool speedStartArrival
                              )
    {
        this.personID         = personID;
        this.sessionID        = sessionID;
        this.type             = type;
        this.distanceInterval = distanceInterval;
        this.limitAsDouble    = limitAsDouble;
        this.tracksLimited    = tracksLimited;

        //if distances are variable
        distancesString = "";
        if (distanceInterval == -1)
        {
            RunType runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(type, false);
            distancesString = runType.DistancesString;
        }


        if (tracksLimited)
        {
            this.limited = limitAsDouble.ToString() + "R";             //'R'uns (don't put 'T'racks for not confusing with 'T'ime)
        }
        else
        {
            this.limited = limitAsDouble.ToString() + "T";
            timeTotal    = limitAsDouble;
        }


        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.metersSecondsPreferred = metersSecondsPreferred;
        this.pDN      = pDN;
        this.volumeOn = volumeOn;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit        = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival      = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded  = new Gtk.Button();
        fakeButtonFinished    = new Gtk.Button();
        fakeButtonThreadDyed  = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph            = false;

        timesForSavingRepetitive = 1;         //number of times that this repetive event needs for being recorded in temporal table

        //initialize eventDone as a RunInterval
        eventDone = new RunInterval();
    }
コード例 #19
0
ファイル: run.cs プロジェクト: GNOME/chronojump
    //run execution
    public RunIntervalExecute(int personID, int sessionID, string type, double distanceInterval, double limitAsDouble, bool tracksLimited,  
			Chronopic cp, Gtk.Label event_execute_label_message, Gtk.Window app, int pDN, bool metersSecondsPreferred, 
			bool volumeOn, RepetitiveConditionsWindow repetitiveConditionsWin,
			double progressbarLimit, ExecutingGraphData egd ,
			Constants.DoubleContact checkDoubleContactMode, int checkDoubleContactTime, 
			bool speedStartArrival
			)
    {
        this.personID = personID;
        this.sessionID = sessionID;
        this.type = type;
        this.distanceInterval = distanceInterval;
        this.limitAsDouble = limitAsDouble;
        this.tracksLimited = tracksLimited;

        //if distances are variable
        distancesString = "";
        if(distanceInterval == -1) {
            RunType runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(type, false);
            distancesString = runType.DistancesString;
        }

        if(tracksLimited) {
            this.limited = limitAsDouble.ToString() + "R"; //'R'uns (don't put 'T'racks for not confusing with 'T'ime)
        } else {
            this.limited = limitAsDouble.ToString() + "T";
            timeTotal = limitAsDouble;
        }

        this.cp = cp;
        this.event_execute_label_message = event_execute_label_message;
        this.app = app;

        this.metersSecondsPreferred = metersSecondsPreferred;
        this.pDN = pDN;
        this.volumeOn = volumeOn;
        this.repetitiveConditionsWin = repetitiveConditionsWin;
        this.progressbarLimit = progressbarLimit;
        this.egd = egd;
        this.checkDoubleContactMode = checkDoubleContactMode;
        this.checkDoubleContactTime = checkDoubleContactTime;
        this.speedStartArrival = speedStartArrival;

        fakeButtonUpdateGraph = new Gtk.Button();
        fakeButtonEventEnded = new Gtk.Button();
        fakeButtonFinished = new Gtk.Button();
        fakeButtonThreadDyed = new Gtk.Button();

        simulated = false;

        needUpdateEventProgressBar = false;
        needUpdateGraph = false;

        timesForSavingRepetitive = 1; //number of times that this repetive event needs for being recorded in temporal table

        //initialize eventDone as a RunInterval
        eventDone = new RunInterval();
    }
コード例 #20
0
    //execution
    public MultiChronopicExecute(int personID, string personName, int sessionID, string type, 
			Chronopic cp, bool syncFirst, bool deleteFirst, string vars, Gtk.Window app,
			//double progressbarLimit, 
			ExecutingGraphData egd 
			)
    {
        this.personID = personID;
        this.personName = personName;
        this.sessionID = sessionID;
        this.type = type;

        this.cp = cp;
        this.syncFirst = syncFirst;
        this.deleteFirst = deleteFirst;
        this.vars = vars;

        this.app = app;
        //		this.progressbarLimit = progressbarLimit;
        this.egd = egd;

        chronopics = 1;
        initValues();
    }