121 fParFix[i]->
Connect(
"Toggled(Bool_t)",
"TFunctionParametersDialog",
this,
"DoFix(Bool_t)");
137 this,
"DoParValue()");
138 fParVal[i]->
Connect(
"ValueSet(Long_t)",
"TFunctionParametersDialog",
this,
"DoParValue()");
161 fParMin[i]->
Connect(
"ReturnPressed()",
"TFunctionParametersDialog",
this,
"DoParMinLimit()");
203 fParMax[i]->
Connect(
"ReturnPressed()",
"TFunctionParametersDialog",
this,
"DoParMaxLimit()");
211 fUpdate->
Connect(
"Toggled(Bool_t)",
"TFunctionParametersDialog",
this,
"HandleButtons(Bool_t)");
220 fReset->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoReset()");
225 fApply->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoApply()");
230 fOK->
SetToolTipText(
"Apply parameter settings, redraw function and close this dialog");
231 fOK->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoOK()");
236 fCancel->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoCancel()");
254 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
256 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
298 txt =
"Do you want to apply last parameters' setting?";
305 }
else if (ret ==
kMBNo) {
334 if (
fParVal[i]->GetNumber() != 0) {
350 }
else if (!
fParMin[i]->IsEnabled()) {
368 }
else if (
fPval[i]) {
388 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
390 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
483 if (!
fParMax[i]->IsEnabled()) {
491 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
493 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
594 txt =
"The lower parameter bound cannot be bigger then the upper one.";
630 txt =
"The lower parameter bound cannot be bigger then the upper one.";
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
R__EXTERN void * gTQSender
char * Form(const char *fmt,...)
virtual void SetParError(Int_t ipar, Double_t error)
Set error for parameter number ipar.
virtual void GetParLimits(Int_t ipar, Double_t &parmin, Double_t &parmax) const
Return limits for parameter ipar.
virtual Double_t GetParError(Int_t ipar) const
Return value of parameter number ipar.
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual Int_t GetNpar() const
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
virtual const char * GetParName(Int_t ipar) const
virtual void SetParLimits(Int_t ipar, Double_t parmin, Double_t parmax)
Set limits for parameter ipar.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetParameter(Int_t param, Double_t value)
virtual void FixParameter(Int_t ipar, Double_t value)
Fix the value of a parameter The specified value will be used in a fit operation.
virtual Double_t GetParameter(Int_t ipar) const
TGCompositeFrame * fContMin
TGNumberEntryField ** fParMin
virtual void DoApply()
Slot related to the Preview button.
TGCompositeFrame * fContNam
virtual void DoReset()
Slot related to the Reset button.
virtual void CloseWindow()
Close parameters' dialog.
virtual void RedrawFunction()
Redraw function graphics.
TGNumberEntryField ** fParMax
virtual ~TFunctionParametersDialog()
Destructor.
virtual void DoFix(Bool_t on)
Slot related to the Fix check button.
virtual void DoParMinLimit()
Slot related to the minumum parameter limit settings.
TFunctionParametersDialog(const TGWindow *p, const TGWindow *main, TF1 *func, TVirtualPad *pad, Double_t rmin, Double_t rmax)
Create the parameters' dialog of currently selected function 'func'.
virtual void DoOK()
Slot related to the OK button.
TGCompositeFrame * fContVal
virtual void DoParMaxLimit()
Slot related to the maximum parameter limit settings.
virtual void HandleButtons(Bool_t update)
Handle the button dependent states in this dialog.
TGTripleHSlider ** fParSld
virtual void DoSlider()
Slot related to the parameters' value settings.
TGCompositeFrame * fContMax
TGCompositeFrame * fContSld
virtual void DoCancel()
Slot related to the Cancel button.
virtual void DoParValue()
Slot related to the parameter value settings.
TGCompositeFrame * fContFix
const TGWindow * GetRoot() const
Returns current root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual TList * GetList() const
Int_t GetState(TGFrame *f) const
Get state of sub frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual Float_t GetMaxPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void DeleteWindow()
Delete window.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
virtual void SetNumber(Double_t val)
TGNumberEntryField * GetNumberEntry() const
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
void SetEnabled(Bool_t flag=kTRUE)
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
virtual void SetPointerPosition(Double_t pos)
Set pointer position in scaled (real) value.
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0