QGPTimingFrame.hh

Go to the documentation of this file.
00001 
00002 #ifndef _QGP_TIMING_FRAME_HH_
00003 #define _QGP_TIMING_FRAME_HH_
00004 
00005 #include "QGuiCompositeFrame.hh"
00006 
00007 #include "QGuiSlider.hh"
00008 
00016 class QGPTimingFrame: public QGuiCompositeFrame
00017 {
00018 public:
00019    QGPTimingFrame(const TGWindow* parent, UInt_t w, UInt_t h);
00020 
00021    virtual ~QGPTimingFrame();
00022 
00024    UInt_t GetPeriod() const { return fPeriodWidget->GetValue(); }
00026    UInt_t GetDelay() const { return fDelayWidget->GetValue(); }
00027 
00029    bool SetPeriod(UInt_t period) { return fPeriodWidget->SetValue(period); }
00031    bool SetDelay(UInt_t delay)   { return fDelayWidget->SetValue(delay); }
00032    
00034    UInt_t GetPeriodMin() const { return fPeriodWidget->GetMin(); }
00036    UInt_t GetPeriodMax() const { return fPeriodWidget->GetMax(); }
00037 
00039    UInt_t GetDelayMin() const { return fDelayWidget->GetMin(); }
00041    UInt_t GetDelayMax() const { return fDelayWidget->GetMax(); }
00042 
00044    void SetPeriodRange(UInt_t min, UInt_t max)
00045    { fPeriodWidget->SetRange(min,max); };    
00047    void SetDelayRange(UInt_t min, UInt_t max)
00048    { fDelayWidget->SetRange(min,max); }; 
00049 
00051    void Lock();
00053    void Unlock();
00054 
00055    void PeriodChanged() { Emit("PeriodChanged()"); } //*SIGNAL*
00056    void DelayChanged() { Emit("DelayChanged()"); }   //*SIGNAL*
00057 
00058 private:
00059    QGuiSlider* fPeriodWidget;
00060    QGuiSlider* fDelayWidget;
00061 
00062    ClassDef(QGPTimingFrame,0)
00063 };
00064 #endif

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