Changeset 11957 for trunk/FACT++


Ignore:
Timestamp:
09/02/11 15:57:38 (13 years ago)
Author:
tbretz
Message:
Adapted to little changed in the Bias tab
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

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

    r11949 r11957  
    599599}
    600600
    601 void MainWindow::on_fBiasDecrease_clicked()
    602 {
    603     if (!fInHandler)
    604         Dim::SendCommand("BIAS_CONTROL/DECREASE_GLOBAL_DAC", uint16_t(fBiasOffsetDac->value()));
    605 }
    606 
    607 void MainWindow::on_fBiasIncrease_clicked()
    608 {
    609     if (!fInHandler)
    610         Dim::SendCommand("BIAS_CONTROL/INCREASE_GLOBAL_DAC", -int16_t(fBiasOffsetDac->value()));
     601void MainWindow::on_fBiasAddOffset_clicked()
     602{
     603    if (fInHandler)
     604        return;
     605
     606    if (fBiasOffsetDac->value()<0)
     607        Dim::SendCommand("BIAS_CONTROL/DECREASE_GLOBAL_DAC", uint16_t(-fBiasOffsetDac->value()));
     608    else
     609        Dim::SendCommand("BIAS_CONTROL/INCREASE_GLOBAL_DAC", uint16_t(fBiasOffsetDac->value()));
    611610}
    612611
  • trunk/FACT++/gui/MainWindow.h

    r11949 r11957  
    178178    void on_fBiasSetToZero_clicked();
    179179    void on_fBiasReset_clicked();
    180     void on_fBiasDecrease_clicked();
    181     void on_fBiasIncrease_clicked();
     180    void on_fBiasAddOffset_clicked();
    182181    void on_fBiasApplyOffset_clicked();
    183182
Note: See TracChangeset for help on using the changeset viewer.