TSpiderEditor.h

Go to the documentation of this file.
00001 // @(#)root/treeviewer:$Id: TSpiderEditor.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Bastien Dalla Piazza  20/07/07
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TSpiderEditor
00013 #define ROOT_TSpiderEditor
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TSpiderEditor                                                        //
00018 //                                                                      //
00019 // Editor widget for the TSpider.                                       //
00020 //                                                                      //
00021 //////////////////////////////////////////////////////////////////////////
00022 
00023 #ifndef ROOT_TGedFrame
00024 #include "TGedFrame.h"
00025 #endif
00026 
00027 class TSpider;
00028 class TGCheckButton;
00029 class TGNumberEntryField;
00030 class TGNumberEntry;
00031 class TGButtonGroup;
00032 class TGRadioButton;
00033 class TGPicture;
00034 class TGPictureButton;
00035 class TGTextEntry;
00036 class TGLineStyleComboBox;
00037 class TGLineWidthComboBox;
00038 class TGColorSelect;
00039 class TGedPatternSelect;
00040 
00041 class TSpiderEditor : public TGedFrame {
00042 protected:
00043    TSpider              *fSpider; // Pointer to the TSpider.
00044    TGCheckButton        *fDisplayAverage; // Button for the display of the average.
00045    TGLineStyleComboBox  *fAvLineStyleCombo; // line style combo box for the average.
00046    TGLineWidthComboBox  *fAvLineWidthCombo; // line width combo box for the average.
00047    TGColorSelect        *fAvLineColorSelect;// line color widget for the average.
00048    TGColorSelect        *fAvFillColorSelect;      // fill color widget for the average.
00049    TGedPatternSelect    *fAvFillPatternSelect;    // fill pattern widget for the average.
00050    TGNumberEntryField   *fSetNx; // To set the nx number of subpads.
00051    TGNumberEntryField   *fSetNy; // To set the ny number of subpads.
00052    TGButtonGroup        *fBgroup; // Group of the plot type selection.
00053    TGRadioButton        *fPolyLines; // Polyline option.
00054    TGRadioButton        *fSegment; // Segment option.
00055    TGCompositeFrame     *fBrowse; // Browse tab.
00056    TGNumberEntryField   *fGotoEntry; // Jump to an entry field.
00057    TGPictureButton      *fGotoNext; // Go to next entries button.
00058    const TGPicture      *fPicNext; // Go to next entries picture.
00059    TGPictureButton      *fGotoPrevious; // Go to previous entries button.
00060    const TGPicture      *fPicPrevious; // Go to previous entries picture.
00061    TGPictureButton      *fGotoFollowing; // Go to next entry button.
00062    const TGPicture      *fPicFollowing; // Go to next entry picture.
00063    TGPictureButton      *fGotoPreceding; // Go to last entry button.
00064    const TGPicture      *fPicPreceding; // Go to last entry picture.
00065    TGTextEntry          *fAddVar; // Add variable field.
00066    TGTextEntry          *fDeleteVar; // Delete variable field.
00067 
00068    virtual void         ConnectSignals2Slots();
00069    void                 MakeBrowse();
00070 
00071 public:
00072    TSpiderEditor(const TGWindow *p = 0,
00073                  Int_t width = 140, Int_t height = 30,
00074                  UInt_t options = kChildFrame,
00075                  Pixel_t back = GetDefaultFrameBackground());
00076    ~TSpiderEditor();
00077 
00078    virtual void         DoAddVar();
00079    virtual void         DoDeleteVar();
00080    virtual void         DoDisplayAverage(Bool_t av);
00081    virtual void         DoGotoEntry();
00082    virtual void         DoGotoNext();
00083    virtual void         DoGotoPrevious();
00084    virtual void         DoGotoFollowing();
00085    virtual void         DoGotoPreceding();
00086    virtual void         DoSetNx();
00087    virtual void         DoSetNy();
00088    virtual void         DoSetPlotType();
00089    virtual void         SetModel(TObject* obj);
00090    virtual void         DoAvLineStyle(Int_t);
00091    virtual void         DoAvLineWidth(Int_t);
00092    virtual void         DoAvLineColor(Pixel_t);
00093    virtual void         DoAvFillColor(Pixel_t);
00094    virtual void         DoAvFillPattern(Style_t);
00095 
00096    ClassDef(TSpiderEditor,0) // GUI for editing the spider plot attributes.
00097 };
00098 
00099 #endif

Generated on Tue Jul 5 14:28:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1