Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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:
31  TPieSlice *fPieSlice;
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,
44  Pixel_t back = GetDefaultFrameBackground());
45  ~TPieSliceEditor();
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