// @(#)root/ged:$Id$
// Author: Guido Volpi 04/10/2007

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TPieEditor
#define ROOT_TPieEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TPieEditor                                                          //
//                                                                      //
//  Editor for changing pie-chart attributes.                           //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TPie;
class TGButtonGroup;
class TGTextEntry;
class TGCheckButton;
class TGRadioButton;
class TGNumberEntry;
class TGColorSelect;
class TGFontTypeComboBox;
class TGComboBox;

class TPieEditor : public TGedFrame {

protected:
   char                 fDrawShape;   // Shape of the Graph (simple, smooth, bar)
   TGTextEntry         *fTitle;       // Contains the title of the graph
   Int_t                fTitlePrec;   // font precision level
   TPie                *fPie;         // Pie object
   TGButtonGroup       *fgr;          // Group the Radiobuttons:
   TGRadioButton       *fLblDirH;       // Draw slice's labels horizontal
   TGRadioButton       *fLblDirR;      // Draw slice's labels radial to the piechart
   TGRadioButton       *fLblDirT;      // Draw slice's labels tangential to the piechart's circle
   TGLayoutHints       *fShape1lh;    // layout-hints for fShape1
   TGCheckButton       *fOutlineOnOff; // set piechart outline visible/unvisible
   TGCheckButton       *fIs3D;      // set if is enabled the pseudo-3d mode
   TGNumberEntry       *f3DHeight;  // set the 3D tickness
   TGNumberEntry       *f3DAngle;   // set the pseudo 3D angle
   TGColorSelect       *fColorSelect; // font color selector
   TGFontTypeComboBox  *fTypeCombo; // font style
   TGComboBox          *fSizeCombo; // font size

   virtual void ConnectSignals2Slots();

   static TGComboBox* BuildFontSizeComboBox(TGFrame*, Int_t);

public:
   TPieEditor(const TGWindow *p = 0,
               Int_t width = 140, Int_t height = 30,
               UInt_t options = kChildFrame,
               Pixel_t back = GetDefaultFrameBackground());
   virtual ~TPieEditor();
   virtual void SetModel(TObject* );
   virtual void ActivateBaseClassEditors(TClass*);

   // slots related to graph attributes
   virtual void DoShape();
   virtual void DoMarkerOnOff(Bool_t on);
   virtual void DoTitle(const char *text);
   virtual void DoGraphLineWidth();
   virtual void DoChange3DAngle();
   virtual void DoTextChange();

   ClassDef(TPieEditor,0)        // piechart editor
};
#endif
 TPieEditor.h:1
 TPieEditor.h:2
 TPieEditor.h:3
 TPieEditor.h:4
 TPieEditor.h:5
 TPieEditor.h:6
 TPieEditor.h:7
 TPieEditor.h:8
 TPieEditor.h:9
 TPieEditor.h:10
 TPieEditor.h:11
 TPieEditor.h:12
 TPieEditor.h:13
 TPieEditor.h:14
 TPieEditor.h:15
 TPieEditor.h:16
 TPieEditor.h:17
 TPieEditor.h:18
 TPieEditor.h:19
 TPieEditor.h:20
 TPieEditor.h:21
 TPieEditor.h:22
 TPieEditor.h:23
 TPieEditor.h:24
 TPieEditor.h:25
 TPieEditor.h:26
 TPieEditor.h:27
 TPieEditor.h:28
 TPieEditor.h:29
 TPieEditor.h:30
 TPieEditor.h:31
 TPieEditor.h:32
 TPieEditor.h:33
 TPieEditor.h:34
 TPieEditor.h:35
 TPieEditor.h:36
 TPieEditor.h:37
 TPieEditor.h:38
 TPieEditor.h:39
 TPieEditor.h:40
 TPieEditor.h:41
 TPieEditor.h:42
 TPieEditor.h:43
 TPieEditor.h:44
 TPieEditor.h:45
 TPieEditor.h:46
 TPieEditor.h:47
 TPieEditor.h:48
 TPieEditor.h:49
 TPieEditor.h:50
 TPieEditor.h:51
 TPieEditor.h:52
 TPieEditor.h:53
 TPieEditor.h:54
 TPieEditor.h:55
 TPieEditor.h:56
 TPieEditor.h:57
 TPieEditor.h:58
 TPieEditor.h:59
 TPieEditor.h:60
 TPieEditor.h:61
 TPieEditor.h:62
 TPieEditor.h:63
 TPieEditor.h:64
 TPieEditor.h:65
 TPieEditor.h:66
 TPieEditor.h:67
 TPieEditor.h:68
 TPieEditor.h:69
 TPieEditor.h:70
 TPieEditor.h:71
 TPieEditor.h:72
 TPieEditor.h:73
 TPieEditor.h:74
 TPieEditor.h:75
 TPieEditor.h:76
 TPieEditor.h:77
 TPieEditor.h:78
 TPieEditor.h:79
 TPieEditor.h:80