Changeset 12179


Ignore:
Timestamp:
10/13/11 09:22:50 (13 years ago)
Author:
tbretz
Message:
Added treatment of new buttons fThresholdEnable/DisablePatch
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r12161 r12179  
    35993599    {
    36003600        const PixelMapEntry &entry = fPixelMap.index(fPixelIdx->value());
    3601 
    36023601        Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PIXELS_EXCEPT", uint16_t(entry.hw()));
    36033602    }
     
    36073606        const int16_t isw = fThresholdIdx->value();
    36083607        const int16_t ihw = isw<0 ? -1 : fPatchMapHW[isw];
     3608        if (ihw<0)
     3609            return;
    36093610
    36103611        Dim::SendCommand("FTM_CONTROL/DISABLE_ALL_PATCHES_EXCEPT", ihw);
     3612    }
     3613
     3614    void on_fThresholdEnablePatch_clicked()
     3615    {
     3616        const int16_t isw = fThresholdIdx->value();
     3617        const int16_t ihw = isw<0 ? -1 : fPatchMapHW[isw];
     3618       if (ihw<0)
     3619            return;
     3620
     3621        Dim::SendCommand("FTM_CONTROL/ENABLE_PATCH", ihw);
     3622    }
     3623
     3624    void on_fThresholdDisablePatch_clicked()
     3625    {
     3626        const int16_t isw = fThresholdIdx->value();
     3627        const int16_t ihw = isw<0 ? -1 : fPatchMapHW[isw];
     3628       if (ihw<0)
     3629            return;
     3630
     3631        Dim::SendCommand("FTM_CONTROL/DISABLE_PATCH", ihw);
    36113632    }
    36123633
  • trunk/FACT++/gui/MainWindow.h

    r12063 r12179  
    208208    virtual void on_fPixelDisableOthers_clicked() = 0;
    209209    virtual void on_fThresholdDisableOthers_clicked() = 0;
     210    virtual void on_fThresholdEnablePatch_clicked() = 0;
     211    virtual void on_fThresholdDisablePatch_clicked() = 0;
    210212
    211213    virtual void DisplayRates() = 0;
Note: See TracChangeset for help on using the changeset viewer.