ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGCheckButton;
28 class TPaveStats;
29 
30 class TPaveStatsEditor : public TGedFrame {
31 
32 protected:
33  TPaveStats *fPaveStats; // TPaveStats object
34  // widgets for stat options
35  TGCheckButton *fHistoName; // histo name check box
36  TGCheckButton *fEntries; // entries' number check box
37  TGCheckButton *fMean; // mean value check box
38  TGCheckButton *fRMS; // RMS check box
39  TGCheckButton *fUnderflow; // underflow number check box
40  TGCheckButton *fOverflow; // overflow number check box
41  TGCheckButton *fIntegral; // integral of bins check box
42  TGCheckButton *fSkewness; // skewness check box
43  TGCheckButton *fKurtosis; // kurtosis check box
44  TGCheckButton *fStatsErrors; // statistics error check box
45  // widgets for fit options
46  TGCheckButton *fNameValues; // parameters' name/values check box
47  TGCheckButton *fErrors; // error check box
48  TGCheckButton *fChisquare; // Chisquare check box
49  TGCheckButton *fProbability; // probability check box
50 
51  virtual void ConnectSignals2Slots();
52 
53 public:
54  TPaveStatsEditor(const TGWindow *p=0,
55  Int_t width = 140, Int_t height = 30,
56  UInt_t options = kChildFrame,
58  virtual ~TPaveStatsEditor();
59 
60  virtual void SetModel(TObject* obj);
61  virtual void DoStatOptions();
62  virtual void DoFitOptions();
63  virtual void SetValuesON(Bool_t on);
64 
65  ClassDef(TPaveStatsEditor,0) // GUI for editing TPaveStats
66 };
67 
68 #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:28
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
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TPaveStats * fPaveStats
ClassDef(TGedFrame, 0)
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:58
TGCheckButton * fNameValues
TGCheckButton * fKurtosis
TGCheckButton * fRMS
virtual void DoFitOptions()
Slot connected to the fit options.
TObject * obj
TGCheckButton * fOverflow