00001 // @(#)root/ged:$Id: TPaveStatsEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 21/06/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TPaveStatsEditor 00013 #define ROOT_TPaveStatsEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TPaveStatsEditor // 00018 // // 00019 // Implements GUI for editing attributes of TPaveStats objects. // // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGCheckButton; 00028 class TPaveStats; 00029 00030 class TPaveStatsEditor : public TGedFrame { 00031 00032 protected: 00033 TPaveStats *fPaveStats; // TPaveStats object 00034 // widgets for stat options 00035 TGCheckButton *fHistoName; // histo name check box 00036 TGCheckButton *fEntries; // entries' number check box 00037 TGCheckButton *fMean; // mean value check box 00038 TGCheckButton *fRMS; // RMS check box 00039 TGCheckButton *fUnderflow; // underflow number check box 00040 TGCheckButton *fOverflow; // overflow number check box 00041 TGCheckButton *fIntegral; // integral of bins check box 00042 TGCheckButton *fSkewness; // skewness check box 00043 TGCheckButton *fKurtosis; // kurtosis check box 00044 TGCheckButton *fStatsErrors; // statistics error check box 00045 // widgets for fit options 00046 TGCheckButton *fNameValues; // parameters' name/values check box 00047 TGCheckButton *fErrors; // error check box 00048 TGCheckButton *fChisquare; // Chisquare check box 00049 TGCheckButton *fProbability; // probability check box 00050 00051 virtual void ConnectSignals2Slots(); 00052 00053 public: 00054 TPaveStatsEditor(const TGWindow *p=0, 00055 Int_t width = 140, Int_t height = 30, 00056 UInt_t options = kChildFrame, 00057 Pixel_t back = GetDefaultFrameBackground()); 00058 virtual ~TPaveStatsEditor(); 00059 00060 virtual void SetModel(TObject* obj); 00061 virtual void DoStatOptions(); 00062 virtual void DoFitOptions(); 00063 virtual void SetValuesON(Bool_t on); 00064 00065 ClassDef(TPaveStatsEditor,0) // GUI for editing TPaveStats 00066 }; 00067 00068 #endif