00001 // @(#)root/ged:$Id: TF1Editor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 21/03/06 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, 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_TF1Editor 00013 #define ROOT_TF1Editor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TF1Editor // 00018 // // 00019 // GUI for TF1 attributes and parameters. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGNumberEntry; 00028 class TGTextEntry; 00029 class TGTextButton; 00030 class TGDoubleHSlider; 00031 class TGNumberEntryField; 00032 class TGLabel; 00033 class TGCheckButton; 00034 class TF1; 00035 00036 class TF1Editor : public TGedFrame { 00037 00038 protected: 00039 TF1 *fF1; // selected TF1 object 00040 TGTextEntry *fTitle; // function title 00041 Int_t fNP; // number of function parameters 00042 TGLabel *fParLabel; // label for number of parameters 00043 TGCheckButton *fDrawMode; // immediate function redraw (if selected) 00044 TGTextButton *fSetPars; // open 'Set Parameters' dialog 00045 TGNumberEntry *fNXpoints; // number of points along x-axis 00046 TGDoubleHSlider *fSliderX; // slider to set x-axis range 00047 TGNumberEntryField *fSldMinX; // contains minimum value of x-axis 00048 TGNumberEntryField *fSldMaxX; // contains maximum value of x-axis 00049 00050 virtual void ConnectSignals2Slots(); //connect signals to slots 00051 00052 public: 00053 TF1Editor(const TGWindow *p = 0, Int_t width = 140, Int_t height = 30, 00054 UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); 00055 virtual ~TF1Editor(); 00056 00057 virtual void SetModel(TObject* obj); 00058 virtual void ActivateBaseClassEditors(TClass* cl); 00059 00060 virtual void DoParameterSettings(); 00061 virtual void DoXPoints(); 00062 virtual void DoSliderXMoved(); 00063 virtual void DoSliderXPressed(); 00064 virtual void DoSliderXReleased(); 00065 virtual void DoXRange(); 00066 00067 ClassDef(TF1Editor,0) // user interface for TF1 objects 00068 }; 00069 00070 #endif