70 fAngleEntry->GetNumberEntry()->SetToolTipText(
"Set the arrow opening angle in degrees.");
77 fSizeEntry->GetNumberEntry()->SetToolTipText(
"Set the size of arrow.");
102 fOptionCombo->Connect(
"Selected(Int_t)",
"TArrowEditor",
this,
"DoOption(Int_t)");
103 fAngleEntry->Connect(
"ValueSet(Long_t)",
"TArrowEditor",
this,
"DoAngle()");
104 (
fAngleEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TArrowEditor",
this,
"DoAngle()");
105 fSizeEntry->Connect(
"ValueSet(Long_t)",
"TArrowEditor",
this,
"DoSize()");
106 (
fSizeEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TArrowEditor",
this,
"DoSize()");
183 fArrow->SetDrawOption(opt);
231 if (opt ==
"|>")
id = 1;
232 if (opt ==
"<|")
id = 2;
233 if (opt ==
">")
id = 3;
234 if (opt ==
"<")
id = 4;
235 if (opt ==
"->-")
id = 5;
236 if (opt ==
"-<-")
id = 6;
237 if (opt ==
"-|>-")
id = 7;
238 if (opt ==
"-<|-")
id = 8;
239 if (opt ==
"<>")
id = 9;
240 if (opt ==
"<|>")
id = 10;
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
virtual void ConnectSignals2Slots()
Connect signals to slots.
TArrow * fArrow
arrow object
Int_t GetShapeEntry(Option_t *opt)
Return shape entry according to the arrow draw option.
virtual void DoOption(Int_t id)
Slot connected to the arrow shape setting.
TGNumberEntry * fSizeEntry
size entry
TArrowEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of arrow GUI.
virtual void DoSize()
Slot connected to the arrow size.
TGNumberEntry * fAngleEntry
opening angle entry
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
TGComboBox * fOptionCombo
arrow shapes combo box
void SetModel(TObject *obj) override
Pick up the used arrow attributes.
~TArrowEditor() override
Destructor of arrow editor.
virtual void DoAngle()
Slot connected to the arrow opening angle setting.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddEntry(TGString *s, Int_t id)
virtual TGListBox * GetListBox() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
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
TGFrame(const TGFrame &)=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
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void ToLower()
Change string to lower-case.