Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TPieEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/ged:$Id$
0002 // Author: Guido Volpi 04/10/2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TPieEditor
0013 #define ROOT_TPieEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TPie;
0019 class TGButtonGroup;
0020 class TGTextEntry;
0021 class TGCheckButton;
0022 class TGRadioButton;
0023 class TGNumberEntry;
0024 class TGColorSelect;
0025 class TGFontTypeComboBox;
0026 class TGComboBox;
0027 
0028 class TPieEditor : public TGedFrame {
0029 
0030 protected:
0031    char                 fDrawShape;    ///< Shape of the Graph (simple, smooth, bar)
0032    TGTextEntry         *fTitle;        ///< Contains the title of the graph
0033    Int_t                fTitlePrec;    ///< font precision level
0034    TPie                *fPie;          ///< Pie object
0035    TGButtonGroup       *fgr;           ///< Group the Radiobuttons:
0036    TGRadioButton       *fLblDirH;      ///< Draw slice's labels horizontal
0037    TGRadioButton       *fLblDirR;      ///< Draw slice's labels radial to the piechart
0038    TGRadioButton       *fLblDirT;      ///< Draw slice's labels tangential to the piechart's circle
0039    TGLayoutHints       *fShape1lh;     ///< layout-hints for fShape1
0040    TGCheckButton       *fOutlineOnOff; ///< set piechart outline visible/unvisible
0041    TGCheckButton       *fIs3D;         ///< set if is enabled the pseudo-3d mode
0042    TGNumberEntry       *f3DHeight;     ///< set the 3D tickness
0043    TGNumberEntry       *f3DAngle;      ///< set the pseudo 3D angle
0044    TGColorSelect       *fColorSelect;  ///< font color selector
0045    TGFontTypeComboBox  *fTypeCombo;    ///< font style
0046    TGComboBox          *fSizeCombo;    ///< font size
0047 
0048    virtual void ConnectSignals2Slots();
0049 
0050    static TGComboBox* BuildFontSizeComboBox(TGFrame*, Int_t);
0051 
0052 public:
0053    TPieEditor(const TGWindow *p = nullptr,
0054                Int_t width = 140, Int_t height = 30,
0055                UInt_t options = kChildFrame,
0056                Pixel_t back = GetDefaultFrameBackground());
0057    ~TPieEditor() override;
0058    void SetModel(TObject* ) override;
0059    void ActivateBaseClassEditors(TClass*) override;
0060 
0061    // slots related to graph attributes
0062    virtual void DoShape();
0063    virtual void DoMarkerOnOff(Bool_t on);
0064    virtual void DoTitle(const char *text);
0065    virtual void DoGraphLineWidth();
0066    virtual void DoChange3DAngle();
0067    virtual void DoTextChange();
0068 
0069    ClassDefOverride(TPieEditor,0)        // piechart editor
0070 };
0071 #endif