46 fTitle->SetToolTipText(
"Enter the pie-slice label");
100 fTitle->Connect(
"TextChanged(const char *)",
"TPieSliceEditor",
this,
"DoTitle(const char *)");
101 fValue->Connect(
"ValueSet(Long_t)",
"TPieSliceEditor",
this,
"DoValue()");
102 fOffset->Connect(
"ValueSet(Long_t)",
"TPieSliceEditor",
this,
"DoOffset()");
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
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.
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.
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.
void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *) override
Set model.
void DoTitle(const char *)
Slot for setting the graph title.
TGNumberEntry * fOffset
Grafical offset in the radial direction.
TGNumberEntry * fValue
Value of the slice.
void DoValue()
Slot for setting the graph title.
TPieSliceEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TPieSliceEditor constructor.
~TPieSliceEditor() override
TPieSliceEditor destructor.
TGTextEntry * fTitle
Slice label.
void DoOffset()
Slot for setting the graph title.
A slice of a piechart, see the TPie class.