136 fTitle->
Connect(
"TextChanged(const char *)",
"TGraphEditor",
this,
"DoTitle(const char *)");
137 fgr->
Connect(
"Clicked(Int_t)",
"TGraphEditor",
this,
"DoShape()");
140 fExSide->
Connect(
"Clicked()",
"TGraphEditor",
this,
"DoGraphLineWidth()");
196 if (opt==
"A" || opt==
"AP" || opt==
"PA" || opt ==
"P") {
306 if (opt==
"A" || opt==
"AP" || opt==
"PA" || opt ==
"P") {
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Int_t GetSelected() 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 SetEnabled(Bool_t on=kTRUE)
Set state of combo box. If kTRUE=enabled, kFALSE=disabled.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual UInt_t GetDefaultHeight() const
This class describes layout hints used by the layout classes.
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
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.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
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.
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Option_t * GetDrawOption() const override
Get draw options of the selected object.
Bool_t fAvoidSignal
flag for executing slots
Implements GUI for graph attributes.
TGLayoutHints * fShape1lh
layout-hints for fShape1
virtual void DoMarkerOnOff(Bool_t on)
TGRadioButton * fShape0
set smooth graph curve
TGraph * fGraph
Graph object.
virtual void DoGraphLineWidth()
TGRadioButton * fShape
just draw unconnected points
TGCheckButton * fMarkerOnOff
set Marker visible/unvisible
char fDrawShape
Shape of the Graph (simple, smooth, bar)
virtual void ConnectSignals2Slots()
TGButtonGroup * fgr
Group the Radiobuttons:
void SetModel(TObject *obj) override
TGraphEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Int_t fTitlePrec
font precision level
virtual void DoTitle(const char *text)
TGRadioButton * fShape2
set graph draw mode to bar chart
TGCheckButton * fExSide
set the exclusion zone side
TGRadioButton * fShape3
set graph draw mode to fill area
TGLineWidthComboBox * fWidthCombo
Exclusion zone width.
TGRadioButton * fShape1
set simple poly-line between every graph point
TGTextEntry * fTitle
Contains the title of the graph.
A TGraph is an object made of two arrays X and Y with npoints each.
void SetTitle(const char *title="") override
Change (i.e.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
Ssiz_t First(char c) const
Find first occurrence of a character c.
void ToUpper()
Change string to upper case.
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.