72 fStartPointX->GetNumberEntry()->SetToolTipText(
"Set start point X coordinate of Line.");
79 fStartPointY->GetNumberEntry()->SetToolTipText(
"Set start point Y coordinate of Line.");
86 fEndPointX->GetNumberEntry()->SetToolTipText(
"Set end point X xoordinate of Line.");
93 fEndPointY->GetNumberEntry()->SetToolTipText(
"Set end point Y coordinate of Line.");
97 fVertical->SetToolTipText(
"Set vertical");
117 fStartPointX->Connect(
"ValueSet(Long_t)",
"TLineEditor",
this,
"DoStartPoint()");
118 (
fStartPointX->GetNumberEntry())->Connect(
"ReturnPressed()",
"TLineEditor",
this,
"DoStartPoint()");
119 fStartPointY->Connect(
"ValueSet(Long_t)",
"TLineEditor",
this,
"DoStartPoint()");
120 (
fStartPointY->GetNumberEntry())->Connect(
"ReturnPressed()",
"TLineEditor",
this,
"DoStartPoint()");
121 fEndPointX->Connect(
"ValueSet(Long_t)",
"TLineEditor",
this,
"DoEndPoint()");
122 (
fEndPointX->GetNumberEntry())->Connect(
"ReturnPressed()",
"TLineEditor",
this,
"DoEndPoint()");
123 fEndPointY->Connect(
"ValueSet(Long_t)",
"TLineEditor",
this,
"DoEndPoint()");
124 (
fEndPointY->GetNumberEntry())->Connect(
"ReturnPressed()",
"TLineEditor",
this,
"DoEndPoint()");
125 fVertical->Connect(
"Clicked()",
"TLineEditor",
this,
"DoLineVertical()");
126 fHorizontal->Connect(
"Clicked()",
"TLineEditor",
this,
"DoLineHorizontal()");
142 val =
fLine->GetX2();
145 val =
fLine->GetY1();
148 val =
fLine->GetY2();
192 fLine->SetVertical();
207 fLine->SetHorizontal();
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.
float Float_t
Float 4 bytes (float).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
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.
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Bool_t fAvoidSignal
flag for executing slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fEndPointX
end point x coordinate
virtual void DoLineVertical()
Slot so set the line vertical.
~TLineEditor() override
Destructor of line editor.
void SetModel(TObject *obj) override
Pick up the used line attributes.
TGCheckButton * fHorizontal
set the line horizontal
virtual void DoStartPoint()
Slot connected to the line start point.
TLineEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of line GUI.
TGNumberEntry * fEndPointY
end point y coordinate
TGCheckButton * fVertical
set the line vertical
virtual void DoEndPoint()
Slot connected to the line EndPoint.
TGNumberEntry * fStartPointX
start point x coordinate
TGNumberEntry * fStartPointY
start point y coordinate
virtual void DoLineHorizontal()
Slot so set the line horizontal.
Use the TLine constructor to create a simple line.
Mother of all ROOT objects.