#pragma once class CDppSlowThreshold { private: UCHAR mSlowChThreshold; //Slow ch threshold, Events w/amp lower not added to spectrum CSpinButtonCtrl *udThreshold; CEdit *lblThreshold; CEdit *lblThresholdChannels; long GainChannels; public: CDppSlowThreshold(void); ~CDppSlowThreshold(void); UCHAR GetSlowChThreshold(); void SetSlowChThreshold(UCHAR SlowChThresholdVal); void Thresholds_Setup(CSpinButtonCtrl *udThresholdObj, CEdit *lblThresholdObj, CEdit *lblThresholdChannelsObj); void SetSlowChThresholdFromStr(CString strSlowThresh); void SetSlowChThresholdFromVal(int intSlowThresh); void SetSlowChThresholdConfigFromStr(CString strSlowThresh); void DPPThreshold(int SpinPos); CString GetSlowThreshPcntStr(); CString GetSlowChThresStrFromVal(UCHAR byteSlowThres); void txtSlowThreshold_Click(); void txtSlowThresholdChannels_Click(); void SetGain(long GainVal); CString GetSlowThreshChStr(); CString GetSlowThreshChStrFromVal(UCHAR byteSlowThres); void UpdateSlowThresChDisplay(); UCHAR GetSlowThresholdSettingFromChannels(double dblSlowThreshChannels); UCHAR GetSlowThresholdSettingFromPercent(double dblSlowThresh); };