/**************************************************************************** ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename slots use Qt Designer which will ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ TGo4Fitter * QFitterWidget::GetFitter() { return dynamic_cast (GetObject()); } void QFitterWidget::FillSpecificData() { QFitNamedWidget::FillSpecificData(); if (GetFitter()) { int typ = GetFitter()->GetFitFunctionType(); if (typ==TGo4Fitter::ff_user) typ = TGo4Fitter::ff_least_squares; FitFunctionTypeCmb->setCurrentItem(typ); const char strend[3] = { 13, 10 , 0 }; QString info("Associations:"); info+=strend; for (Int_t ndata=0;ndataGetNumData();ndata++) { TGo4FitData* data = GetFitter()->GetData(ndata); info += data->GetName(); info += ":"; for(Int_t nmodel=0;nmodelGetNumModel();nmodel++) { TGo4FitModel* model = GetFitter()->GetModel(nmodel); if (model->IsAssignTo(data->GetName())) { info+=" "; info+=model->GetName(); } } info+=strend; } InfoLbl->setText(info); InfoLbl->adjustSize(); } } void QFitterWidget::FitFunctionTypeCmb_activated( int typ ) { if (!fbFillWidget && GetFitter()) GetFitter()->SetFitFunctionType(typ); }