Logo ROOT  
Reference Guide
TPieSliceEditor.h
Go to the documentation of this file.
1// Author: Guido Volpi 05/18/2008
2
3/*************************************************************************
4 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12//////////////////////////////////////////////////////////////////////////
13// //
14// TPieSliceEditor //
15// //
16// Editor for changing pie-chart's slice attributes. //
17// //
18//////////////////////////////////////////////////////////////////////////
19
20#ifndef ROOT_TPieSliceEditor
21#define ROOT_TPieSliceEditor
22#include "TGedFrame.h"
23
24class TPieSlice;
25class TGTextEntry;
26class TGNumberEntry;
27
28class TPieSliceEditor : public TGedFrame {
29
30private:
32
33protected:
34 TGTextEntry *fTitle; // Slice label
35 TGNumberEntry *fValue; // Value of the slice
36 TGNumberEntry *fOffset; // Grafical offset in the radial direction
37
39
40public:
41 TPieSliceEditor(const TGWindow *p = 0,
42 Int_t width = 140, Int_t height = 30,
43 UInt_t options = kChildFrame,
46
47 void SetModel(TObject *);
48
49 void DoTitle(const char*);
50 void DoValue();
51 void DoOffset();
52
53 ClassDef(TPieSliceEditor,0) // piechart' slice editor
54};
55
56#endif // ROOT_TPieSliceEditor
57
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37
void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *)
Set model.
void DoTitle(const char *)
Slot for setting the graph title.
TGNumberEntry * fOffset
~TPieSliceEditor()
TPieSliceEditor destructor.
TGNumberEntry * fValue
void DoValue()
Slot for setting the graph title.
TPieSlice * fPieSlice
TGTextEntry * fTitle
void DoOffset()
Slot for setting the graph title.
TPieSliceEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TPieSliceEditor constructor.
A slice of a piechart, see the TPie class.
Definition: TPieSlice.h:18