ROOT  6.06/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 #ifndef ROOT_TGedFrame
23 #include "TGedFrame.h"
24 #endif
25 
26 class TPieSlice;
27 class TGTextEntry;
28 class TGNumberEntry;
29 
30 class TPieSliceEditor : public TGedFrame {
31 
32 private:
34 
35 protected:
36  TGTextEntry *fTitle; // Slice label
37  TGNumberEntry *fValue; // Value of the slice
38  TGNumberEntry *fOffset; // Grafical offset in the radial direction
39 
40  void ConnectSignals2Slots();
41 
42 public:
43  TPieSliceEditor(const TGWindow *p = 0,
44  Int_t width = 140, Int_t height = 30,
45  UInt_t options = kChildFrame,
48 
49  void SetModel(TObject *);
50 
51  void DoTitle(const char*);
52  void DoValue();
53  void DoOffset();
54 
55  ClassDef(TPieSliceEditor,0) // piechart' slice editor
56 };
57 
58 #endif // ROOT_TPieSliceEditor
59 
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
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
A slice of a piechart, see the TPie class.
Definition: TPieSlice.h:30
ClassDef(TGedFrame, 0)
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:58
~TPieSliceEditor()
TPieSliceEditor destructor.
TPieSlice * fPieSlice
void SetModel(TObject *)
Set model.