Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:25

0001 // @(#)root/treeviewer:$Id$
0002 // Author: Bastien Dalla Piazza  20/07/07
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, 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_TSpiderEditor
0013 #define ROOT_TSpiderEditor
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TSpiderEditor                                                        //
0018 //                                                                      //
0019 // Editor widget for the TSpider.                                       //
0020 //                                                                      //
0021 //////////////////////////////////////////////////////////////////////////
0022 
0023 #include "TGedFrame.h"
0024 
0025 class TSpider;
0026 class TGCheckButton;
0027 class TGNumberEntryField;
0028 class TGNumberEntry;
0029 class TGButtonGroup;
0030 class TGRadioButton;
0031 class TGPicture;
0032 class TGPictureButton;
0033 class TGTextEntry;
0034 class TGLineStyleComboBox;
0035 class TGLineWidthComboBox;
0036 class TGColorSelect;
0037 class TGedPatternSelect;
0038 
0039 class TSpiderEditor : public TGedFrame {
0040 protected:
0041    TSpider              *fSpider;              ///< Pointer to the TSpider.
0042    TGCheckButton        *fDisplayAverage;      ///< Button for the display of the average.
0043    TGLineStyleComboBox  *fAvLineStyleCombo;    ///< line style combo box for the average.
0044    TGLineWidthComboBox  *fAvLineWidthCombo;    ///< line width combo box for the average.
0045    TGColorSelect        *fAvLineColorSelect;   ///< line color widget for the average.
0046    TGColorSelect        *fAvFillColorSelect;   ///< fill color widget for the average.
0047    TGedPatternSelect    *fAvFillPatternSelect; ///< fill pattern widget for the average.
0048    TGNumberEntryField   *fSetNx;               ///< To set the nx number of subpads.
0049    TGNumberEntryField   *fSetNy;               ///< To set the ny number of subpads.
0050    TGButtonGroup        *fBgroup;              ///< Group of the plot type selection.
0051    TGRadioButton        *fPolyLines;           ///< Polyline option.
0052    TGRadioButton        *fSegment;             ///< Segment option.
0053    TGCompositeFrame     *fBrowse;              ///< Browse tab.
0054    TGNumberEntryField   *fGotoEntry;           ///< Jump to an entry field.
0055    TGPictureButton      *fGotoNext;            ///< Go to next entries button.
0056    const TGPicture      *fPicNext;             ///< Go to next entries picture.
0057    TGPictureButton      *fGotoPrevious;        ///< Go to previous entries button.
0058    const TGPicture      *fPicPrevious;         ///< Go to previous entries picture.
0059    TGPictureButton      *fGotoFollowing;       ///< Go to next entry button.
0060    const TGPicture      *fPicFollowing;        ///< Go to next entry picture.
0061    TGPictureButton      *fGotoPreceding;       ///< Go to last entry button.
0062    const TGPicture      *fPicPreceding;        ///< Go to last entry picture.
0063    TGTextEntry          *fAddVar;              ///< Add variable field.
0064    TGTextEntry          *fDeleteVar;           ///< Delete variable field.
0065 
0066    virtual void         ConnectSignals2Slots();
0067    void                 MakeBrowse();
0068 
0069 public:
0070    TSpiderEditor(const TGWindow *p = nullptr,
0071                  Int_t width = 140, Int_t height = 30,
0072                  UInt_t options = kChildFrame,
0073                  Pixel_t back = GetDefaultFrameBackground());
0074    ~TSpiderEditor() override;
0075 
0076    virtual void         DoAddVar();
0077    virtual void         DoDeleteVar();
0078    virtual void         DoDisplayAverage(bool av);
0079    virtual void         DoGotoEntry();
0080    virtual void         DoGotoNext();
0081    virtual void         DoGotoPrevious();
0082    virtual void         DoGotoFollowing();
0083    virtual void         DoGotoPreceding();
0084    virtual void         DoSetNx();
0085    virtual void         DoSetNy();
0086    virtual void         DoSetPlotType();
0087    void         SetModel(TObject* obj) override;
0088    virtual void         DoAvLineStyle(Int_t);
0089    virtual void         DoAvLineWidth(Int_t);
0090    virtual void         DoAvLineColor(Pixel_t);
0091    virtual void         DoAvFillColor(Pixel_t);
0092    virtual void         DoAvFillPattern(Style_t);
0093 
0094    ClassDefOverride(TSpiderEditor,0) // GUI for editing the spider plot attributes.
0095 };
0096 
0097 #endif