GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitPanel.h
Go to the documentation of this file.
1 // $Id: TGo4FitPanel.h 1135 2014-01-22 15:40:12Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FITPANEL_H
15 #define TGO4FITPANEL_H
16 
17 #include "QGo4Widget.h"
18 #include "ui_TGo4FitPanel.h"
19 #include "TArrow.h"
20 
21 
22 class QVBoxLayout;
23 class QHBoxLayout;
24 class QGridLayout;
25 class QSpacerItem;
26 class QWidgetStack;
27 class QWidget;
28 class QSplitter;
29 class QPushButton;
30 class QSpinBox;
31 class QLabel;
32 class QTableWidget;
33 class QCheckBox;
34 class QComboBox;
35 class QTabWidget;
36 class QGo4LineEdit;
37 class QSlider;
38 class QFrame;
39 class QLineEdit;
40 class TGo4ViewPanel;
41 class TPad;
42 class QDragEnterEvent;
43 class QDragMoveEvent;
44 class QDropEvent;
45 class QMenuBar;
46 class QFitItem;
47 class QFitNamedWidget;
48 class QFitModelWidget;
49 class TObject;
50 class TObjArray;
51 class TGo4Slot;
52 class TGo4FitSlot;
53 class TGo4FitComponent;
54 class TGo4FitModel;
55 class TGo4FitData;
56 class TGo4Fitter;
57 
58 class TGo4Fitter;
59 class TGo4FitGuiArrow;
60 class TGo4FitPeakFinder;
61 
62 class TGo4FitPanel;
63 
64 class TGo4FitGuiArrow : public TArrow {
65 
66 public:
67 
69 
71  TGo4FitGuiArrow(Float_t arrowsize, Option_t* option);
72  TGo4FitGuiArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize, Option_t* option);
73  virtual ~TGo4FitGuiArrow();
74 
75  void SetForPosition(TGo4FitModel* model, TGo4FitGuiArrow* forwidth, Double_t iLineAmpl);
76  void SetForWidth(TGo4FitModel* model, TGo4FitGuiArrow* forposition);
77  void SetForRange(TGo4FitComponent* Comp, Int_t num, Double_t rangey, Double_t shiftx);
78  void SetItem(QFitItem* item, TGo4FitPanel* panel);
79 
80  QFitItem* GetItem() { return fxItem; }
81 
82  Bool_t Locate();
83 
84  Int_t GetType() { return fxType; }
85  TGo4FitModel* GetModel() { return fxModel; }
87 
88  Bool_t IsAssignTo(TObject* obj);
89 
90  void ClearOther() { fxOther = 0; }
91  virtual void Delete(Option_t* option=""); // *MENU*
92 
93  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
94 
95 private:
96  Int_t fxType;
99  Double_t fdLineAmpl;
101  Int_t fiRangeNum;
102  Double_t fdRangeY;
103  Double_t fdShiftX;
106 };
107 
108 
109 
110 
111 class TGo4FitPanel : public QGo4Widget, public Ui::TGo4FitPanel
112  {
113  Q_OBJECT
114 
115 public:
116  TGo4FitPanel( QWidget* parent = 0, const char* name = 0 );
117  virtual ~TGo4FitPanel();
118 
119  virtual bool IsAcceptDrag(const char* itemname, TClass * cl, int kind );
120  virtual void DropOnPanel( QDropEvent* event, const char * itemname, TClass * cl, int kind );
121  virtual void linkedObjectUpdated( const char * linkname, TObject * obj );
122  virtual void linkedObjectRemoved( const char * linkname );
123  virtual void linkedRemoved(TGo4Slot* slot, TObject* obj);
124  virtual void CreateFitSlotLink(TGo4FitSlot* slot, const char * itemname);
125  virtual void WorkWithFitter(const char* itemname, TGo4ViewPanel* panel, TPad* pad);
126  virtual void WorkWithFitterInSlot(TGo4Slot* slot);
127  virtual bool WorkingWithPanel();
128  virtual bool WorkingWithOnlyPad();
129  virtual TGo4ViewPanel* ActivePanel();
130  virtual TPad* ActivePad();
131  virtual TGo4Fitter* GetFitter();
132  virtual TGo4Fitter* CloneFitter();
133  virtual void RemoveFitterLink();
134  virtual void SetFitter(TGo4Fitter*);
135  virtual void Fitter_New();
136  virtual void Fitter_NewForActivePad(bool overwrite);
137  virtual void Fitter_Delete();
138  virtual void Fitter_UseWorkspace();
139  virtual void Fitter_UpdateReferences();
140  virtual void Fitter_SaveToBrowser();
141  virtual void Fitter_PrintParameters();
142  virtual void Fitter_RollbackParameters();
143  virtual void Button_WorkWithPanel();
144  virtual void Button_SimpleFit(int nmodel);
145  virtual void Button_SimpleClear();
146  virtual void Button_PeakFinder();
147  virtual void Button_PerformFit();
148  virtual void Button_FitterDraw(TGo4FitData* selecteddata);
149  virtual void Cmd_CreateFitter();
150  virtual void Cmd_CreateAppropriateFitter();
151  virtual void Cmd_DeleteFitter();
152  virtual void Cmd_ClearFitter();
153  virtual void Cmd_SaveFitter(bool ask);
154  virtual void Cmd_ItemPrint(QFitItem* item);
155  virtual void Cmd_AddNewData(QFitItem * item, int id);
156  virtual void Cmd_DrawData(QFitItem * item);
157  virtual void Cmd_DeleteData(QFitItem * item);
158  virtual void Cmd_DeleteAssosiatedModels(QFitItem * item);
159  virtual void Cmd_DeleteAllData(QFitItem * item);
160  virtual void Cmd_AddNewModel(QFitItem * item, int id);
161  virtual void Cmd_DeleteModel(QFitItem * item);
162  virtual void Cmd_RemoveModel(TGo4FitModel* model);
163  virtual void Cmd_DeleteModels(QFitItem * item);
164  virtual void Cmd_CloneModel(QFitItem * item);
165  virtual void Cmd_ClearAssigment(QFitItem* item);
166  virtual void Cmd_ClearAssigments(QFitItem* item);
167  virtual void Cmd_AssignModelToAllData(QFitItem* item);
168  virtual void Cmd_AssignModelToData(QFitItem* item, int id);
169  virtual void Cmd_RemoveRangeCondition(QFitItem* item);
170  virtual void Cmd_RemoveRangeConditions(QFitItem* item);
171  virtual void Cmd_AddRangeCondition(QFitItem* item, int id);
172  virtual void Cmd_DeleteAction(QFitItem* item);
173  virtual void Cmd_DeleteActions(QFitItem* item);
174  virtual void Cmd_MoveAction(QFitItem* item, int dir);
175  virtual void Cmd_ExecuteAction(QFitItem* item);
176  virtual void Cmd_ExecuteActions(QFitItem* item, bool expert);
177  virtual void Cmd_DeleteOutputActions(QFitItem* item);
178  virtual void Cmd_AddNewAction(QFitItem* item, int id);
179  virtual void Cmd_DeleteDependency(QFitItem* item);
180  virtual void Cmd_DeleteDependencies(QFitItem* item);
181  virtual void Cmd_AddDependency(QFitItem* item);
182  virtual void Cmd_MemorizePars(QFitItem* item);
183  virtual void Cmd_RememberPars(QFitItem* item);
184  virtual void Cmd_DeletePars(QFitItem* item);
185  virtual void Cmd_AddNewPar(QFitItem* item);
186  virtual void Cmd_MemorizePar(QFitItem* item);
187  virtual void Cmd_RememberPar(QFitItem* item);
188  virtual void Cmd_DeletePar(QFitItem* item);
189  virtual void Cmd_DeleteMinuitResult(QFitItem* item);
190  virtual void Cmd_UpdateAllSlots(QFitItem* item);
191  virtual void UpdateActivePage();
192  virtual void UpdateSimplePage();
193  virtual void UpdateWizardPage();
194  virtual void UpdateExtendedPage();
195  virtual void RemovePrimitives();
196  virtual TGo4Fitter* CreateFitterFor(TGo4ViewPanel* panel, TPad* pad, const char* name);
197  virtual void CreateDataFor(TGo4ViewPanel* panel, TPad* pad, TGo4Fitter* fitter);
198  virtual bool FillPopupForItem(QFitItem* item, QMenu* menu, QSignalMapper* map);
199  virtual bool FillPopupForSlot(TGo4FitSlot* slot, QMenu* menu, QSignalMapper* map);
200  virtual void ExecutePopupForSlot(QFitItem* item, TGo4FitSlot* slot, int id);
201  virtual QFitItem* GetFitterItem();
202  virtual QFitItem* FindItem(TObject* obj, int ObjectType, QFitItem* parent);
203  virtual bool ShowItem(QFitItem* item, bool force);
204  virtual bool ShowItemAsText(QFitItem* item, bool force);
205  virtual bool ShowItemAsGraph(QFitItem* item, bool force);
206  virtual void RemoveItemWidget();
207  virtual void UpdateItem(QFitItem* item, bool trace);
208  virtual void SetItemText(QFitItem* item, bool trace);
209  virtual void UpdateItemsOfType(int typ, QFitItem* parent);
210  virtual void FitItemDeleted(QFitItem* item);
211  virtual void FillModelTypesList(QMenu* menu, QSignalMapper* map, int id, bool extend);
212  virtual void FillDataTypesList(QMenu* menu, QSignalMapper* map, int id);
213  virtual void FillParsList(QFitItem* item);
214  virtual void FillSlotsList(QFitItem* parent, const TObjArray* lst, TObject* owner);
215  virtual void FillDependencyList(QFitItem* parent);
216  virtual void PaintFitter(TGo4Fitter* fitter, QFitItem* item, bool update);
217  virtual bool PaintModel(TGo4FitModel* model, TPad* pad, QFitItem* item);
218  virtual bool PaintModelsFor(TGo4Fitter* fitter, TGo4FitData* data, QFitItem* item, bool update);
219  virtual bool PaintRange(TGo4FitComponent* comp, int nrange, TPad* pad, QFitItem* item);
220  virtual TGo4FitPeakFinder* GetPeakFinder(bool autocreate);
221  virtual TGo4FitData* Wiz_SelectedData();
222  virtual TGo4FitModel* Wiz_SelectedModel();
223  virtual TGo4FitModel* Wiz_CreateNewModel(int id);
224  virtual TGo4FitData* Wiz_CreateNewData(int id);
225  virtual void Wiz_RebuildDataList();
226  virtual bool Wiz_RemoveData();
227  virtual void Wiz_UseSelectedRange();
228  virtual void Wiz_TakeCurrentRange();
229  virtual void Wiz_GetModelInfo(TGo4FitModel* model, QString* info);
230  virtual QString Wiz_GetSlotSourceInfo(TGo4FitSlot* slot);
231  virtual void ArrowChanged(TGo4FitGuiArrow* arr);
232  virtual void DeleteModelWithPrimit(TGo4FitGuiArrow* arr);
233  virtual int GetPadIndexForSlot(TGo4FitSlot* slot);
234  virtual TPad* FindPadForSlot(TGo4FitSlot* slot);
235  virtual TPad* FindPadWhereData(TGo4FitData* data);
236  virtual TPad* FindPadWhereModel(TGo4FitModel* model);
237  virtual TPad* FindPadWhereComp(TGo4FitComponent* comp);
238  virtual TGo4FitData* CreateData(int id, const char* name);
239  virtual TGo4FitModel* CreateModel(int id, const char* namebase, TGo4Fitter* fitter, TGo4FitData* data);
240  virtual void LocateModel(TGo4FitModel* model, TGo4FitData* data, bool usepad);
241  virtual int DefineModelWidgetType(TObject* obj);
242  virtual bool UpdateObjectReferenceInSlot(TGo4FitSlot* slot, bool createlink);
243  virtual bool UpdateObjectReferenceInSlots();
244  virtual void ClearObjectReferenceInSlots();
245  virtual void RemoveDrawObjects();
246  virtual void CloseDrawPanel();
247  virtual void UpdateStatusBar(const char* info);
248  virtual void UpdateItemMenu();
249  virtual void UpdatePFAmplLbl();
250  virtual void UpdatePFRelNoiseLbl();
251  virtual void UpdateWizDataList();
252  virtual void UpdateWizDataBtns();
253  virtual void UpdateWizModelsList(bool changestack);
254  virtual void UpdateWizModelsBtns();
255  virtual void UpdateWizStackWidget();
256  virtual void UpdateWizPaint(int mode);
257  virtual void FillParsTable( QTableWidget* table, TGo4Fitter * fitter, TGo4FitModel * model, bool LinesView, TObjArray
258  * TableList );
259  virtual void FillNamedWidget(QFitNamedWidget* w);
260  virtual void ChangeObjectName(QFitNamedWidget* w, const char* newname);
261  virtual void ChangeObjectTitle(QFitNamedWidget* w, const char* newtitle);
262  virtual void ChangeModelPar(QFitModelWidget* w, int npar, int value);
263 
264 
265 public slots:
266  virtual void panelSlot(TGo4ViewPanel*, TPad*, int);
267  virtual void FitList_customContextMenuRequested(const QPoint &);
268  virtual void FitList_currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*);
269  virtual void AboutToShowViewMenu();
270  virtual void ChangeViewType(int id);
271  virtual void ShowPanelPage(int id);
272  virtual void AboutToShowSettMenu();
273  virtual void ChangeSettings( int id );
274  virtual void AboutToShowFitterMenu();
275  virtual void FitterMenuItemSelected( int id );
276  virtual void AboutToShowItemMenu();
277  virtual void ItemMenuItemSelected( int id );
278  virtual void PF_MinWidthEdt_textChanged( const QString & str );
279  virtual void PF_MaxWidthEdt_textChanged( const QString & str );
280  virtual void PF_WidthEdit_textChanged( const QString & str );
281  virtual void PF_AmplSlider_valueChanged( int zn );
282  virtual void PF_AmplSlider_sliderReleased();
283  virtual void PF_RelNoiseSlider_valueChanged( int zn );
284  virtual void PF_RelNoiseSlider_sliderReleased();
285  virtual void PF_MinNoiseEdit_textChanged( const QString & str );
286  virtual void PF_SumUpSpin_valueChanged( int num );
287  virtual void Wiz_DataListSelect(QListWidgetItem*);
288  virtual void Wiz_ModelListSelect(QListWidgetItem*);
289  virtual void Wiz_AddDataBtn_clicked();
290  virtual void Wiz_DelDataBtn_clicked();
291  virtual void Wiz_AddModelBtn_clicked();
292  virtual void Wiz_DelModelBtn_clicked();
293  virtual void Wiz_CloneModelBtn_clicked();
294  virtual void Wiz_ShowAllMod_toggled( bool zn );
295  virtual void Wiz_FitFuncCmb_activated( int typ );
296  virtual void Wiz_FitNameEdt_textChanged( const QString & name );
297  virtual void Wiz_ParTable_valueChanged( int nrow, int ncol );
298  virtual void Wiz_DataList_doubleClicked(QListWidgetItem*);
299  virtual void Wiz_ModelList_doubleClicked(QListWidgetItem*);
300  virtual void Wiz_ModelList_itemChanged(QListWidgetItem*);
301  virtual void Wiz_RebuildDataBtn_clicked();
302  virtual void Wiz_DataBufChk_toggled( bool zn );
303  virtual void Wiz_UseAmplEstimChk_toggled( bool chk );
304  virtual void Wiz_MigradIterSpin_valueChanged( int num );
305  virtual void Wiz_DataSlotsTable_contextMenuRequested(const QPoint & pnt );
306  virtual void Wiz_DataUseRangeBtn_clicked();
307  virtual void Wiz_DataClearRangesBtn_clicked();
308  virtual void Wiz_DrawDataBtn_clicked();
309  virtual void Wiz_ModelBufChk_toggled( bool zn );
310  virtual void Wiz_PFSetupBtn_clicked();
311  virtual void Wiz_PFUsePolynChk_toggled( bool zn );
312  virtual void Wiz_PFPolynSpin_valueChanged( int zn );
313  virtual void Wiz_MinSetupBtn_clicked();
314  virtual void MainAttachBtn_clicked();
315  virtual void MainFitBtn_clicked();
316  virtual void MainDrawBtn_clicked();
317  virtual void MainFindBtn_clicked();
318  virtual void MainParsBtn_clicked();
319  virtual void FillParsWidget();
320  virtual void LineParsChk_toggled( bool );
321  virtual void ParsTable_valueChanged( int nrow, int ncol );
322  virtual void ParsTableChanged( QTableWidget * table, int nrow, int ncol,
323  bool LinesView, TObjArray * TableList,
324  bool updatepaint );
325  virtual void Smp_PolynomBtn_clicked();
326  virtual void Smp_GaussianBtn_clicked();
327  virtual void Smp_LorenzBtn_clicked();
328  virtual void Smp_ExponentBtn_clicked();
329  virtual void Smp_ClearBtn_clicked();
330  virtual void FindersTab_currentChanged( int);
331  virtual void Wiz_BackgroundChk_toggled( bool chk );
332  virtual void PF_MinWidthEdt_returnPressed();
333  virtual void PF_MaxWidthEdt_returnPressed();
334  virtual void PF_WidthEdit_returnPressed();
335  virtual void PF_MinNoiseEdit_returnPressed();
336 
337 public:
339 
340 protected:
341 
342  QMenuBar* MenuBar;
343  QMenu* FitterMenu;
344  QSignalMapper* FitterMap;
345  QMenu* ViewMenu;
346  QSignalMapper* ViewMap;
347  QMenu* SettMenu;
348  QSignalMapper* SettMap;
349  QMenu* ItemMenu;
350  QSignalMapper* ItemMap;
351 
352 
355  TObjArray* fxWizPars;
356  TObjArray* fxWizSlots;
357  TObjArray* fxParsTableList;
359  TPad* fxActivePad;
379  QString fxWizDataName;
380  QString fxWizModelName;
385 
386  virtual void focusInEvent( QFocusEvent * event );
387  virtual void changeEvent ( QEvent *event );
388  //virtual void windowActivationChange( bool OldActive );
389 
390 
391 
392 };
393 
394 #endif // TGO4FITPANEL_H
395 
396 
397 
398 
399 
virtual bool ShowItem(QFitItem *item, bool force)
virtual void MainFindBtn_clicked()
virtual void Cmd_RememberPar(QFitItem *item)
virtual TGo4FitData * Wiz_SelectedData()
virtual void MainAttachBtn_clicked()
virtual void Cmd_AddNewData(QFitItem *item, int id)
virtual void ArrowChanged(TGo4FitGuiArrow *arr)
virtual void UpdateWizModelsList(bool changestack)
virtual void Button_SimpleClear()
virtual void Cmd_AddDependency(QFitItem *item)
virtual void PF_MinWidthEdt_returnPressed()
virtual void UpdatePFAmplLbl()
bool fbDrawBackground
Definition: TGo4FitPanel.h:371
bool fbSaveWithReferences
Definition: TGo4FitPanel.h:377
virtual void Smp_PolynomBtn_clicked()
virtual TPad * FindPadForSlot(TGo4FitSlot *slot)
virtual void Cmd_DrawData(QFitItem *item)
virtual void Cmd_DeleteAllData(QFitItem *item)
TGo4FitGuiArrow * fxOther
Definition: TGo4FitPanel.h:98
virtual void Cmd_AddRangeCondition(QFitItem *item, int id)
QMenu * SettMenu
Definition: TGo4FitPanel.h:347
virtual void Cmd_DeleteDependencies(QFitItem *item)
virtual bool UpdateObjectReferenceInSlot(TGo4FitSlot *slot, bool createlink)
virtual bool FillPopupForItem(QFitItem *item, QMenu *menu, QSignalMapper *map)
virtual TGo4Fitter * CloneFitter()
virtual void Cmd_MemorizePar(QFitItem *item)
QSignalMapper * ItemMap
Definition: TGo4FitPanel.h:350
virtual TPad * FindPadWhereModel(TGo4FitModel *model)
virtual void Fitter_UpdateReferences()
virtual void Button_WorkWithPanel()
virtual void UpdateWizardPage()
virtual void Wiz_RebuildDataBtn_clicked()
virtual void Wiz_ModelBufChk_toggled(bool zn)
virtual void RemoveFitterLink()
virtual void RemoveItemWidget()
bool fbUseSamePanelForDraw
Definition: TGo4FitPanel.h:372
virtual void UpdatePFRelNoiseLbl()
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
virtual void PF_WidthEdit_returnPressed()
virtual void changeEvent(QEvent *event)
virtual void WorkWithFitterInSlot(TGo4Slot *slot)
QFitItem * GetItem()
Definition: TGo4FitPanel.h:80
virtual bool FillPopupForSlot(TGo4FitSlot *slot, QMenu *menu, QSignalMapper *map)
virtual void SetItemText(QFitItem *item, bool trace)
virtual void ChangeObjectName(QFitNamedWidget *w, const char *newname)
virtual void Cmd_DeleteOutputActions(QFitItem *item)
virtual void Cmd_DeleteDependency(QFitItem *item)
virtual void UpdateItemsOfType(int typ, QFitItem *parent)
virtual void Cmd_DeleteActions(QFitItem *item)
virtual void Smp_ClearBtn_clicked()
virtual void Fitter_New()
virtual void Cmd_DeleteModels(QFitItem *item)
virtual void Wiz_DataListSelect(QListWidgetItem *)
bool fbNeedConfirmation
Definition: TGo4FitPanel.h:364
virtual void UpdateWizPaint(int mode)
virtual void Button_PeakFinder()
bool fbDrawComponents
Definition: TGo4FitPanel.h:370
virtual void FillSlotsList(QFitItem *parent, const TObjArray *lst, TObject *owner)
bool fbDrawInfoOnPad
Definition: TGo4FitPanel.h:373
virtual TPad * ActivePad()
QFitItem * fxCurrentItem
Definition: TGo4FitPanel.h:362
virtual void UpdateWizModelsBtns()
virtual void UpdateWizDataBtns()
virtual void ClearObjectReferenceInSlots()
virtual void Wiz_DataList_doubleClicked(QListWidgetItem *)
virtual void Fitter_SaveToBrowser()
void SetForRange(TGo4FitComponent *Comp, Int_t num, Double_t rangey, Double_t shiftx)
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual TGo4Fitter * GetFitter()
virtual void Wiz_ModelListSelect(QListWidgetItem *)
virtual void Delete(Option_t *option="")
virtual void CreateDataFor(TGo4ViewPanel *panel, TPad *pad, TGo4Fitter *fitter)
QFitItem * fxItem
Definition: TGo4FitPanel.h:104
void SetForPosition(TGo4FitModel *model, TGo4FitGuiArrow *forwidth, Double_t iLineAmpl)
QSignalMapper * ViewMap
Definition: TGo4FitPanel.h:346
virtual void Wiz_AddModelBtn_clicked()
virtual void Wiz_ShowAllMod_toggled(bool zn)
virtual void Smp_GaussianBtn_clicked()
virtual void Cmd_DeletePar(QFitItem *item)
virtual QString Wiz_GetSlotSourceInfo(TGo4FitSlot *slot)
virtual void Wiz_TakeCurrentRange()
Double_t fdRangeY
Definition: TGo4FitPanel.h:102
virtual void FitterMenuItemSelected(int id)
virtual void Cmd_DeleteData(QFitItem *item)
virtual void LocateModel(TGo4FitModel *model, TGo4FitData *data, bool usepad)
TObjArray * fxWizSlots
Definition: TGo4FitPanel.h:356
QSignalMapper * SettMap
Definition: TGo4FitPanel.h:348
virtual void Cmd_AddNewAction(QFitItem *item, int id)
TObjArray * fxWizPars
Definition: TGo4FitPanel.h:355
virtual void Fitter_PrintParameters()
virtual void Wiz_GetModelInfo(TGo4FitModel *model, QString *info)
virtual void focusInEvent(QFocusEvent *event)
virtual void UpdateItemMenu()
virtual ~TGo4FitPanel()
virtual void PF_MinNoiseEdit_returnPressed()
virtual void Wiz_DataSlotsTable_contextMenuRequested(const QPoint &pnt)
virtual void PaintFitter(TGo4Fitter *fitter, QFitItem *item, bool update)
virtual void Cmd_DeletePars(QFitItem *item)
virtual void ChangeViewType(int id)
virtual void Cmd_UpdateAllSlots(QFitItem *item)
virtual void Cmd_CreateFitter()
virtual bool UpdateObjectReferenceInSlots()
QString fxWizDataName
Definition: TGo4FitPanel.h:379
virtual void Button_SimpleFit(int nmodel)
virtual void AboutToShowViewMenu()
bool fbParsWidgetShown
Definition: TGo4FitPanel.h:368
TGo4FitComponent * fxComp
Definition: TGo4FitPanel.h:100
void SetForWidth(TGo4FitModel *model, TGo4FitGuiArrow *forposition)
virtual void UpdateExtendedPage()
TObjArray * fxParsTableList
Definition: TGo4FitPanel.h:357
virtual void ChangeModelPar(QFitModelWidget *w, int npar, int value)
virtual void Cmd_ClearFitter()
virtual bool ShowItemAsText(QFitItem *item, bool force)
virtual void FillNamedWidget(QFitNamedWidget *w)
virtual TGo4Fitter * CreateFitterFor(TGo4ViewPanel *panel, TPad *pad, const char *name)
virtual TGo4FitData * CreateData(int id, const char *name)
virtual void MainDrawBtn_clicked()
virtual void Cmd_DeleteAction(QFitItem *item)
virtual void Fitter_RollbackParameters()
virtual void Cmd_MoveAction(QFitItem *item, int dir)
QWidget * fxCurrentItemWidget
Definition: TGo4FitPanel.h:363
virtual void Cmd_RemoveModel(TGo4FitModel *model)
QMenu * ItemMenu
Definition: TGo4FitPanel.h:349
virtual void PF_MinWidthEdt_textChanged(const QString &str)
virtual void Smp_LorenzBtn_clicked()
virtual void Cmd_ExecuteActions(QFitItem *item, bool expert)
virtual bool Wiz_RemoveData()
virtual bool ShowItemAsGraph(QFitItem *item, bool force)
Double_t fdLineAmpl
Definition: TGo4FitPanel.h:99
virtual void Cmd_RemoveRangeCondition(QFitItem *item)
virtual void UpdateWizDataList()
virtual bool PaintRange(TGo4FitComponent *comp, int nrange, TPad *pad, QFitItem *item)
virtual void PF_MaxWidthEdt_returnPressed()
virtual int GetPadIndexForSlot(TGo4FitSlot *slot)
virtual void Button_PerformFit()
TGo4FitComponent * GetComp()
Definition: TGo4FitPanel.h:86
virtual void Wiz_DelDataBtn_clicked()
virtual TPad * FindPadWhereData(TGo4FitData *data)
virtual bool PaintModel(TGo4FitModel *model, TPad *pad, QFitItem *item)
virtual void Button_FitterDraw(TGo4FitData *selecteddata)
virtual void Wiz_FitNameEdt_textChanged(const QString &name)
virtual void DropOnPanel(QDropEvent *event, const char *itemname, TClass *cl, int kind)
bool fbFillingWidget
Definition: TGo4FitPanel.h:353
virtual void Cmd_ItemPrint(QFitItem *item)
TGo4FitModel * fxModel
Definition: TGo4FitPanel.h:97
virtual void PF_WidthEdit_textChanged(const QString &str)
virtual void Wiz_ParTable_valueChanged(int nrow, int ncol)
virtual void Cmd_DeleteMinuitResult(QFitItem *item)
TPad * fxActivePad
Definition: TGo4FitPanel.h:359
virtual void Fitter_UseWorkspace()
void SetItem(QFitItem *item, TGo4FitPanel *panel)
virtual void Wiz_ModelList_itemChanged(QListWidgetItem *)
Bool_t IsAssignTo(TObject *obj)
virtual void DeleteModelWithPrimit(TGo4FitGuiArrow *arr)
virtual TGo4ViewPanel * ActivePanel()
virtual void Wiz_PFSetupBtn_clicked()
virtual TGo4FitModel * Wiz_SelectedModel()
virtual void Wiz_DataBufChk_toggled(bool zn)
virtual void FillDataTypesList(QMenu *menu, QSignalMapper *map, int id)
virtual void PF_SumUpSpin_valueChanged(int num)
virtual void PF_RelNoiseSlider_valueChanged(int zn)
virtual void Fitter_NewForActivePad(bool overwrite)
QSignalMapper * FitterMap
Definition: TGo4FitPanel.h:344
TGo4FitModel * GetModel()
Definition: TGo4FitPanel.h:85
virtual void PF_MaxWidthEdt_textChanged(const QString &str)
virtual void Wiz_AddDataBtn_clicked()
virtual void SetFitter(TGo4Fitter *)
virtual void Cmd_ClearAssigments(QFitItem *item)
virtual void Cmd_SaveFitter(bool ask)
virtual void Cmd_ExecuteAction(QFitItem *item)
virtual TGo4FitData * Wiz_CreateNewData(int id)
virtual void Cmd_RememberPars(QFitItem *item)
virtual QFitItem * FindItem(TObject *obj, int ObjectType, QFitItem *parent)
virtual void UpdateItem(QFitItem *item, bool trace)
virtual void AboutToShowItemMenu()
virtual TPad * FindPadWhereComp(TGo4FitComponent *comp)
virtual void Cmd_DeleteAssosiatedModels(QFitItem *item)
virtual void PF_RelNoiseSlider_sliderReleased()
virtual void PF_AmplSlider_sliderReleased()
virtual void ChangeObjectTitle(QFitNamedWidget *w, const char *newtitle)
virtual void linkedObjectRemoved(const char *linkname)
virtual void MainFitBtn_clicked()
virtual void FillModelTypesList(QMenu *menu, QSignalMapper *map, int id, bool extend)
virtual TGo4FitModel * Wiz_CreateNewModel(int id)
TGo4ViewPanel * fxActivePanel
Definition: TGo4FitPanel.h:358
virtual void Wiz_BackgroundChk_toggled(bool chk)
QMenu * FitterMenu
Definition: TGo4FitPanel.h:343
virtual void Cmd_MemorizePars(QFitItem *item)
virtual void CloseDrawPanel()
bool fbUseAmplEstim
Definition: TGo4FitPanel.h:383
virtual void PF_MinNoiseEdit_textChanged(const QString &str)
virtual void Wiz_UseAmplEstimChk_toggled(bool chk)
virtual void LineParsChk_toggled(bool)
virtual void Wiz_DataUseRangeBtn_clicked()
virtual void FillParsWidget()
virtual void Wiz_DrawDataBtn_clicked()
virtual void MainParsBtn_clicked()
virtual void ExecutePopupForSlot(QFitItem *item, TGo4FitSlot *slot, int id)
virtual bool PaintModelsFor(TGo4Fitter *fitter, TGo4FitData *data, QFitItem *item, bool update)
virtual void Wiz_MigradIterSpin_valueChanged(int num)
virtual void ItemMenuItemSelected(int id)
virtual void AboutToShowSettMenu()
virtual void Cmd_AddNewPar(QFitItem *item)
virtual void panelSlot(TGo4ViewPanel *, TPad *, int)
virtual ~TGo4FitGuiArrow()
virtual void UpdateWizStackWidget()
virtual void FitList_currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)
virtual void Wiz_PFPolynSpin_valueChanged(int zn)
virtual void Wiz_UseSelectedRange()
virtual void Wiz_DelModelBtn_clicked()
virtual void Cmd_CloneModel(QFitItem *item)
virtual void UpdateActivePage()
virtual void Wiz_FitFuncCmb_activated(int typ)
virtual void Cmd_DeleteModel(QFitItem *item)
TGo4FitPanel * fxPanel
Definition: TGo4FitPanel.h:105
TGo4FitPanel(QWidget *parent=0, const char *name=0)
QFitItem * CurrFitItem
Definition: TGo4FitPanel.h:338
virtual void Wiz_PFUsePolynChk_toggled(bool zn)
virtual TGo4FitPeakFinder * GetPeakFinder(bool autocreate)
virtual void UpdateSimplePage()
virtual void Fitter_Delete()
virtual void FillDependencyList(QFitItem *parent)
virtual void FitItemDeleted(QFitItem *item)
virtual void ParsTable_valueChanged(int nrow, int ncol)
virtual void ParsTableChanged(QTableWidget *table, int nrow, int ncol, bool LinesView, TObjArray *TableList, bool updatepaint)
virtual void RemovePrimitives()
virtual TGo4FitModel * CreateModel(int id, const char *namebase, TGo4Fitter *fitter, TGo4FitData *data)
virtual void CreateFitSlotLink(TGo4FitSlot *slot, const char *itemname)
virtual void PF_AmplSlider_valueChanged(int zn)
virtual bool WorkingWithPanel()
virtual void Wiz_MinSetupBtn_clicked()
virtual void RemoveDrawObjects()
virtual void FillParsTable(QTableWidget *table, TGo4Fitter *fitter, TGo4FitModel *model, bool LinesView, TObjArray *TableList)
virtual QFitItem * GetFitterItem()
virtual bool WorkingWithOnlyPad()
virtual void Cmd_ClearAssigment(QFitItem *item)
virtual void FindersTab_currentChanged(int)
virtual void Wiz_RebuildDataList()
virtual void AboutToShowFitterMenu()
virtual int DefineModelWidgetType(TObject *obj)
QMenu * ViewMenu
Definition: TGo4FitPanel.h:345
bool fbShowPrimitives
Definition: TGo4FitPanel.h:365
virtual void Smp_ExponentBtn_clicked()
bool fbRecalculateGaussWidth
Definition: TGo4FitPanel.h:375
Double_t fdShiftX
Definition: TGo4FitPanel.h:103
QMenuBar * MenuBar
Definition: TGo4FitPanel.h:342
virtual void FillParsList(QFitItem *item)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void UpdateStatusBar(const char *info)
virtual void Cmd_CreateAppropriateFitter()
virtual void Cmd_AddNewModel(QFitItem *item, int id)
virtual void FitList_customContextMenuRequested(const QPoint &)
virtual void Wiz_DataClearRangesBtn_clicked()
virtual void linkedRemoved(TGo4Slot *slot, TObject *obj)
bool fbDrawPanelCreation
Definition: TGo4FitPanel.h:361
virtual void WorkWithFitter(const char *itemname, TGo4ViewPanel *panel, TPad *pad)
QString fxWizModelName
Definition: TGo4FitPanel.h:380
virtual void ChangeSettings(int id)
virtual void ShowPanelPage(int id)
virtual void Cmd_DeleteFitter()
virtual void Wiz_ModelList_doubleClicked(QListWidgetItem *)
virtual void Wiz_CloneModelBtn_clicked()
bool fbWizShowAllModels
Definition: TGo4FitPanel.h:381
virtual void Cmd_AssignModelToData(QFitItem *item, int id)
TGo4ViewPanel * fxDrawNewPanel
Definition: TGo4FitPanel.h:360
bool fbUseCurrentRange
Definition: TGo4FitPanel.h:378
virtual void Cmd_RemoveRangeConditions(QFitItem *item)
virtual void Cmd_AssignModelToAllData(QFitItem *item)