swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 34947f135c08395b15220f10571f0f656f2c9a20 authored by Unknown Author on 12 February 2007, 17:49:48 UTC
This commit was manufactured by cvs2svn to create tag 'v5-14-00c'.
Tip revision: 34947f1
TF1Editor.h
// @(#)root/ged:$Name:  $:$Id: TF1Editor.h,v 1.4 2006/07/10 13:18:57 rdm Exp $
// 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_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif
#ifndef ROOT_TF1
#include "TF1.h"
#endif


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

class TF1Editor : public TGedFrame {

protected:
   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   DoParameterSettings();
   virtual void   DoXPoints();
   virtual void   DoSliderXMoved();
   virtual void   DoSliderXPressed();
   virtual void   DoSliderXReleased();
   virtual void   DoXRange();

   ClassDef(TF1Editor,0)  // TF1 editor
};

#endif
back to top