Warning, file /include/root/TFitParametersDialog.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TFitParametersDialog
0013 #define ROOT_TFitParametersDialog
0014
0015
0016 #include "TGWidget.h"
0017 #include "TGFrame.h"
0018
0019 enum EFPDialogBound {
0020 kFPDBounded,
0021 kFPDNoneBounded
0022 };
0023
0024
0025
0026 enum EFPDialogChange {
0027 kFPDNoChange,
0028 kFPDChange
0029 };
0030
0031 class TF1;
0032 class TGNumberEntry;
0033 class TGTextEntry;
0034 class TGCheckButton;
0035 class TGTextButton;
0036 class TGTripleHSlider;
0037 class TGNumberEntryField;
0038 class TVirtualPad;
0039
0040
0041 class TFitParametersDialog : public TGTransientFrame {
0042
0043 protected:
0044 TF1 *fFunc;
0045 TVirtualPad *fFpad;
0046 Bool_t fHasChanges;
0047 Bool_t fImmediateDraw;
0048 Int_t *fRetCode;
0049 Int_t fNP;
0050 Double_t fRangexmin;
0051 Double_t fRangexmax;
0052 Double_t *fPmin;
0053 Double_t *fPmax;
0054 Double_t *fPval;
0055 Double_t *fPerr;
0056 Double_t *fPstp;
0057 TGCompositeFrame *fContNam;
0058 TGCompositeFrame *fContVal;
0059 TGCompositeFrame *fContFix;
0060 TGCompositeFrame *fContBnd;
0061 TGCompositeFrame *fContSld;
0062 TGCompositeFrame *fContMin;
0063 TGCompositeFrame *fContMax;
0064 TGCompositeFrame *fContStp;
0065 TGCompositeFrame *fContErr;
0066 TGTextEntry **fParNam;
0067 TGCheckButton **fParBnd;
0068 TGCheckButton **fParFix;
0069 TGNumberEntry **fParVal;
0070 TGNumberEntryField **fParMin;
0071 TGNumberEntryField **fParMax;
0072 TGNumberEntry **fParStp;
0073 TGTripleHSlider **fParSld;
0074 TGNumberEntryField **fParErr;
0075 TGCheckButton *fUpdate;
0076 TGTextButton *fApply;
0077 TGTextButton *fReset;
0078 TGTextButton *fOK;
0079 TGTextButton *fCancel;
0080 TList fTextEntries;
0081
0082 void DisconnectSlots();
0083 public:
0084 TFitParametersDialog(const TGWindow *p, const TGWindow *main, TF1 *func,
0085 TVirtualPad *pad, Int_t *ret_code = nullptr);
0086 ~TFitParametersDialog() override;
0087
0088 void CloseWindow() override;
0089 virtual void DoApply();
0090 virtual void DoCancel();
0091 virtual void DoOK();
0092 virtual void DoParFix(Bool_t on);
0093 virtual void DoParBound(Bool_t on);
0094 virtual void DoParMaxLimit();
0095 virtual void DoParMinLimit();
0096 virtual void DoParStep();
0097 virtual void DoParValue();
0098 virtual void DoReset();
0099 virtual void DoSlider();
0100 virtual void DrawFunction();
0101 virtual void HandleButtons(Bool_t update);
0102 virtual void HandleShiftTab();
0103 virtual void HandleTab();
0104 virtual Bool_t HasChanges() { return fHasChanges; }
0105
0106 protected:
0107 void SetParameters();
0108
0109 ClassDefOverride(TFitParametersDialog, 0)
0110 };
0111
0112 #endif