55 fShapeName->SetToolTipText(
"Enter the box name");
71 fEDx1->Associate(
this);
82 fEDx2->Associate(
this);
94 fEDy->Associate(
this);
106 fEDz->Associate(
this);
126 fUndo->Associate(
this);
150 fApply->Connect(
"Clicked()",
"TGeoTrd1Editor",
this,
"DoApply()");
151 fUndo->Connect(
"Clicked()",
"TGeoTrd1Editor",
this,
"DoUndo()");
152 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
153 fEDx1->Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDx1()");
154 fEDx2->Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDx2()");
155 fEDy->Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDy()");
156 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoTrd1Editor",
this,
"DoDz()");
157 fEDx1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
158 fEDx2->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
159 fEDy->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
160 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd1Editor",
this,
"DoModified()");
178 const char *sname =
fShape->GetName();
179 if (!strcmp(sname,
fShape->ClassName()))
230 fShape->SetDimensions(param);
237 fPad->GetView()->ShowAxis();
274 fEDx1->SetNumber(dx1);
276 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
278 fEDx1->SetNumber(dx1);
294 fEDx2->SetNumber(dx2);
296 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
298 fEDx2->SetNumber(dx2);
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
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
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.
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.
void DoDx2()
Slot for dx2.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoUndo()
Slot for undoing last operation.
void DoDx1()
Slot for dx1.
void DoModified()
Slot for signaling modifications.
TGeoTrd1Editor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd1 editor.
~TGeoTrd1Editor() override
Destructor.
void DoApply()
Slot for applying modifications.
void DoName()
Perform name change.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
A trapezoid with only X varying with Z.
Mother of all ROOT objects.
virtual TClass * IsA() const