Logo ROOT  
Reference Guide
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#include "TGedFrame.h"
24
25class TSpider;
26class TGCheckButton;
28class TGNumberEntry;
29class TGButtonGroup;
30class TGRadioButton;
31class TGPicture;
32class TGPictureButton;
33class TGTextEntry;
36class TGColorSelect;
38
39class TSpiderEditor : public TGedFrame {
40protected:
41 TSpider *fSpider; ///< Pointer to the TSpider.
42 TGCheckButton *fDisplayAverage; ///< Button for the display of the average.
43 TGLineStyleComboBox *fAvLineStyleCombo; ///< line style combo box for the average.
44 TGLineWidthComboBox *fAvLineWidthCombo; ///< line width combo box for the average.
45 TGColorSelect *fAvLineColorSelect; ///< line color widget for the average.
46 TGColorSelect *fAvFillColorSelect; ///< fill color widget for the average.
47 TGedPatternSelect *fAvFillPatternSelect; ///< fill pattern widget for the average.
48 TGNumberEntryField *fSetNx; ///< To set the nx number of subpads.
49 TGNumberEntryField *fSetNy; ///< To set the ny number of subpads.
50 TGButtonGroup *fBgroup; ///< Group of the plot type selection.
51 TGRadioButton *fPolyLines; ///< Polyline option.
52 TGRadioButton *fSegment; ///< Segment option.
53 TGCompositeFrame *fBrowse; ///< Browse tab.
54 TGNumberEntryField *fGotoEntry; ///< Jump to an entry field.
55 TGPictureButton *fGotoNext; ///< Go to next entries button.
56 const TGPicture *fPicNext; ///< Go to next entries picture.
57 TGPictureButton *fGotoPrevious; ///< Go to previous entries button.
58 const TGPicture *fPicPrevious; ///< Go to previous entries picture.
59 TGPictureButton *fGotoFollowing; ///< Go to next entry button.
60 const TGPicture *fPicFollowing; ///< Go to next entry picture.
61 TGPictureButton *fGotoPreceding; ///< Go to last entry button.
62 const TGPicture *fPicPreceding; ///< Go to last entry picture.
63 TGTextEntry *fAddVar; ///< Add variable field.
64 TGTextEntry *fDeleteVar; ///< Delete variable field.
65
66 virtual void ConnectSignals2Slots();
67 void MakeBrowse();
68
69public:
70 TSpiderEditor(const TGWindow *p = 0,
71 Int_t width = 140, Int_t height = 30,
72 UInt_t options = kChildFrame,
75
76 virtual void DoAddVar();
77 virtual void DoDeleteVar();
78 virtual void DoDisplayAverage(Bool_t av);
79 virtual void DoGotoEntry();
80 virtual void DoGotoNext();
81 virtual void DoGotoPrevious();
82 virtual void DoGotoFollowing();
83 virtual void DoGotoPreceding();
84 virtual void DoSetNx();
85 virtual void DoSetNy();
86 virtual void DoSetPlotType();
87 virtual void SetModel(TObject* obj);
88 virtual void DoAvLineStyle(Int_t);
89 virtual void DoAvLineWidth(Int_t);
90 virtual void DoAvLineColor(Pixel_t);
91 virtual void DoAvFillColor(Pixel_t);
92 virtual void DoAvFillPattern(Style_t);
93
94 ClassDef(TSpiderEditor,0) // GUI for editing the spider plot attributes.
95};
96
97#endif
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
short Style_t
Definition: RtypesCore.h:89
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Organizes TGButton widgets in a group.
Definition: TGButtonGroup.h:21
Selects different options.
Definition: TGButton.h:264
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
The base class for composite widgets (menu bars, list boxes, etc.).
Definition: TGFrame.h:287
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
The TGLineStyleComboBox user callable and it creates a combobox for selecting the line style.
Definition: TGComboBox.h:140
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
Definition: TGComboBox.h:158
TGNumberEntry is a number entry input widget with up/down buttons.
Yield an action as soon as it is clicked.
Definition: TGButton.h:228
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
Selects different options.
Definition: TGButton.h:321
A TGTextEntry is a one line text input widget.
Definition: TGTextEntry.h:24
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
ClassDef(TGedFrame, 0)
is a button with pattern area with a little down arrow.
Mother of all ROOT objects.
Definition: TObject.h:37
The TSpider editor class.
Definition: TSpiderEditor.h:39
virtual void DoSetNy()
Slot connected to the nx setting.
TGNumberEntryField * fGotoEntry
Jump to an entry field.
Definition: TSpiderEditor.h:54
TGPictureButton * fGotoNext
Go to next entries button.
Definition: TSpiderEditor.h:55
TSpiderEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Normal constructor.
void MakeBrowse()
Make the Browse tab.
TGColorSelect * fAvFillColorSelect
fill color widget for the average.
Definition: TSpiderEditor.h:46
virtual void DoAvLineStyle(Int_t)
Slot to set the average LineStyle.
virtual void DoDisplayAverage(Bool_t av)
Slot Connected to the average display.
virtual void DoGotoFollowing()
Slot to go to next entry.
TGLineWidthComboBox * fAvLineWidthCombo
line width combo box for the average.
Definition: TSpiderEditor.h:44
TSpider * fSpider
Pointer to the TSpider.
Definition: TSpiderEditor.h:41
virtual void DoAvFillPattern(Style_t)
Slot to set the average FillStyle.
const TGPicture * fPicNext
Go to next entries picture.
Definition: TSpiderEditor.h:56
TGCheckButton * fDisplayAverage
Button for the display of the average.
Definition: TSpiderEditor.h:42
const TGPicture * fPicPreceding
Go to last entry picture.
Definition: TSpiderEditor.h:62
virtual void DoGotoEntry()
Slot to select an entry by number.
TGNumberEntryField * fSetNy
To set the ny number of subpads.
Definition: TSpiderEditor.h:49
virtual void DoGotoPreceding()
Slot to go to last entry.
virtual void DoSetNx()
Slot connected to the nx setting.
TGRadioButton * fPolyLines
Polyline option.
Definition: TSpiderEditor.h:51
virtual void DoAvLineWidth(Int_t)
Slot to set the average LineWidth.
TGCompositeFrame * fBrowse
Browse tab.
Definition: TSpiderEditor.h:53
virtual void DoAvLineColor(Pixel_t)
Slot to set the average LineColor.
virtual void DoGotoNext()
Slot to Go to next entries.
virtual void DoGotoPrevious()
Slot to go to previous entries.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGButtonGroup * fBgroup
Group of the plot type selection.
Definition: TSpiderEditor.h:50
TGRadioButton * fSegment
Segment option.
Definition: TSpiderEditor.h:52
TGLineStyleComboBox * fAvLineStyleCombo
line style combo box for the average.
Definition: TSpiderEditor.h:43
const TGPicture * fPicFollowing
Go to next entry picture.
Definition: TSpiderEditor.h:60
TGPictureButton * fGotoFollowing
Go to next entry button.
Definition: TSpiderEditor.h:59
const TGPicture * fPicPrevious
Go to previous entries picture.
Definition: TSpiderEditor.h:58
TGPictureButton * fGotoPreceding
Go to last entry button.
Definition: TSpiderEditor.h:61
virtual void DoDeleteVar()
Slot to delete a variable.
TGedPatternSelect * fAvFillPatternSelect
fill pattern widget for the average.
Definition: TSpiderEditor.h:47
TGColorSelect * fAvLineColorSelect
line color widget for the average.
Definition: TSpiderEditor.h:45
virtual void DoAvFillColor(Pixel_t)
Slot to set the average Fill Color.
TGPictureButton * fGotoPrevious
Go to previous entries button.
Definition: TSpiderEditor.h:57
TGTextEntry * fDeleteVar
Delete variable field.
Definition: TSpiderEditor.h:64
virtual void DoSetPlotType()
Slot to set the plot type.
~TSpiderEditor()
Destructor of the TSpiderEditor.
TGNumberEntryField * fSetNx
To set the nx number of subpads.
Definition: TSpiderEditor.h:48
TGTextEntry * fAddVar
Add variable field.
Definition: TSpiderEditor.h:63
virtual void SetModel(TObject *obj)
Pick up the used spider attributes.
virtual void DoAddVar()
Slot to add a variable.
Spider class.
Definition: TSpider.h:40