Changeset 12374 for trunk/FACT++


Ignore:
Timestamp:
11/04/11 19:06:39 (13 years ago)
Author:
tbretz
Message:
Set the region of interest for channel 9 in addition, enabled the RoiCh9 controls.
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

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

    r12293 r12374  
    363363}
    364364
    365 void MainWindow::on_fFadRoiCmd_valueChanged(int val)
    366 {
    367     const int32_t vals[2] = { -1, val };
    368     Dim::SendCommand("FAD_CONTROL/SET_REGION_OF_INTEREST", vals);
     365void MainWindow::on_fFadRoiCmd_valueChanged(int)
     366{
     367    const int32_t vals1[2] = { -1, fFadRoiCmd->value() };
     368    Dim::SendCommand("FAD_CONTROL/SET_REGION_OF_INTEREST", vals1);
     369
     370    const int32_t vals2[2] = { 8,  fFadRoiCh9Cmd->value() };
     371    Dim::SendCommand("FAD_CONTROL/SET_REGION_OF_INTEREST", vals2);
    369372}
    370373
  • trunk/FACT++/gui/MainWindow.h

    r12293 r12374  
    8787    void on_fFadPrescalerCmd_valueChanged(int);
    8888    void on_fFadRunNumberCmd_valueChanged(int);
    89     void on_fFadRoiCmd_valueChanged(int);
     89    void on_fFadRoiCmd_valueChanged(int = 0);
     90    void on_fFadRoiCh9Cmd_valueChanged(int) { on_fFadRoiCmd_valueChanged(); }
    9091
    9192    void FadDacCmd_valueChanged(uint16_t, uint16_t);
Note: See TracChangeset for help on using the changeset viewer.