Logo ROOT   6.10/09
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 
24 class TPieSlice;
25 class TGTextEntry;
26 class TGNumberEntry;
27 
28 class TPieSliceEditor : public TGedFrame {
29 
30 private:
32 
33 protected:
34  TGTextEntry *fTitle; // Slice label
35  TGNumberEntry *fValue; // Value of the slice
36  TGNumberEntry *fOffset; // Grafical offset in the radial direction
37 
38  void ConnectSignals2Slots();
39 
40 public:
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 
TGNumberEntry * fValue
TPieSliceEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TPieSliceEditor constructor.
void DoTitle(const char *)
Slot for setting the graph title.
int Int_t
Definition: RtypesCore.h:41
TGNumberEntry * fOffset
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
A slice of a piechart, see the TPie class.
Definition: TPieSlice.h:18
TGTextEntry * fTitle
void ConnectSignals2Slots()
Connect signals to slots.
unsigned int UInt_t
Definition: RtypesCore.h:42
void DoOffset()
Slot for setting the graph title.
void DoValue()
Slot for setting the graph title.
Mother of all ROOT objects.
Definition: TObject.h:37
~TPieSliceEditor()
TPieSliceEditor destructor.
TPieSlice * fPieSlice
void SetModel(TObject *)
Set model.