ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TSpiderEditor.h
Go to the documentation of this file.
1 // @(#)root/treeviewer:$Id$
2 // Author: Bastien Dalla Piazza 20/07/07
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSpiderEditor
13 #define ROOT_TSpiderEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TSpiderEditor //
18 // //
19 // Editor widget for the TSpider. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TSpider;
28 class TGCheckButton;
29 class TGNumberEntryField;
30 class TGNumberEntry;
31 class TGButtonGroup;
32 class TGRadioButton;
33 class TGPicture;
34 class TGPictureButton;
35 class TGTextEntry;
38 class TGColorSelect;
39 class TGedPatternSelect;
40 
41 class TSpiderEditor : public TGedFrame {
42 protected:
43  TSpider *fSpider; // Pointer to the TSpider.
44  TGCheckButton *fDisplayAverage; // Button for the display of the average.
45  TGLineStyleComboBox *fAvLineStyleCombo; // line style combo box for the average.
46  TGLineWidthComboBox *fAvLineWidthCombo; // line width combo box for the average.
47  TGColorSelect *fAvLineColorSelect;// line color widget for the average.
48  TGColorSelect *fAvFillColorSelect; // fill color widget for the average.
49  TGedPatternSelect *fAvFillPatternSelect; // fill pattern widget for the average.
50  TGNumberEntryField *fSetNx; // To set the nx number of subpads.
51  TGNumberEntryField *fSetNy; // To set the ny number of subpads.
52  TGButtonGroup *fBgroup; // Group of the plot type selection.
53  TGRadioButton *fPolyLines; // Polyline option.
54  TGRadioButton *fSegment; // Segment option.
55  TGCompositeFrame *fBrowse; // Browse tab.
56  TGNumberEntryField *fGotoEntry; // Jump to an entry field.
57  TGPictureButton *fGotoNext; // Go to next entries button.
58  const TGPicture *fPicNext; // Go to next entries picture.
59  TGPictureButton *fGotoPrevious; // Go to previous entries button.
60  const TGPicture *fPicPrevious; // Go to previous entries picture.
61  TGPictureButton *fGotoFollowing; // Go to next entry button.
62  const TGPicture *fPicFollowing; // Go to next entry picture.
63  TGPictureButton *fGotoPreceding; // Go to last entry button.
64  const TGPicture *fPicPreceding; // Go to last entry picture.
65  TGTextEntry *fAddVar; // Add variable field.
66  TGTextEntry *fDeleteVar; // Delete variable field.
67 
68  virtual void ConnectSignals2Slots();
69  void MakeBrowse();
70 
71 public:
72  TSpiderEditor(const TGWindow *p = 0,
73  Int_t width = 140, Int_t height = 30,
74  UInt_t options = kChildFrame,
77 
78  virtual void DoAddVar();
79  virtual void DoDeleteVar();
80  virtual void DoDisplayAverage(Bool_t av);
81  virtual void DoGotoEntry();
82  virtual void DoGotoNext();
83  virtual void DoGotoPrevious();
84  virtual void DoGotoFollowing();
85  virtual void DoGotoPreceding();
86  virtual void DoSetNx();
87  virtual void DoSetNy();
88  virtual void DoSetPlotType();
89  virtual void SetModel(TObject* obj);
90  virtual void DoAvLineStyle(Int_t);
91  virtual void DoAvLineWidth(Int_t);
92  virtual void DoAvLineColor(Pixel_t);
93  virtual void DoAvFillColor(Pixel_t);
94  virtual void DoAvFillPattern(Style_t);
95 
96  ClassDef(TSpiderEditor,0) // GUI for editing the spider plot attributes.
97 };
98 
99 #endif
virtual void SetModel(TObject *obj)
Pick up the used spider attributes.
TGButtonGroup * fBgroup
Definition: TSpiderEditor.h:52
TGNumberEntryField * fSetNy
Definition: TSpiderEditor.h:51
virtual void DoAvFillPattern(Style_t)
Slot to set the average FillStyle.
short Style_t
Definition: RtypesCore.h:76
virtual void DoAvLineStyle(Int_t)
Slot to set the average LineStyle.
void MakeBrowse()
Make the Browse tab.
virtual void DoAvFillColor(Pixel_t)
Slot to set the average Fill Color.
virtual void DoGotoNext()
Slot to Go to next entries.
TGTextEntry * fAddVar
Definition: TSpiderEditor.h:65
TGPictureButton * fGotoFollowing
Definition: TSpiderEditor.h:61
TGLineStyleComboBox * fAvLineStyleCombo
Definition: TSpiderEditor.h:45
TGCheckButton * fDisplayAverage
Definition: TSpiderEditor.h:44
TGColorSelect * fAvFillColorSelect
Definition: TSpiderEditor.h:48
virtual void DoDeleteVar()
Slot to delete a variable.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGPictureButton * fGotoPreceding
Definition: TSpiderEditor.h:63
TSpider * fSpider
Definition: TSpiderEditor.h:43
TGRadioButton * fPolyLines
Definition: TSpiderEditor.h:53
TGColorSelect * fAvLineColorSelect
Definition: TSpiderEditor.h:47
const TGPicture * fPicPrevious
Definition: TSpiderEditor.h:60
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void DoGotoEntry()
Slot to select an entry by number.
TGCompositeFrame * fBrowse
Definition: TSpiderEditor.h:55
ClassDef(TGedFrame, 0)
virtual void DoAvLineColor(Pixel_t)
Slot to set the average LineColor.
const TGPicture * fPicNext
Definition: TSpiderEditor.h:58
virtual void ConnectSignals2Slots()
Connect signals to slots.
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void DoSetNx()
Slot connected to the nx setting.
virtual void DoAvLineWidth(Int_t)
Slot to set the average LineWidth.
const TGPicture * fPicPreceding
Definition: TSpiderEditor.h:64
TGNumberEntryField * fSetNx
Definition: TSpiderEditor.h:50
~TSpiderEditor()
Destructor of the TSpiderEditor.
virtual void DoSetPlotType()
Slot to set the plot type.
TGLineWidthComboBox * fAvLineWidthCombo
Definition: TSpiderEditor.h:46
virtual void DoGotoPreceding()
Slot to go to last entry.
TGedPatternSelect * fAvFillPatternSelect
Definition: TSpiderEditor.h:49
TGTextEntry * fDeleteVar
Definition: TSpiderEditor.h:66
Mother of all ROOT objects.
Definition: TObject.h:58
const TGPicture * fPicFollowing
Definition: TSpiderEditor.h:62
virtual void DoDisplayAverage(Bool_t av)
Slot Connected to the average display.
Spider class.
Definition: TSpider.h:52
TSpiderEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Normal constructor.
TGNumberEntryField * fGotoEntry
Definition: TSpiderEditor.h:56
virtual void DoGotoPrevious()
Slot to go to previous entries.
The TSpider editor class.
Definition: TSpiderEditor.h:41
TGRadioButton * fSegment
Definition: TSpiderEditor.h:54
virtual void DoGotoFollowing()
Slot to go to next entry.
TObject * obj
TGPictureButton * fGotoNext
Definition: TSpiderEditor.h:57
virtual void DoAddVar()
Slot to add a variable.
TGPictureButton * fGotoPrevious
Definition: TSpiderEditor.h:59
virtual void DoSetNy()
Slot connected to the nx setting.