CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/Fireworks/Core/src/FWNumberEntry.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWNumberEntryField_h
00002 #define Fireworks_Core_FWNumberEntryField_h
00003 
00004 #include "TGNumberEntry.h"
00005 
00006 //------------------------------FWNumberEntryField------------------------------//
00007 
00008 class FWNumberEntryField : public TGNumberEntryField
00009 {
00010 private:
00011 
00012 public:
00013    FWNumberEntryField(const TGWindow *p, Int_t id,
00014                       Double_t val, GContext_t norm,
00015                       FontStruct_t font = GetDefaultFontStruct(),
00016                       UInt_t option = kSunkenFrame | kDoubleBorder,
00017                       Pixel_t back = GetWhitePixel());
00018    FWNumberEntryField(const TGWindow *parent = 0,
00019                       Int_t id = -1, Double_t val = 0,
00020                       EStyle style = kNESReal,
00021                       EAttribute attr = kNEAAnyNumber,
00022                       ELimit limits = kNELNoLimits,
00023                       Double_t min = 0, Double_t max = 1);
00024 
00025    virtual ~FWNumberEntryField() {}
00026 
00027    virtual Bool_t HandleFocusChange(Event_t* event);
00028    virtual void   ReturnPressed();
00029 
00030    virtual UInt_t GetUIntNumber();
00031    virtual void   SetUIntNumber(UInt_t n);
00032 
00033    ClassDef(FWNumberEntryField, 0);
00034 
00035 };
00036 #endif