Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TF1Editor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 21/03/06
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TF1Editor
13 #define ROOT_TF1Editor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TF1Editor //
18 // //
19 // GUI for TF1 attributes and parameters. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TGNumberEntry;
26 class TGTextEntry;
27 class TGTextButton;
28 class TGDoubleHSlider;
29 class TGNumberEntryField;
30 class TGLabel;
31 class TGCheckButton;
32 class TF1;
33 
34 class TF1Editor : public TGedFrame {
35 
36 protected:
37  TF1 *fF1; // selected TF1 object
38  TGTextEntry *fTitle; // function title
39  Int_t fNP; // number of function parameters
40  TGLabel *fParLabel; // label for number of parameters
41  TGCheckButton *fDrawMode; // immediate function redraw (if selected)
42  TGTextButton *fSetPars; // open 'Set Parameters' dialog
43  TGNumberEntry *fNXpoints; // number of points along x-axis
44  TGDoubleHSlider *fSliderX; // slider to set x-axis range
45  TGNumberEntryField *fSldMinX; // contains minimum value of x-axis
46  TGNumberEntryField *fSldMaxX; // contains maximum value of x-axis
47 
48  virtual void ConnectSignals2Slots(); //connect signals to slots
49 
50 public:
51  TF1Editor(const TGWindow *p = 0, Int_t width = 140, Int_t height = 30,
52  UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
53  virtual ~TF1Editor();
54 
55  virtual void SetModel(TObject* obj);
56  virtual void ActivateBaseClassEditors(TClass* cl);
57 
58  virtual void DoParameterSettings();
59  virtual void DoXPoints();
60  virtual void DoSliderXMoved();
61  virtual void DoSliderXPressed();
62  virtual void DoSliderXReleased();
63  virtual void DoXRange();
64 
65  ClassDef(TF1Editor,0) // user interface for TF1 objects
66 };
67 
68 #endif