54 fShapeName->SetToolTipText(
"Enter the elliptical tube name");
65 fEA->Resize(100,
fEA->GetDefaultHeight());
77 fEB->Resize(100,
fEB->GetDefaultHeight());
89 fEDz->Resize(100,
fEDz->GetDefaultHeight());
92 fEDz->Associate(
this);
109 fUndo->Associate(
this);
133 fApply->Connect(
"Clicked()",
"TGeoEltuEditor",
this,
"DoApply()");
134 fUndo->Connect(
"Clicked()",
"TGeoEltuEditor",
this,
"DoUndo()");
135 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
136 fEA->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoA()");
137 fEB->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoB()");
138 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoEltuEditor",
this,
"DoDz()");
139 fEA->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
140 fEB->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
141 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoEltuEditor",
this,
"DoModified()");
158 const char *sname =
fShape->GetName();
159 if (!strcmp(sname,
fShape->ClassName()))
207 fShape->SetDimensions(param);
216 fPad->GetView()->ShowAxis();
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
externTGeoManager * 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.
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