Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#ifndef ROOT_TPieSliceEditor
13#define ROOT_TPieSliceEditor
14#include "TGedFrame.h"
15
16class TPieSlice;
17class TGTextEntry;
18class TGNumberEntry;
19
20class TPieSliceEditor : public TGedFrame {
21
22private:
24
25protected:
26 TGTextEntry *fTitle; ///< Slice label
27 TGNumberEntry *fValue; ///< Value of the slice
28 TGNumberEntry *fOffset; ///< Grafical offset in the radial direction
29
31
32public:
33 TPieSliceEditor(const TGWindow *p = 0,
34 Int_t width = 140, Int_t height = 30,
35 UInt_t options = kChildFrame,
38
39 void SetModel(TObject *);
40
41 void DoTitle(const char*);
42 void DoValue();
43 void DoOffset();
44
45 ClassDef(TPieSliceEditor,0) // piechart' slice editor
46};
47
48#endif // ROOT_TPieSliceEditor
49
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41
Editor for changing pie-chart's slice attributes.
void ConnectSignals2Slots()
Connect signals to slots.
void SetModel(TObject *)
Set model.
void DoTitle(const char *)
Slot for setting the graph title.
TGNumberEntry * fOffset
Grafical offset in the radial direction.
~TPieSliceEditor()
TPieSliceEditor destructor.
TGNumberEntry * fValue
Value of the slice.
void DoValue()
Slot for setting the graph title.
TPieSlice * fPieSlice
TGTextEntry * fTitle
Slice label.
void DoOffset()
Slot for setting the graph title.
A slice of a piechart, see the TPie class.
Definition TPieSlice.h:18