68 fTitle->SetToolTipText(
"Enter the pie title string");
77 fLblDirH->SetToolTipText(
"Draw horizontal labels");
79 fLblDirR->SetToolTipText(
"Draw labels radially");
81 fLblDirT->SetToolTipText(
"Draw labels tangential to the piechart");
100 fIs3D->SetToolTipText(
"Draw a 3D charts");
144 fTitle->Connect(
"TextChanged(const char *)",
"TPieEditor",
this,
"DoTitle(const char *)");
145 fgr->Connect(
"Clicked(Int_t)",
"TPieEditor",
this,
"DoShape()");
146 fOutlineOnOff->Connect(
"Toggled(Bool_t)",
"TPieEditor",
this,
"DoMarkerOnOff(Bool_t)");
147 f3DAngle->Connect(
"ValueSet(Long_t)",
"TPieEditor",
this,
"DoChange3DAngle()");
148 f3DHeight->Connect(
"ValueSet(Long_t)",
"TPieEditor",
this,
"DoChange3DAngle()");
149 fIs3D->Connect(
"Clicked()",
"TPieEditor",
this,
"DoGraphLineWidth()");
152 fTypeCombo->Connect(
"Selected(Int_t)",
"TPieEditor",
this,
"DoTextChange()");
153 fSizeCombo->Connect(
"Selected(Int_t)",
"TPieEditor",
this,
"DoTextChange()");
154 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TPieEditor",
this,
"DoTextChange()");
180 const char *
text =
fPie->GetTitle();
194 if ( (idx=soption.
Index(
"same"))>=0 ) {
199 if ( (idx=soption.
Index(
"nol"))>=0 ) {
208 if ( (idx=soption.
Index(
"3d"))>=0 ) {
218 if ( (idx=soption.
Index(
"t"))>=0 ) {
224 if ( (idx=soption.
Index(
"r"))>=0 ) {
374 fPie->SetTextFont(fontType*10+fontPrec);
391 fPie->SetTextSize(textSize);
406 c->AddEntry(
"Default", 0);
407 for (
int i = 1; i <= 50; i++) {
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
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).
short Color_t
Color number (short).
float Float_t
Float 4 bytes (float).
TClass instances represent classes, structs and namespaces in the ROOT type system.
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
TGFrame(const TGFrame &)=delete
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.
A TGTextEntry is a one line text input widget.
ROOT GUI Window base class.
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
TGedEditor * fGedEditor
manager of this frame
TGedFrame(const TGedFrame &)=delete
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.
TGedEditor * GetGedEditor()
Bool_t fAvoidSignal
flag for executing slots
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void ActivateBaseClassEditors(TClass *) override
Exclude TAttTextEditor from this interface.
TGRadioButton * fLblDirH
Draw slice's labels horizontal.
TGNumberEntry * f3DAngle
set the pseudo 3D angle
virtual void DoTextChange()
Change text.
TGColorSelect * fColorSelect
font color selector
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoChange3DAngle()
Slot for setting the 3D angle.
TGNumberEntry * f3DHeight
set the 3D tickness
TGCheckButton * fIs3D
set if is enabled the pseudo-3d mode
virtual void DoMarkerOnOff(Bool_t on)
Slot for setting markers as visible/invisible.
virtual void DoGraphLineWidth()
Slot connected to the graph line width.
void SetModel(TObject *) override
Pick up the used values of graph attributes.
TGLayoutHints * fShape1lh
layout-hints for fShape1
static TGComboBox * BuildFontSizeComboBox(TGFrame *, Int_t)
Create text size combo box.
TGRadioButton * fLblDirT
Draw slice's labels tangential to the piechart's circle.
TGRadioButton * fLblDirR
Draw slice's labels radial to the piechart.
TGComboBox * fSizeCombo
font size
TGButtonGroup * fgr
Group the Radiobuttons:
TGTextEntry * fTitle
Contains the title of the graph.
TGCheckButton * fOutlineOnOff
set piechart outline visible/unvisible
TGFontTypeComboBox * fTypeCombo
font style
TPieEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of graph editor.
virtual void DoShape()
Slot connected to the draw options.
virtual void DoTitle(const char *text)
Slot for setting the graph title.
~TPieEditor() override
Destructor of pie editor.
Int_t Atoi() const
Return integer value of string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Double_t GetY1() const =0
virtual Double_t GetY2() const =0
virtual Double_t AbsPixeltoY(Double_t py)=0