Logo ROOT   6.08/07
Reference Guide
TGeoMediumEditor.h
Go to the documentation of this file.
1 // @(#):$Id$
2 // Author: M.Gheata
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGeoMediumEditor
13 #define ROOT_TGeoMediumEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGeoMediumEditor //
18 // //
19 // Editor for a TGeoMedium. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGButton
24 #include "TGWidget.h"
25 #endif
26 #ifndef ROOT_TGeoGedFrame
27 #include "TGeoGedFrame.h"
28 #endif
29 
30 class TGeoMedium;
31 class TGeoMaterial;
32 class TGeoTabManager;
33 class TGTextEntry;
34 class TGNumberEntry;
35 class TGTab;
36 class TGComboBox;
37 class TGTextButton;
38 class TGPictureButton;
39 class TGCheckButton;
40 class TGLabel;
41 
43 
44 protected:
45 
46  TGeoMedium *fMedium; // Medium object
47 
48  Bool_t fIsEditable; // Flag that the medium can be changed
49  Bool_t fIsModified; // Modified flag
50  TGTextEntry *fMedName; // Medium name text entry
51  TGNumberEntry *fMedId; // Number entry for medium id
52 // TGComboBox *fMatList; // Combo box for all materials
53  TGeoMaterial *fSelectedMaterial; // Selected material
54  TGLabel *fLSelMaterial; // Selected material label
55  TGPictureButton *fBSelMaterial; // Button for selecting a material
56  TGTextButton *fEditMaterial; // Check button for material editing
57  TGCheckButton *fMedSensitive; // Check button for sensitivity
58  TGComboBox *fMagfldOption; // Combo box with magnetic field options
59  TGNumberEntry *fMedFieldm; // Number entry for fieldm
60  TGNumberEntry *fMedTmaxfd; // Number entry for tmaxfd
61  TGNumberEntry *fMedStemax; // Number entry for stemax
62  TGNumberEntry *fMedDeemax; // Number entry for deemax
63  TGNumberEntry *fMedEpsil; // Number entry for epsil
64  TGNumberEntry *fMedStmin; // Number entry for stmin
65  TGTextButton *fApply; // Apply-Button to accept changes
66  TGTextButton *fUndo; // Undo-Button
67 
68  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
69 
70 public:
71  TGeoMediumEditor(const TGWindow *p = 0,
72  Int_t width = 140, Int_t height = 30,
73  UInt_t options = kChildFrame,
75  virtual ~TGeoMediumEditor();
76  virtual void SetModel(TObject *obj);
77 
78  void DoEditMaterial();
79  void DoSelectMaterial();
80  void DoMedName();
81  void DoMedId();
82  void DoToggleSensitive();
83  void DoMagfldSelect(Int_t ientry);
84  void DoFieldm();
85  void DoTmaxfd();
86  void DoStemax();
87  void DoDeemax();
88  void DoEpsil();
89  void DoStmin();
90  void DoApply();
91  void DoUndo();
92 
93  ClassDef(TGeoMediumEditor,0) // TGeoMedium editor
94 };
95 
96 #endif
TGLabel * fLSelMaterial
Definition: TGTab.h:66
TGNumberEntry * fMedTmaxfd
void DoStmin()
Slot for min. step.
TGeoMedium * fMedium
Base class describing materials.
Definition: TGeoMaterial.h:35
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGNumberEntry * fMedStmin
TGNumberEntry * fMedDeemax
void DoDeemax()
Slot for the maximum allowed dedx.
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
void DoEditMaterial()
Edit selected material.
TGNumberEntry * fMedStemax
TGNumberEntry * fMedFieldm
TGTextButton * fApply
TGPictureButton * fBSelMaterial
TGCheckButton * fMedSensitive
void DoToggleSensitive()
Slot for sensitivity.
TGNumberEntry * fMedId
unsigned int UInt_t
Definition: RtypesCore.h:42
TGTextButton * fEditMaterial
void DoUndo()
Slot for undoing last operation.
TGeoMaterial * fSelectedMaterial
TGComboBox * fMagfldOption
void DoEpsil()
Slot for tracking precision.
void DoMedId()
Slot for medium id.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGTextEntry * fMedName
virtual ~TGeoMediumEditor()
Destructor.
TGTextButton * fUndo
TGNumberEntry * fMedEpsil
Media are used to store properties related to tracking and which are useful only when using geometry ...
Definition: TGeoMedium.h:25
void DoTmaxfd()
Slot for tmaxfd.
void DoApply()
Slot for applying modifications.
Mother of all ROOT objects.
Definition: TObject.h:37
void DoSelectMaterial()
Select the material component.
void DoMagfldSelect(Int_t ientry)
Slot for mag. field.
void DoFieldm()
Slot for max field.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoMedName()
Slot for medium name.
TGeoMediumEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for medium editor.
void DoStemax()
Slot for the max allowed step.