ROOT logo
// @(#)root/treeviewer:$Id: TSpiderEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Bastien Dalla Piazza  20/07/07

/*************************************************************************
 * Copyright (C) 1995-2007, 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_TSpiderEditor
#define ROOT_TSpiderEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TSpiderEditor                                                        //
//                                                                      //
// Editor widget for the TSpider.                                       //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

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

class TSpider;
class TGCheckButton;
class TGNumberEntryField;
class TGNumberEntry;
class TGButtonGroup;
class TGRadioButton;
class TGPicture;
class TGPictureButton;
class TGTextEntry;
class TGLineStyleComboBox;
class TGLineWidthComboBox;
class TGColorSelect;
class TGedPatternSelect;

class TSpiderEditor : public TGedFrame {
protected:
   TSpider              *fSpider; // Pointer to the TSpider.
   TGCheckButton        *fDisplayAverage; // Button for the display of the average.
   TGLineStyleComboBox  *fAvLineStyleCombo; // line style combo box for the average.
   TGLineWidthComboBox  *fAvLineWidthCombo; // line width combo box for the average.
   TGColorSelect        *fAvLineColorSelect;// line color widget for the average.
   TGColorSelect        *fAvFillColorSelect;      // fill color widget for the average.
   TGedPatternSelect    *fAvFillPatternSelect;    // fill pattern widget for the average.
   TGNumberEntryField   *fSetNx; // To set the nx number of subpads.
   TGNumberEntryField   *fSetNy; // To set the ny number of subpads.
   TGButtonGroup        *fBgroup; // Group of the plot type selection.
   TGRadioButton        *fPolyLines; // Polyline option.
   TGRadioButton        *fSegment; // Segment option.
   TGCompositeFrame     *fBrowse; // Browse tab.
   TGNumberEntryField   *fGotoEntry; // Jump to an entry field.
   TGPictureButton      *fGotoNext; // Go to next entries button.
   const TGPicture      *fPicNext; // Go to next entries picture.
   TGPictureButton      *fGotoPrevious; // Go to previous entries button.
   const TGPicture      *fPicPrevious; // Go to previous entries picture.
   TGPictureButton      *fGotoFollowing; // Go to next entry button.
   const TGPicture      *fPicFollowing; // Go to next entry picture.
   TGPictureButton      *fGotoPreceding; // Go to last entry button.
   const TGPicture      *fPicPreceding; // Go to last entry picture.
   TGTextEntry          *fAddVar; // Add variable field.
   TGTextEntry          *fDeleteVar; // Delete variable field.

   virtual void         ConnectSignals2Slots();
   void                 MakeBrowse();

public:
   TSpiderEditor(const TGWindow *p = 0,
                 Int_t width = 140, Int_t height = 30,
                 UInt_t options = kChildFrame,
                 Pixel_t back = GetDefaultFrameBackground());
   ~TSpiderEditor();

   virtual void         DoAddVar();
   virtual void         DoDeleteVar();
   virtual void         DoDisplayAverage(Bool_t av);
   virtual void         DoGotoEntry();
   virtual void         DoGotoNext();
   virtual void         DoGotoPrevious();
   virtual void         DoGotoFollowing();
   virtual void         DoGotoPreceding();
   virtual void         DoSetNx();
   virtual void         DoSetNy();
   virtual void         DoSetPlotType();
   virtual void         SetModel(TObject* obj);
   virtual void         DoAvLineStyle(Int_t);
   virtual void         DoAvLineWidth(Int_t);
   virtual void         DoAvLineColor(Pixel_t);
   virtual void         DoAvFillColor(Pixel_t);
   virtual void         DoAvFillPattern(Style_t);

   ClassDef(TSpiderEditor,0) // GUI for editing the spider plot attributes.
};

#endif
 TSpiderEditor.h:1
 TSpiderEditor.h:2
 TSpiderEditor.h:3
 TSpiderEditor.h:4
 TSpiderEditor.h:5
 TSpiderEditor.h:6
 TSpiderEditor.h:7
 TSpiderEditor.h:8
 TSpiderEditor.h:9
 TSpiderEditor.h:10
 TSpiderEditor.h:11
 TSpiderEditor.h:12
 TSpiderEditor.h:13
 TSpiderEditor.h:14
 TSpiderEditor.h:15
 TSpiderEditor.h:16
 TSpiderEditor.h:17
 TSpiderEditor.h:18
 TSpiderEditor.h:19
 TSpiderEditor.h:20
 TSpiderEditor.h:21
 TSpiderEditor.h:22
 TSpiderEditor.h:23
 TSpiderEditor.h:24
 TSpiderEditor.h:25
 TSpiderEditor.h:26
 TSpiderEditor.h:27
 TSpiderEditor.h:28
 TSpiderEditor.h:29
 TSpiderEditor.h:30
 TSpiderEditor.h:31
 TSpiderEditor.h:32
 TSpiderEditor.h:33
 TSpiderEditor.h:34
 TSpiderEditor.h:35
 TSpiderEditor.h:36
 TSpiderEditor.h:37
 TSpiderEditor.h:38
 TSpiderEditor.h:39
 TSpiderEditor.h:40
 TSpiderEditor.h:41
 TSpiderEditor.h:42
 TSpiderEditor.h:43
 TSpiderEditor.h:44
 TSpiderEditor.h:45
 TSpiderEditor.h:46
 TSpiderEditor.h:47
 TSpiderEditor.h:48
 TSpiderEditor.h:49
 TSpiderEditor.h:50
 TSpiderEditor.h:51
 TSpiderEditor.h:52
 TSpiderEditor.h:53
 TSpiderEditor.h:54
 TSpiderEditor.h:55
 TSpiderEditor.h:56
 TSpiderEditor.h:57
 TSpiderEditor.h:58
 TSpiderEditor.h:59
 TSpiderEditor.h:60
 TSpiderEditor.h:61
 TSpiderEditor.h:62
 TSpiderEditor.h:63
 TSpiderEditor.h:64
 TSpiderEditor.h:65
 TSpiderEditor.h:66
 TSpiderEditor.h:67
 TSpiderEditor.h:68
 TSpiderEditor.h:69
 TSpiderEditor.h:70
 TSpiderEditor.h:71
 TSpiderEditor.h:72
 TSpiderEditor.h:73
 TSpiderEditor.h:74
 TSpiderEditor.h:75
 TSpiderEditor.h:76
 TSpiderEditor.h:77
 TSpiderEditor.h:78
 TSpiderEditor.h:79
 TSpiderEditor.h:80
 TSpiderEditor.h:81
 TSpiderEditor.h:82
 TSpiderEditor.h:83
 TSpiderEditor.h:84
 TSpiderEditor.h:85
 TSpiderEditor.h:86
 TSpiderEditor.h:87
 TSpiderEditor.h:88
 TSpiderEditor.h:89
 TSpiderEditor.h:90
 TSpiderEditor.h:91
 TSpiderEditor.h:92
 TSpiderEditor.h:93
 TSpiderEditor.h:94
 TSpiderEditor.h:95
 TSpiderEditor.h:96
 TSpiderEditor.h:97
 TSpiderEditor.h:98
 TSpiderEditor.h:99