Changeset 10736 for trunk


Ignore:
Timestamp:
05/17/11 21:00:14 (14 years ago)
Author:
tbretz
Message:
Addec ode for trigger signal enables and for pixel disable.
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/MainWindow.cc

    r10678 r10736  
    224224}
    225225
     226void MainWindow::on_fPixelEnable_stateChanged(bool b)
     227{
     228    if (fInHandler)
     229        return;
     230
     231    const uint16_t idx = fPixelIdx->value();
     232
     233    const uint8_t d[3] = { idx&0xff, idx>>8, !b };
     234
     235    Dim::SendCommand("FTM_CONTROL/DISABLE_PIXEL", d);
     236}
     237
     238void MainWindow::on_fEnableTrigger_stateChanged(bool b)
     239{
     240    if (!fInHandler)
     241        Dim::SendCommand("FTM_CONTROL/ENABLE_TRIGGER", b);
     242}
     243
     244void MainWindow::on_fEnableExt1_stateChanged(bool b)
     245{
     246    if (!fInHandler)
     247        Dim::SendCommand("FTM_CONTROL/ENABLE_EXT1", b);
     248}
     249
     250void MainWindow::on_fEnableExt2_stateChanged(bool b)
     251{
     252    if (!fInHandler)
     253        Dim::SendCommand("FTM_CONTROL/ENABLE_EXT2", b);
     254}
     255
     256void MainWindow::on_fEnableTimeMarker_stateChanged(bool b)
     257{
     258    if (!fInHandler)
     259        Dim::SendCommand("FTM_CONTROL/ENABLE_TIM", b);
     260}
     261
     262void MainWindow::on_fEnableVeto_stateChanged(bool b)
     263{
     264    if (!fInHandler)
     265        Dim::SendCommand("FTM_CONTROL/ENABLE_VETO", b);
     266}
     267
    226268void MainWindow::slot_fFtuLED_clicked()
    227269{
  • trunk/FACT++/gui/MainWindow.h

    r10733 r10736  
    4343
    4444    // Tab: FTM
    45     void on_fEnableTrigger_clicked(bool) { }
    46     void on_fEnableExt1_clicked(bool) { }
    47     void on_fEnableExt2_clicked(bool) { }
    48     void on_fEnableTimeMarker_clicked(bool) { }
    49     void on_fEnableVeto_clicked(bool) { }
     45    void on_fEnableTrigger_stateChanged(bool);
     46    void on_fEnableExt1_stateChanged(bool);
     47    void on_fEnableExt2_stateChanged(bool);
     48    void on_fEnableTimeMarker_stateChanged(bool);
     49    void on_fEnableVeto_stateChanged(bool);
    5050
    5151    void on_fTriggerSeqPed_valueChanged(int)   { SetTriggerSequence(); }
     
    8282    virtual void on_fThresholdIdx_valueChanged(int) { }
    8383    virtual void on_fPixelIdx_valueChanged(int) { }
     84    void on_fPixelEnable_stateChanged(bool);
    8485
    8586    // Tab: Chat
Note: See TracChangeset for help on using the changeset viewer.