55 fShapeName->SetToolTipText(
"Enter the elliptical tube name");
66 fEA->Resize(100,
fEA->GetDefaultHeight());
78 fEB->Resize(100,
fEB->GetDefaultHeight());
90 fEDz->Resize(100,
fEDz->GetDefaultHeight());
93 fEDz->Associate(
this);
110 fUndo->Associate(
this);
134 fApply->Connect(
"Clicked()",
"TGeoEltuEditor",
this,
"DoApply()");
135 fUndo->Connect(
"Clicked()",
"TGeoEltuEditor",
this,
"DoUndo()");
136 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
137 fEA->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoA()");
138 fEB->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoB()");
139 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoDz()");
140 fEA->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
141 fEB->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
142 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
159 const char *sname =
fShape->GetName();
160 if (!strcmp(sname,
fShape->ClassName()))
208 fShape->SetDimensions(param);
217 fPad->GetView()->ShowAxis();
ULong_t Pixel_t
Pixel value.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN TGeoManager * gGeoManager
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
virtual Bool_t IsComposite() const
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
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.
~TGeoEltuEditor() override
Destructor.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoApply()
Slot for applying current settings.
void DoName()
Slot for name.
TGeoEltuEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoUndo()
Slot for undoing last operation.
void DoModified()
Slot for notifying modifications.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
An elliptical tube is defined by the two semi-axes A and B.
void Update() override
Override Update from TGedFrame as fGedEditor can be null.
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.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hierarchically all daughters of a composite frame.
Mother of all ROOT objects.
virtual TClass * IsA() const
virtual void SetRange(const Double_t *min, const Double_t *max)=0