67 fMedName->SetToolTipText(
"Enter the medium name");
90 gClient->GetColorByName(
"#ff0000", color);
96 gClient->GetColorByName(
"#0000ff", color);
101 fBSelMaterial->SetToolTipText(
"Replace with one of the existing materials");
114 gClient->GetColorByName(
"#ff0000", color);
125 gClient->GetColorByName(
"#ff0000", color);
195 nef->
SetToolTipText(
"Minimum step due to continuous processes [cm]");
211 fUndo->Associate(
this);
235 fApply->Connect(
"Clicked()",
"TGeoMediumEditor",
this,
"DoApply()");
236 fUndo->Connect(
"Clicked()",
"TGeoMediumEditor",
this,
"DoUndo()");
237 fMedName->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoMedName()");
238 fBSelMaterial->Connect(
"Clicked()",
"TGeoMediumEditor",
this,
"DoSelectMaterial()");
239 fEditMaterial->Connect(
"Clicked()",
"TGeoMediumEditor",
this,
"DoEditMaterial()");
240 fMedId->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoMedId()");
241 fMedTmaxfd->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoTmaxfd()");
242 fMedStemax->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoStemax()");
243 fMedDeemax->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoDeemax()");
244 fMedEpsil->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoEpsil()");
245 fMedStmin->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoMediumEditor",
this,
"DoStmin()");
246 fMedSensitive->Connect(
"Clicked()",
"TGeoMediumEditor",
this,
"DoToggleSensitive()");
247 fMagfldOption->Connect(
"Selected(Int_t)",
"TGeoMediumEditor",
this,
"DoMagfldSelect(Int_t)");
261 const char *sname =
fMedium->GetName();
262 if (!strcmp(sname,
fMedium->ClassName()))
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
TClass * IsA() const override
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
This class handles GUI labels.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
TGClient * fClient
Connection to display server.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
TGeoGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor.
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
Base class describing materials.
TGComboBox * fMagfldOption
void SetModel(TObject *obj) override
Connect to the selected object.
~TGeoMediumEditor() override
Destructor.
TGNumberEntry * fMedFieldm
void DoMedName()
Slot for medium name.
void DoUndo()
Slot for undoing last operation.
void DoEditMaterial()
Edit selected material.
TGNumberEntry * fMedStemax
void DoStmin()
Slot for min. step.
void DoMedId()
Slot for medium id.
TGeoMediumEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for medium editor.
void DoEpsil()
Slot for tracking precision.
void DoMagfldSelect(Int_t ientry)
Slot for mag. field.
void DoToggleSensitive()
Slot for sensitivity.
void DoApply()
Slot for applying modifications.
TGPictureButton * fBSelMaterial
TGNumberEntry * fMedDeemax
void DoSelectMaterial()
Select the material component.
void DoTmaxfd()
Slot for tmaxfd.
TGNumberEntry * fMedStmin
void DoStemax()
Slot for the max allowed step.
void DoDeemax()
Slot for the maximum allowed dedx.
void DoFieldm()
Slot for max field.
TGNumberEntry * fMedTmaxfd
TGeoMaterial * fSelectedMaterial
TGNumberEntry * fMedEpsil
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGTextButton * fEditMaterial
TGCheckButton * fMedSensitive
Media are used to store properties related to tracking and which are useful only when using geometry ...
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
static TObject * GetSelected()
static; return selected object
Mother of all ROOT objects.
virtual TClass * IsA() const