#pragma once class CDppSlowThreshold { private: unsigned char 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); unsigned char GetSlowChThreshold(); void SetSlowChThreshold(unsigned char 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(unsigned char byteSlowThres); void txtSlowThreshold_Click(); void txtSlowThresholdChannels_Click(); void SetGain(long GainVal); CString GetSlowThreshChStr(); CString GetSlowThreshChStrFromVal(unsigned char byteSlowThres); void UpdateSlowThresChDisplay(); unsigned char GetSlowThresholdSettingFromChannels(double dblSlowThreshChannels); unsigned char GetSlowThresholdSettingFromPercent(double dblSlowThresh); };