FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairBoxSetEditor.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairBoxSetEditor header file -----
10 // ----- Created 26/03/09 by T. Stockmanns -----
11 // -------------------------------------------------------------------------
12 
24 #ifndef FairBoxSetEditor_H
25 #define FairBoxSetEditor_H
26 
27 #include "FairBoxSet.h" // for FairBoxSet
28 
29 #include <GuiTypes.h> // for Pixel_t
30 #include <Rtypes.h> // for FairBoxSetEditor::Class, etc
31 #include <TGFrame.h> // for EFrameType::kChildFrame, etc
32 #include <TGNumberEntry.h> // for TGNumberEntry
33 #include <TGedFrame.h> // for TGedFrame
34 #include <TObject.h> // for TObject
35 
36 class TGWindow;
37 
38 class FairBoxSetEditor : public TGedFrame
39 {
40  public:
41  FairBoxSetEditor(const TGWindow* p = 0,
42  Int_t width = 170,
43  Int_t height = 30,
44  UInt_t options = kChildFrame,
45  Pixel_t back = GetDefaultFrameBackground());
46  virtual ~FairBoxSetEditor(){};
47 
48  virtual void Init();
49 
50  virtual void SetModel(TObject* obj)
51  {
52  fM = dynamic_cast<FairBoxSet*>(obj);
53  if (fM) {
54  fTimeWindowPlus->SetNumber(fM->GetTimeWindowPlus());
55  fTimeWindowMinus->SetNumber(fM->GetTimeWindowMinus());
56  }
57  }
58 
59  virtual void TimeWindow();
60 
61  TGVerticalFrame* fInfoFrame;
62  TGNumberEntry* fTimeWindowPlus;
63  TGNumberEntry* fTimeWindowMinus;
64 
65  protected:
66  TObject* fObject;
68 
69  private:
71  FairBoxSetEditor& operator=(const FairBoxSetEditor&);
72 
73  ClassDef(FairBoxSetEditor, 2);
74 };
75 
76 #endif
virtual void SetModel(TObject *obj)
Double_t GetTimeWindowPlus()
Definition: FairBoxSet.h:42
TGNumberEntry * fTimeWindowMinus
Double_t GetTimeWindowMinus()
Definition: FairBoxSet.h:43
TGNumberEntry * fTimeWindowPlus
virtual ~FairBoxSetEditor()
TGVerticalFrame * fInfoFrame
FairBoxSetEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual void Init()
virtual void TimeWindow()