#include <FWNumberEntry.h>
Public Member Functions | |
ClassDef (FWNumberEntryField, 0) | |
FWNumberEntryField (const TGWindow *p, Int_t id, Double_t val, GContext_t norm, FontStruct_t font=GetDefaultFontStruct(), UInt_t option=kSunkenFrame|kDoubleBorder, Pixel_t back=GetWhitePixel()) | |
FWNumberEntryField (const TGWindow *parent=0, Int_t id=-1, Double_t val=0, EStyle style=kNESReal, EAttribute attr=kNEAAnyNumber, ELimit limits=kNELNoLimits, Double_t min=0, Double_t max=1) | |
virtual UInt_t | GetUIntNumber () |
virtual Bool_t | HandleFocusChange (Event_t *event) |
virtual void | ReturnPressed () |
virtual void | SetUIntNumber (UInt_t n) |
virtual | ~FWNumberEntryField () |
Definition at line 8 of file FWNumberEntry.h.
FWNumberEntryField::FWNumberEntryField | ( | const TGWindow * | p, |
Int_t | id, | ||
Double_t | val, | ||
GContext_t | norm, | ||
FontStruct_t | font = GetDefaultFontStruct() , |
||
UInt_t | option = kSunkenFrame|kDoubleBorder , |
||
Pixel_t | back = GetWhitePixel() |
||
) |
FWNumberEntryField::FWNumberEntryField | ( | const TGWindow * | parent = 0 , |
Int_t | id = -1 , |
||
Double_t | val = 0 , |
||
EStyle | style = kNESReal , |
||
EAttribute | attr = kNEAAnyNumber , |
||
ELimit | limits = kNELNoLimits , |
||
Double_t | min = 0 , |
||
Double_t | max = 1 |
||
) |
virtual FWNumberEntryField::~FWNumberEntryField | ( | ) | [inline, virtual] |
Definition at line 25 of file FWNumberEntry.h.
{}
FWNumberEntryField::ClassDef | ( | FWNumberEntryField | , |
0 | |||
) |
UInt_t FWNumberEntryField::GetUIntNumber | ( | ) | [virtual] |
Definition at line 49 of file FWNumberEntry.cc.
Referenced by FWGUIManager::eventIdChanged().
{ return static_cast<UInt_t>(strtoul(GetText(), 0, 10)); }
Bool_t FWNumberEntryField::HandleFocusChange | ( | Event_t * | event | ) | [virtual] |
Definition at line 29 of file FWNumberEntry.cc.
{ // Handle focus change. // Avoid verification by TGNumberEntryField (which is f***ed). return TGTextEntry::HandleFocusChange(event); }
void FWNumberEntryField::ReturnPressed | ( | ) | [virtual] |
Definition at line 38 of file FWNumberEntry.cc.
{ // Return was pressed. // Avoid verification by TGNumberEntryField (which is f***ed). TGTextEntry::ReturnPressed(); }
void FWNumberEntryField::SetUIntNumber | ( | UInt_t | n | ) | [virtual] |
Definition at line 55 of file FWNumberEntry.cc.
Referenced by CmsShowMainFrame::loadEvent().
{ SetText(Form("%u", n), kFALSE); }