12 #ifndef ROOT_TFitParametersDialog
13 #define ROOT_TFitParametersDialog
33 enum EFPDialogChange {
43 class TGTripleHSlider;
44 class TGNumberEntryField;
48 class TFitParametersDialog :
public TGTransientFrame {
54 Bool_t fImmediateDraw;
64 TGCompositeFrame *fContNam;
65 TGCompositeFrame *fContVal;
66 TGCompositeFrame *fContFix;
67 TGCompositeFrame *fContBnd;
68 TGCompositeFrame *fContSld;
69 TGCompositeFrame *fContMin;
70 TGCompositeFrame *fContMax;
71 TGCompositeFrame *fContStp;
72 TGCompositeFrame *fContErr;
73 TGTextEntry **fParNam;
74 TGCheckButton **fParBnd;
75 TGCheckButton **fParFix;
76 TGNumberEntry **fParVal;
77 TGNumberEntryField **fParMin;
78 TGNumberEntryField **fParMax;
79 TGNumberEntry **fParStp;
80 TGTripleHSlider **fParSld;
81 TGNumberEntryField **fParErr;
82 TGCheckButton *fUpdate;
86 TGTextButton *fCancel;
89 void DisconnectSlots();
91 TFitParametersDialog(
const TGWindow *p,
const TGWindow *main, TF1 *func,
92 TVirtualPad *pad, Int_t *ret_code = 0);
93 virtual ~TFitParametersDialog();
95 virtual void CloseWindow();
96 virtual void DoApply();
97 virtual void DoCancel();
99 virtual void DoParFix(Bool_t on);
100 virtual void DoParBound(Bool_t on);
101 virtual void DoParMaxLimit();
102 virtual void DoParMinLimit();
103 virtual void DoParStep();
104 virtual void DoParValue();
105 virtual void DoReset();
106 virtual void DoSlider();
107 virtual void DrawFunction();
108 virtual void HandleButtons(Bool_t update);
109 virtual void HandleShiftTab();
110 virtual void HandleTab();
111 virtual Bool_t HasChanges() {
return fHasChanges; }
114 void SetParameters();
116 ClassDef(TFitParametersDialog, 0)