Ignore:
Timestamp:
06/09/11 16:23:48 (10 years ago)
Author:
tbretz
Message:
Added the possibility to disable all patches/pixels except one.
File:
1 edited

Legend:

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

    r10936 r10953  
    247247void MainWindow::on_fPixelEnable_stateChanged(int b)
    248248{
    249     cout << "PIXEL: " << fPixelIdx->value() << " " << b << endl;
    250249    if (!fInHandler)
    251250        Dim::SendCommand(b==Qt::Unchecked ?
    252251                         "FTM_CONTROL/DISABLE_PIXEL" : "FTM_CONTROL/ENABLE_PIXEL",
    253252                         uint16_t(fPixelIdx->value()));
     253}
     254
     255void MainWindow::on_fPixelDisableOthers_clicked()
     256{
     257    Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PIXELS_EXCEPT",
     258                     uint16_t(fPixelIdx->value()));
     259}
     260
     261void MainWindow::on_fThresholdDisableOthers_clicked()
     262{
     263    Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PATCHES_EXCEPT",
     264                     uint16_t(fThresholdIdx->value()));
    254265}
    255266
Note: See TracChangeset for help on using the changeset viewer.