54 fShapeName->SetToolTipText(
"Enter the box name");
70 fEDx1->Associate(
this);
81 fEDx2->Associate(
this);
93 fEDy1->Associate(
this);
104 fEDy2->Associate(
this);
116 fEDz->Associate(
this);
136 fUndo->Associate(
this);
160 fApply->Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoApply()");
161 fUndo->Connect(
"Clicked()",
"TGeoTrd2Editor",
this,
"DoUndo()");
162 fShapeName->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
163 fEDx1->Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx1()");
164 fEDx2->Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDx2()");
165 fEDy1->Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy1()");
166 fEDy2->Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDy2()");
167 fEDz->Connect(
"ValueSet(Long_t)",
"TGeoTrd2Editor",
this,
"DoDz()");
168 fEDx1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
169 fEDx2->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
170 fEDy1->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
171 fEDy2->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
172 fEDz->GetNumberEntry()->Connect(
"TextChanged(const char *)",
"TGeoTrd2Editor",
this,
"DoModified()");
191 const char *sname =
fShape->GetName();
192 if (!strcmp(sname,
fShape->ClassName()))
246 fShape->SetDimensions(param);
253 fPad->GetView()->ShowAxis();
291 fEDx1->SetNumber(dx1);
293 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
295 fEDx1->SetNumber(dx1);
311 fEDx2->SetNumber(dx2);
313 if (dx1 < 1.e-6 && dx2 < 1.e-6) {
315 fEDx2->SetNumber(dx2);
331 fEDy1->SetNumber(dy1);
333 if (dy1 < 1.e-6 && dy2 < 1.e-6) {
335 fEDy1->SetNumber(dy1);
351 fEDy2->SetNumber(dy2);
353 if (dy1 < 1.e-6 && dy2 < 1.e-6) {
355 fEDy2->SetNumber(dy2);
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
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 DoName()
Perform name change.
~TGeoTrd2Editor() override
Destructor.
void SetModel(TObject *obj) override
Connect to the selected object.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGeoTrd2Editor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd2 editor.
void DoApply()
Slot for applying modifications.
void DoModified()
Slot for signaling modifications.
void DoDx1()
Slot for dx1.
void DoUndo()
Slot for undoing last operation.
void DoDx2()
Slot for dx2.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoDy2()
Slot for dy2.
void DoDy1()
Slot for dy1.
Mother of all ROOT objects.
virtual TClass * IsA() const