Logo ROOT   6.10/09
Reference Guide
TPaveStatsEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 21/06/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, 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_TPaveStatsEditor
13 #define ROOT_TPaveStatsEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TPaveStatsEditor //
18 // //
19 // Implements GUI for editing attributes of TPaveStats objects. // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TGCheckButton;
26 class TPaveStats;
27 
28 class TPaveStatsEditor : public TGedFrame {
29 
30 protected:
31  TPaveStats *fPaveStats; // TPaveStats object
32  // widgets for stat options
33  TGCheckButton *fHistoName; // histo name check box
34  TGCheckButton *fEntries; // entries' number check box
35  TGCheckButton *fMean; // mean value check box
36  TGCheckButton *fRMS; // RMS check box
37  TGCheckButton *fUnderflow; // underflow number check box
38  TGCheckButton *fOverflow; // overflow number check box
39  TGCheckButton *fIntegral; // integral of bins check box
40  TGCheckButton *fSkewness; // skewness check box
41  TGCheckButton *fKurtosis; // kurtosis check box
42  TGCheckButton *fStatsErrors; // statistics error check box
43  // widgets for fit options
44  TGCheckButton *fNameValues; // parameters' name/values check box
45  TGCheckButton *fErrors; // error check box
46  TGCheckButton *fChisquare; // Chisquare check box
47  TGCheckButton *fProbability; // probability check box
48 
49  virtual void ConnectSignals2Slots();
50 
51 public:
52  TPaveStatsEditor(const TGWindow *p=0,
53  Int_t width = 140, Int_t height = 30,
54  UInt_t options = kChildFrame,
56  virtual ~TPaveStatsEditor();
57 
58  virtual void SetModel(TObject* obj);
59  virtual void DoStatOptions();
60  virtual void DoFitOptions();
61  virtual void SetValuesON(Bool_t on);
62 
63  ClassDef(TPaveStatsEditor,0) // GUI for editing TPaveStats
64 };
65 
66 #endif
TGCheckButton * fMean
TGCheckButton * fStatsErrors
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGCheckButton * fIntegral
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGCheckButton * fChisquare
The histogram statistics painter class.
Definition: TPaveStats.h:18
TPaveStatsEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of TPaveStats GUI.
TGCheckButton * fProbability
TGCheckButton * fSkewness
TGCheckButton * fErrors
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TPaveStats * fPaveStats
virtual void SetModel(TObject *obj)
Set GUI widgets according to the used TPaveStats attributes.
TGCheckButton * fEntries
virtual void DoStatOptions()
Slot connected to the stat options.
virtual ~TPaveStatsEditor()
Destructor of fill editor.
TGCheckButton * fHistoName
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void SetValuesON(Bool_t on)
Slot connected to the selection of the button 'Errors': check button Values should be selected if Err...
TGCheckButton * fUnderflow
Mother of all ROOT objects.
Definition: TObject.h:37
TGCheckButton * fNameValues
TGCheckButton * fKurtosis
TGCheckButton * fRMS
virtual void DoFitOptions()
Slot connected to the fit options.
TGCheckButton * fOverflow