QGuiSlider.hh

Go to the documentation of this file.
00001 
00002 #ifndef _QGUI_SLIDER_HH_
00003 #define _QGUI_SLIDER_HH_
00004 
00005 #include "QGuiCompositeFrame.hh"
00006 
00007 class TGHSlider;
00008 class TGNumberEntryField;
00009 
00020 class QGuiSlider: public QGuiCompositeFrame
00021 {
00022 public:
00029    QGuiSlider(const TGWindow* parent,
00030                    UInt_t min,
00031                    UInt_t max,
00032                    UInt_t startingPoint);
00033    
00035    virtual ~QGuiSlider();
00036 
00038    UInt_t GetValue() const { return fCurrVal; }
00039    
00044    bool SetValue(UInt_t value);
00045 
00047    UInt_t GetMin() const { return fMin; }
00049    UInt_t GetMax() const { return fMax; }
00050    
00055    bool SetRange(UInt_t min, UInt_t max);
00056 
00058    void UpdateNumberFrame();
00060    void UpdateSlider();
00061 
00063    void Lock();
00065    void Unlock();
00066 
00068    void ValueChanged() { Emit("ValueChanged()"); } //*SIGNAL*
00069 
00070 private:
00071    UInt_t fMin;
00072    UInt_t fMax;
00073    UInt_t fCurrVal;
00074 
00075    TGNumberEntryField* fNumberFrame;
00076    TGHSlider*  fSliderFrame;
00077 
00078    ClassDef(QGuiSlider,0)
00079 };
00080 #endif

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