Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Author: Guido Volpi 05/18/2008
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 
0012 #ifndef ROOT_TPieSliceEditor
0013 #define ROOT_TPieSliceEditor
0014 #include "TGedFrame.h"
0015 
0016 class TPieSlice;
0017 class TGTextEntry;
0018 class TGNumberEntry;
0019 
0020 class TPieSliceEditor : public TGedFrame {
0021 
0022 private:
0023    TPieSlice *fPieSlice;
0024 
0025 protected:
0026    TGTextEntry *fTitle;          ///< Slice label
0027    TGNumberEntry *fValue;        ///< Value of the slice
0028    TGNumberEntry *fOffset;       ///< Grafical offset in the radial direction
0029 
0030    void ConnectSignals2Slots();
0031 
0032 public:
0033    TPieSliceEditor(const TGWindow *p = nullptr,
0034                   Int_t width = 140, Int_t height = 30,
0035                   UInt_t options = kChildFrame,
0036                   Pixel_t back = GetDefaultFrameBackground());
0037    ~TPieSliceEditor() override;
0038 
0039    void SetModel(TObject *) override;
0040 
0041    void DoTitle(const char*);
0042    void DoValue();
0043    void DoOffset();
0044 
0045    ClassDefOverride(TPieSliceEditor,0)        // piechart' slice editor
0046 };
0047 
0048 #endif // ROOT_TPieSliceEditor
0049