ROOT logo
// @(#)root/ged:$Id: TF1Editor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Ilka Antcheva 21/03/06

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TF1Editor
#define ROOT_TF1Editor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TF1Editor                                                           //
//                                                                      //
// GUI for TF1 attributes and parameters.                               //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGNumberEntry;
class TGTextEntry;
class TGTextButton;
class TGDoubleHSlider;
class TGNumberEntryField;
class TGLabel;
class TGCheckButton;
class TF1;

class TF1Editor : public TGedFrame {

protected:
   TF1                 *fF1;              // selected TF1 object
   TGTextEntry         *fTitle;           // function title
   Int_t                fNP;              // number of function parameters
   TGLabel             *fParLabel;        // label for number of parameters
   TGCheckButton       *fDrawMode;        // immediate function redraw (if selected)
   TGTextButton        *fSetPars;         // open 'Set Parameters' dialog
   TGNumberEntry       *fNXpoints;        // number of points along x-axis
   TGDoubleHSlider     *fSliderX;         // slider to set x-axis range
   TGNumberEntryField  *fSldMinX;         // contains minimum value of x-axis
   TGNumberEntryField  *fSldMaxX;         // contains maximum value of x-axis

   virtual void ConnectSignals2Slots();   //connect signals to slots

public:
   TF1Editor(const TGWindow *p = 0,  Int_t width = 140, Int_t height = 30,
             UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
   virtual ~TF1Editor();

   virtual void   SetModel(TObject* obj);
   virtual void   ActivateBaseClassEditors(TClass* cl);

   virtual void   DoParameterSettings();
   virtual void   DoXPoints();
   virtual void   DoSliderXMoved();
   virtual void   DoSliderXPressed();
   virtual void   DoSliderXReleased();
   virtual void   DoXRange();

   ClassDef(TF1Editor,0)  // user interface for TF1 objects
};

#endif
 TF1Editor.h:1
 TF1Editor.h:2
 TF1Editor.h:3
 TF1Editor.h:4
 TF1Editor.h:5
 TF1Editor.h:6
 TF1Editor.h:7
 TF1Editor.h:8
 TF1Editor.h:9
 TF1Editor.h:10
 TF1Editor.h:11
 TF1Editor.h:12
 TF1Editor.h:13
 TF1Editor.h:14
 TF1Editor.h:15
 TF1Editor.h:16
 TF1Editor.h:17
 TF1Editor.h:18
 TF1Editor.h:19
 TF1Editor.h:20
 TF1Editor.h:21
 TF1Editor.h:22
 TF1Editor.h:23
 TF1Editor.h:24
 TF1Editor.h:25
 TF1Editor.h:26
 TF1Editor.h:27
 TF1Editor.h:28
 TF1Editor.h:29
 TF1Editor.h:30
 TF1Editor.h:31
 TF1Editor.h:32
 TF1Editor.h:33
 TF1Editor.h:34
 TF1Editor.h:35
 TF1Editor.h:36
 TF1Editor.h:37
 TF1Editor.h:38
 TF1Editor.h:39
 TF1Editor.h:40
 TF1Editor.h:41
 TF1Editor.h:42
 TF1Editor.h:43
 TF1Editor.h:44
 TF1Editor.h:45
 TF1Editor.h:46
 TF1Editor.h:47
 TF1Editor.h:48
 TF1Editor.h:49
 TF1Editor.h:50
 TF1Editor.h:51
 TF1Editor.h:52
 TF1Editor.h:53
 TF1Editor.h:54
 TF1Editor.h:55
 TF1Editor.h:56
 TF1Editor.h:57
 TF1Editor.h:58
 TF1Editor.h:59
 TF1Editor.h:60
 TF1Editor.h:61
 TF1Editor.h:62
 TF1Editor.h:63
 TF1Editor.h:64
 TF1Editor.h:65
 TF1Editor.h:66
 TF1Editor.h:67
 TF1Editor.h:68
 TF1Editor.h:69
 TF1Editor.h:70