// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- /**************************************************************************** ** 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. *****************************************************************************/ TGo4FitModelGauss2 * QFitModelGauss2Widget::GetGauss2() { return dynamic_cast (GetObject()); } void QFitModelGauss2Widget::FillSpecificData() { QFitNamedWidget::FillSpecificData(); if (GetGauss2()) { Axis1Spin->setValue(GetGauss2()->GetNumAxis1()); Axis2Spin->setValue(GetGauss2()->GetNumAxis2()); } } void QFitModelGauss2Widget::Axis1Spin_valueChanged(int num1) { if (!fbFillWidget && GetGauss2()) { GetGauss2()->SetNumAxis1(num1); int num2 = GetGauss2()->GetNumAxis2(); if (num2==num1) { num2++; GetGauss2()->SetNumAxis2(num2); fbFillWidget = kTRUE; Axis2Spin->setValue(num2); fbFillWidget = kFALSE; } } } void QFitModelGauss2Widget::Axis2Spin_valueChanged(int num2) { if (!fbFillWidget && GetGauss2()) { GetGauss2()->SetNumAxis2(num2); int num1 = GetGauss2()->GetNumAxis1(); if (num2==num1) { if (num1==0) num1 = 1; else num1--; GetGauss2()->SetNumAxis1(num1); fbFillWidget = kTRUE; Axis1Spin->setValue(num1); fbFillWidget = kFALSE; } } }