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) {
332 if (
id ==
kFIX*fNP+i) {
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",
522 if (
id ==
kSLD*fNP+i) {
548 if (
id ==
kVAL*fNP+i) {
590 if (
id ==
kMIN*fNP+i) {
594 txt =
"The lower parameter bound cannot be bigger then the upper one.";
626 if (
id ==
kMAX*fNP+i) {
630 txt =
"The lower parameter bound cannot be bigger then the upper one.";
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
TGCompositeFrame * fContNam
TGCompositeFrame * fContVal
Int_t GetState(TGFrame *f) const
Get state of sub frame.
virtual ~TFunctionParametersDialog()
Destructor.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN void * gTQSender
const TGWindow * GetRoot() const
Returns current root (i.e.
TGCompositeFrame * fContFix
TGCompositeFrame * fContSld
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual void SetNumber(Double_t val)
void ToUpper()
Change string to upper case.
virtual void DoOK()
Slot related to the OK button.
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.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual Double_t GetParError(Int_t ipar) const
Return value of parameter number ipar.
virtual void SetRange(Float_t min, Float_t max)
virtual void DoParMaxLimit()
Slot related to the maximum 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 const char * ClassName() const
Returns name of class to which the object belongs.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void SetPointerPosition(Float_t pos)
Set pointer position in scaled (real) value.
virtual void RedrawFunction()
Redraw function graphics.
TGCompositeFrame(const TGCompositeFrame &)
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
int main(int argc, char **argv)
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual TList * GetList() const
TGNumberEntryField ** fParMin
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
TGTripleHSlider ** fParSld
virtual const char * GetParName(Int_t ipar) const
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...
virtual void DoApply()
Slot related to the Preview button.
virtual void SetParLimits(Int_t ipar, Double_t parmin, Double_t parmax)
Set limits for parameter ipar.
virtual void DoParValue()
Slot related to the parameter value settings.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void SetParError(Int_t ipar, Double_t error)
Set error for parameter number ipar.
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
char * Form(const char *fmt,...)
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. ...
TGCompositeFrame * fContMax
constexpr Double_t E()
Base of natural log: .
virtual void DoCancel()
Slot related to the Cancel button.
virtual void Modified(Bool_t flag=1)=0
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
void SetEnabled(Bool_t flag=kTRUE)
TGNumberEntryField ** fParMax
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
TGCompositeFrame * fContMin
virtual void UnmapWindow()
virtual Int_t GetNpar() const
virtual void GetParLimits(Int_t ipar, Double_t &parmin, Double_t &parmax) const
Return limits for parameter ipar.
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
TGNumberEntryField * GetNumberEntry() const
virtual void DoParMinLimit()
Slot related to the minumum parameter limit settings.
virtual void DoReset()
Slot related to the Reset button.
virtual Double_t GetParameter(Int_t ipar) const
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
virtual void CloseWindow()
Close parameters' dialog.
virtual void SetPosition(Float_t min, Float_t max)
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual void HandleButtons(Bool_t update)
Handle the button dependent states in this dialog.
virtual void SetParameter(Int_t param, Double_t value)
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 DoSlider()
Slot related to the parameters' value settings.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void DeleteWindow()
Delete window.
virtual void DoFix(Bool_t on)
Slot related to the Fix check button.
virtual const char * GetTitle() const
Returns title of object.