Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:41

0001 #ifndef Fireworks_Core_FWNumberEntryField_h
0002 #define Fireworks_Core_FWNumberEntryField_h
0003 
0004 #include "TGNumberEntry.h"
0005 
0006 //------------------------------FWNumberEntryField------------------------------//
0007 
0008 class FWNumberEntryField : public TGNumberEntryField {
0009 private:
0010 public:
0011   FWNumberEntryField(const TGWindow *p,
0012                      Int_t id,
0013                      Double_t val,
0014                      GContext_t norm,
0015                      FontStruct_t font = GetDefaultFontStruct(),
0016                      UInt_t option = kSunkenFrame | kDoubleBorder,
0017                      Pixel_t back = GetWhitePixel());
0018   FWNumberEntryField(const TGWindow *parent = nullptr,
0019                      Int_t id = -1,
0020                      Double_t val = 0,
0021                      EStyle style = kNESReal,
0022                      EAttribute attr = kNEAAnyNumber,
0023                      ELimit limits = kNELNoLimits,
0024                      Double_t min = 0,
0025                      Double_t max = 1);
0026 
0027   ~FWNumberEntryField() override {}
0028 
0029   Bool_t HandleFocusChange(Event_t *event) override;
0030   void ReturnPressed() override;
0031 
0032   virtual UInt_t GetUIntNumber();
0033   virtual void SetUIntNumber(UInt_t n);
0034   virtual ULong64_t GetULong64Number();
0035   virtual void SetULong64Number(ULong64_t n);
0036 
0037   ClassDefOverride(FWNumberEntryField, 0);
0038 };
0039 #endif