00001 // $Id: QFitModelPolynomWidget.cpp 490 2009-11-04 12:30:14Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "QFitModelPolynomWidget.h" 00015 00016 #include "TGo4FitModelPolynom.h" 00017 #include "TGo4FitGuiTypes.h" 00018 00019 QFitModelPolynomWidget::QFitModelPolynomWidget(QWidget *parent, const char* name) 00020 : QFitModelWidget(parent, name) 00021 { 00022 setupUi(this); 00023 } 00024 00025 00026 TGo4FitModelPolynom * QFitModelPolynomWidget::GetPolynom() 00027 { 00028 return dynamic_cast<TGo4FitModelPolynom*> (GetObject()); 00029 } 00030 00031 void QFitModelPolynomWidget::FillSpecificData() 00032 { 00033 QFitNamedWidget::FillSpecificData(); 00034 if(GetPolynom()) 00035 AxisSpin->setValue(GetPolynom()->GetMaxNumAxis()); 00036 } 00037 00038 void QFitModelPolynomWidget::AxisSpin_valueChanged( int num ) 00039 { 00040 if(!fbFillWidget && GetPolynom()) 00041 if(GetPolynom()->SetMaxNumAxis(num)) 00042 UpdateItemsOfType(FitGui::ot_parslist, false); 00043 }