QGEOffsetFrame.hh

Go to the documentation of this file.
00001 
00002 #ifndef _QELE_OFFSET_FRAME_HH_
00003 #define _QELE_OFFSET_FRAME_HH_
00004 
00005 #include "QGuiCompositeFrame.hh"
00006 
00007 class QGuiSlider;
00008 class TGCheckButton;
00009 class QGuiRadioSelector;
00010 class TTimer;
00011 class TGTextButton;
00012 
00020 class QGEOffsetFrame: public QGuiCompositeFrame
00021 {
00022 public:
00023    QGEOffsetFrame(const TGWindow* parent);
00024    
00025    virtual ~QGEOffsetFrame();
00026 
00032    Bool_t SetOffsetDac(UInt_t offDac);
00033    
00039    Bool_t SetOffsetHi(UInt_t offHi);
00040 
00045    void SetOffsetSBit(Bool_t sBit);
00046 
00051    void SetOffsetPolarity(Bool_t pol);
00052 
00054    UInt_t GetOffsetDac() const;
00055    
00057    UInt_t GetOffsetHi() const;
00058 
00063    Bool_t GetOffsetSBit() const;
00064 
00069    Bool_t GetOffsetPolarity() const;
00070 
00071 
00072    void UpdateBits();
00073    void UpdateSlider();
00074 
00075    void SetBitValue(UInt_t value);
00076 
00077    void HandleTimeout() { OffsetChanged(); }
00078 
00079    void OffsetChanged() { Emit("OffsetChanged()"); } //*SIGNAL*
00080 
00082    void Lock(Bool_t doLock);
00083 private:
00085    UInt_t fOffset;
00086    Bool_t fSBit;
00087    Bool_t fPolarity;
00088 
00089    QGuiSlider *fSliderWidget;
00090    TGCheckButton* fBitButtons[14];
00091    TGCheckButton* fSBitButton;
00092    QGuiRadioSelector* fPolarityWidget;
00093 
00094    const UInt_t kTimerDelay;
00095    TTimer* fTimer;
00096 
00097    ClassDef(QGEOffsetFrame,0);
00098 };
00099 #endif

Generated on Tue Nov 16 10:49:54 2010 for CUORE Software by  doxygen 1.5.6
INFN Genova privacy policy