Example #1
0
    //this is called on AutoDetect
    static public ChronopicWindow Create(Chronopic cpDetected, ArrayList myCpd, string myEncoderPort, bool recreate, bool volumeOn)
    {
        LogB.Debug("enter create");
        if (ChronopicWindowBox != null && recreate)
        {
            ChronopicWindowBox.chronopic_window.Hide();
        }
        if (ChronopicWindowBox == null || recreate)
        {
            ChronopicWindowBox = new ChronopicWindow(cpDetected, myCpd);
        }

        LogB.Information("create cp is null? " + (ChronopicWindowBox.cp == null).ToString());

        //don't show until View is called
        //ChronopicWindowBox.chronopic_window.Show ();

        ChronopicWindowBox.volumeOn = volumeOn;

        ChronopicWindowBox.setEncoderPort(myEncoderPort);

        ChronopicWindowBox.fakeWindowDone = new Gtk.Button();
        //ChronopicWindowBox.fakeWindowReload = new Gtk.Button();

        return(ChronopicWindowBox);
    }
Example #2
0
    static public ChronopicWindow View(ChronojumpMode cmode, bool volumeOn)
    {
        if (ChronopicWindowBox == null)
        {
            ChronopicWindowBox = new ChronopicWindow(null, cpd);
        }

        LogB.Information("view cp is null? " + (ChronopicWindowBox.cp == null).ToString());


        ChronopicWindowBox.volumeOn = volumeOn;

        if (cmode == ChronojumpMode.JUMPORRUN || cmode == ChronojumpMode.OTHER)
        {
            ChronopicWindowBox.notebook_main.CurrentPage = 0;
            ChronopicWindowBox.checkChronopicDisconnected();             //encoder does not need this because there's no connection

            ChronopicWindowBox.frame_supplementary.Visible =
                (cmode == ChronojumpMode.OTHER); //can have multichronopic
        }
        else                                     //cmode == ChronojumpMode.ENCODER)
        {
            ChronopicWindowBox.notebook_main.CurrentPage = 1;
        }

        ChronopicWindowBox.createCombos();
        ChronopicWindowBox.setEncoderPort(encoderPort);

        //ports info comes from gui/chronojump.cs to Create mehod
        if (!ChronopicWindowBox.connected)
        {
            ChronopicWindowBox.connectingInfoShow();
        }

        ChronopicWindowBox.chronopic_window.Show();
        ChronopicWindowBox.chronopic_window.Present();

        return(ChronopicWindowBox);
    }
Example #3
0
 private void on_chronopic_clicked(object o, EventArgs args)
 {
     chronopicWin = ChronopicWindow.View(volumeOn);
     //chronopicWin.FakeWindowReload.Clicked += new EventHandler(chronopicWindowReload);
     chronopicWin.FakeWindowDone.Clicked += new EventHandler(on_chronopic_window_connected_or_done);
 }
Example #4
0
    /* ---------------------------------------------------------
     * ----------------  MULTI CHRONOPIC EXECUTION -------------
     *  --------------------------------------------------------
     */
    //recreate is used when a Chronopic was disconnected
    private void createChronopicWindow(bool recreate)
    {
        ArrayList cpd = new ArrayList();
        for(int i=1; i<=4;i++) {
            ChronopicPortData a = new ChronopicPortData(i,"",false);
            cpd.Add(a);
        }

        chronopicWin = ChronopicWindow.Create(cpd, recreate, volumeOn);
        //chronopicWin.FakeButtonCancelled.Clicked += new EventHandler(on_chronopic_window_cancelled);
        chronopicLabels(0);
    }
Example #5
0
    public static ChronopicWindow View(ChronojumpMode cmode, bool volumeOn)
    {
        if (ChronopicWindowBox == null) {
            ChronopicWindowBox = new ChronopicWindow (null, cpd);
        }

        LogB.Information("view cp is null? " + (ChronopicWindowBox.cp == null).ToString());

        ChronopicWindowBox.volumeOn = volumeOn;

        if(cmode == ChronojumpMode.JUMPORRUN || cmode == ChronojumpMode.OTHER) {
            ChronopicWindowBox.notebook_main.CurrentPage = 0;
            ChronopicWindowBox.checkChronopicDisconnected(); //encoder does not need this because there's no connection

            ChronopicWindowBox.frame_supplementary.Visible =
                (cmode == ChronojumpMode.OTHER); //can have multichronopic
        }
        else	//cmode == ChronojumpMode.ENCODER)
            ChronopicWindowBox.notebook_main.CurrentPage = 1;

        ChronopicWindowBox.createCombos();
        ChronopicWindowBox.setEncoderPort(encoderPort);

        //ports info comes from gui/chronojump.cs to Create mehod
        if(! ChronopicWindowBox.connected)
            ChronopicWindowBox.connectingInfoShow();

        ChronopicWindowBox.chronopic_window.Show();
        ChronopicWindowBox.chronopic_window.Present();

        return ChronopicWindowBox;
    }
Example #6
0
    //this is called on AutoDetect
    public static ChronopicWindow Create(Chronopic cpDetected, ArrayList myCpd, string myEncoderPort, bool recreate, bool volumeOn)
    {
        LogB.Debug("enter create");
        if (ChronopicWindowBox != null && recreate) {
            ChronopicWindowBox.chronopic_window.Hide();
        }
        if (ChronopicWindowBox == null || recreate) {
            ChronopicWindowBox = new ChronopicWindow (cpDetected, myCpd);
        }

        LogB.Information("create cp is null? " + (ChronopicWindowBox.cp == null).ToString());

        //don't show until View is called
        //ChronopicWindowBox.chronopic_window.Show ();

        ChronopicWindowBox.volumeOn = volumeOn;

        ChronopicWindowBox.setEncoderPort(myEncoderPort);

        ChronopicWindowBox.fakeWindowDone = new Gtk.Button();
        //ChronopicWindowBox.fakeWindowReload = new Gtk.Button();

        return ChronopicWindowBox;
    }
Example #7
0
    public static ChronopicWindow View(bool volumeOn)
    {
        if (ChronopicWindowBox == null) {
            ChronopicWindowBox = new ChronopicWindow (cpd);
        }

        ChronopicWindowBox.volumeOn = volumeOn;
        ChronopicWindowBox.checkChronopicDisconnected();
        ChronopicWindowBox.createCombos();

        //findPorts only puts info on textview
        //ports info comes from gui/chronojump.cs to Create mehod
        ChronopicWindowBox.findPorts();

        ChronopicWindowBox.chronopic_window.Show();
        ChronopicWindowBox.chronopic_window.Present();
        Log.WriteLine("bbb");

        return ChronopicWindowBox;
    }
Example #8
0
    //recreate is used when a Chronopic was disconnected
    //port names com from gui/chronojump.cs to this method (myCpd)
    public static ChronopicWindow Create(ArrayList myCpd, bool recreate, bool volumeOn)
    {
        if (ChronopicWindowBox != null && recreate) {
            ChronopicWindowBox.chronopic_window.Hide();
        }
        if (ChronopicWindowBox == null || recreate) {
            ChronopicWindowBox = new ChronopicWindow (myCpd);
        }

        //don't show until View is called
        //ChronopicWindowBox.chronopic_window.Show ();

        ChronopicWindowBox.volumeOn = volumeOn;

        ChronopicWindowBox.fakeWindowDone = new Gtk.Button();
        //ChronopicWindowBox.fakeWindowReload = new Gtk.Button();

        return ChronopicWindowBox;
    }