00001 // Author: Guido Volpi 05/18/2008 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 00012 ////////////////////////////////////////////////////////////////////////// 00013 // // 00014 // TPieSliceEditor // 00015 // // 00016 // Editor for changing pie-chart's slice attributes. // 00017 // // 00018 ////////////////////////////////////////////////////////////////////////// 00019 00020 #ifndef ROOT_TPieSliceEditor 00021 #define ROOT_TPieSliceEditor 00022 #ifndef ROOT_TGedFrame 00023 #include "TGedFrame.h" 00024 #endif 00025 00026 class TPieSlice; 00027 class TGTextEntry; 00028 class TGNumberEntry; 00029 00030 class TPieSliceEditor : public TGedFrame { 00031 00032 private: 00033 TPieSlice *fPieSlice; 00034 00035 protected: 00036 TGTextEntry *fTitle; // Slice label 00037 TGNumberEntry *fValue; // Value of the slice 00038 TGNumberEntry *fOffset; // Grafical offset in the radial direction 00039 00040 void ConnectSignals2Slots(); 00041 00042 public: 00043 TPieSliceEditor(const TGWindow *p = 0, 00044 Int_t width = 140, Int_t height = 30, 00045 UInt_t options = kChildFrame, 00046 Pixel_t back = GetDefaultFrameBackground()); 00047 ~TPieSliceEditor(); 00048 00049 void SetModel(TObject *); 00050 00051 void DoTitle(const char*); 00052 void DoValue(); 00053 void DoOffset(); 00054 00055 ClassDef(TPieSliceEditor,0) // piechart' slice editor 00056 }; 00057 00058 #endif // ROOT_TPieSliceEditor 00059