PrintLabelWithTooltip() public static method

public static PrintLabelWithTooltip ( Gtk l, string s ) : void
l Gtk
s string
return void
コード例 #1
0
ファイル: event.cs プロジェクト: kleopatra999/chronojump
    public void RunANoStrides()
    {
        string message = Catalog.GetString("This Run Analysis is not valid because there are no strides.");

        UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
    }
コード例 #2
0
ファイル: event.cs プロジェクト: kleopatra999/chronojump
    private void runATouchPlatform()
    {
        string message = Catalog.GetString("Always remember to touch platform at ending. If you don't do it, Chronojump will crash at next execution.");

        UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
    }
コード例 #3
0
 public void RunANoStrides()
 {
     UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
 }
コード例 #4
0
ファイル: event.cs プロジェクト: kleopatra999/chronojump
    //onTimer allow to update progressbar_time every 50 milliseconds
    //also can change platform state in simulated mode
    //protected void onTimer( Object source, ElapsedEventArgs e )
    protected virtual void onTimer( )
    {
        //this is not ok because not always is called every 50 milliseconds and then timer gets outdated
        //timerCount = timerCount + .05; //0,05 segons == 50 milliseconds, time between each call of onTimer

        //used Utc.Now because is lot faster:
        //http://stackoverflow.com/questions/28637/is-datetime-now-the-best-way-to-measure-a-functions-performance
        DateTime timerNow = DateTime.UtcNow;
        TimeSpan ts       = timerNow.Subtract(timerStart);

        timerCount = ts.TotalSeconds;

        /* this will be good for not continue counting the time on eventWindow when event has finished
         * this will help to sync chronopic data with the timerCount data
         * later also, copy the value of the chronopic to the timerCount label
         */

        //updateTimeProgressBar();
        if (needEndEvent)
        {
            //app1.EventEnded();
            fakeButtonEventEnded.Click();
            //needEndEvent = false;
            if (needUpdateGraphType == eventType.MULTICHRONOPIC && type == Constants.RunAnalysisName && finish)
            {
                //app1.RunATouchPlatform();
                //fakeButtonRunATouchPlatform.Click();
                runATouchPlatform();
            }
        }
        else
        {
            updateTimeProgressBar();
        }


        if (simulated)
        {
            eventSimulatedShouldChangePlatform();
        }

        if (needUpdateEventProgressBar)
        {
            //update event progressbar
            //app1.ProgressBarEventOrTimePreExecution(
            progressBarEventOrTimePreExecution(
                updateProgressBar.IsEvent,
                updateProgressBar.PercentageMode,
                updateProgressBar.ValueToShow
                );

            needUpdateEventProgressBar = false;
        }

        if (needUpdateGraph)
        {
            //solve problems when runAnalysis ended and tries to paint window
            if (needUpdateGraphType == eventType.MULTICHRONOPIC && type == Constants.RunAnalysisName && finish)
            {
                LogB.Information("is MC, RA, finished!");
            }
            else if (needUpdateGraphType == eventType.MULTICHRONOPIC && type == Constants.RunAnalysisName && !finish)
            {
                LogB.Information("is MC, RA, NOT finished!");
                updateGraph();
            }
            else
            {
                updateGraph();
            }

            needUpdateGraph = false;
        }

        if (needSensitiveButtonFinish)
        {
            //ButtonFinishMakeSensitive();
            egd.Button_finish.Sensitive = true;
            needSensitiveButtonFinish   = false;
        }

        //RSA
        if (needShowCountDown)
        {
            feedbackMessage = countDownMessage();
            UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
        }
        else if (needShowFeedbackMessage)
        {
            UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
            needShowFeedbackMessage = false;
        }


        //check if it should finish by time
        if (shouldFinishByTime())
        {
            finish = true;
            updateProgressBarForFinish();
        }
    }
コード例 #5
0
    // races specific --------------------------------->

    private void runATouchPlatform()
    {
        UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
    }