232 if (opt ==
"|>")
id = 1;
233 if (opt ==
"<|")
id = 2;
234 if (opt ==
">")
id = 3;
235 if (opt ==
"<")
id = 4;
236 if (opt ==
"->-")
id = 5;
237 if (opt ==
"-<-")
id = 6;
238 if (opt ==
"-|>-")
id = 7;
239 if (opt ==
"-<|-")
id = 8;
240 if (opt ==
"<>")
id = 9;
241 if (opt ==
"<|>")
id = 10;
ULong_t Pixel_t
Pixel value.
include TDocParser_001 C image html pict1_TDocParser_001 png width
Implements user interface for editing of arrow attributes: shape, size, angle.
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
virtual ~TArrowEditor()
Destructor of arrow editor.
virtual void DoSize()
Slot connected to the arrow size.
TArrowEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of arrow GUI.
TGNumberEntry * fAngleEntry
opening angle entry
TGComboBox * BuildOptionComboBox(TGFrame *parent, Int_t id)
Arrow shape combobox.
virtual void SetModel(TObject *obj)
Pick up the used arrow attributes.
TGComboBox * fOptionCombo
arrow shapes combo box
virtual void DoAngle()
Slot connected to the arrow opening angle setting.
Draw all kinds of Arrows.
virtual void SetArrowSize(Float_t arrowsize=0.05)
virtual void Paint(Option_t *option="")
Paint this arrow with its current attributes.
Float_t GetArrowSize() const
virtual void SetAngle(Float_t angle=60)
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual Int_t GetSelected() const
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...
The base class for composite widgets (menu bars, list boxes, etc.).
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
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.
TGNumberEntryField * GetNumberEntry() const
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
ROOT GUI Window base class.
Base frame for implementing GUI - a service class.
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.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
virtual void SetDrawOption(Option_t *option="")
Set drawing option for object.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
void ToLower()
Change string to lower-case.