Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4FitGUI/QFitParWidget.ui.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 /****************************************************************************
00017 ** ui.h extension file, included from the uic-generated form implementation.
00018 **
00019 ** If you wish to add, delete or rename slots use Qt Designer which will
00020 ** update this file, preserving your code. Create an init() slot in place of
00021 ** a constructor, and a destroy() slot in place of a destructor.
00022 *****************************************************************************/
00023 
00024 TGo4FitParameter* QFitParWidget::GetPar() {
00025    return dynamic_cast<TGo4FitParameter*> (GetObject());
00026 }
00027 
00028 void QFitParWidget::FillSpecificData() {
00029    QFitNamedWidget::FillSpecificData();
00030    TGo4FitParameter* fxParameter = GetPar();
00031    if (fxParameter==0) return;
00032 
00033    ValueEdt->setText(QString::number(fxParameter->GetValue()));
00034    ErrorEdt->setText(QString::number(fxParameter->GetError()));
00035    FixedChk->setChecked(fxParameter->GetFixed());
00036 
00037    Double_t min, max;
00038 
00039    bool b = fxParameter->GetRange(min,max);
00040 
00041    RangeChk->setChecked(b);
00042    RangeMinEdt->setEnabled(b);
00043    RangeMaxEdt->setEnabled(b);
00044 
00045    RangeMinEdt->setText(QString::number(min));
00046    RangeMaxEdt->setText(QString::number(max));
00047 
00048    Double_t eps;
00049    b = fxParameter->GetEpsilon(eps);
00050    EpsilonChk->setChecked(b);
00051    EpsilonEdt->setEnabled(b);
00052    EpsilonEdt->setText(QString::number(eps));
00053 }
00054 
00055 void QFitParWidget::ValueEdt_textChanged( const QString & value)
00056 {
00057   if(!fbFillWidget && (GetPar()!=0)) {
00058      bool ok;
00059      double zn = value.toDouble(&ok);
00060      if(ok) {
00061        GetPar()->SetValue(zn);
00062        fxSlots->SetItemText(GetItem(), TRUE);
00063      }
00064   }
00065 }
00066 
00067 void QFitParWidget::ErrorEdt_textChanged( const QString & value)
00068 {
00069   if(!fbFillWidget && (GetPar()!=0)) {
00070      bool ok;
00071      double zn = value.toDouble(&ok);
00072      if(ok) GetPar()->SetError(zn);
00073   }
00074 }
00075 
00076 void QFitParWidget::RangeMinEdt_textChanged( const QString & value)
00077 {
00078   if(!fbFillWidget && (GetPar()!=0)) {
00079      bool ok;
00080      double zn = value.toDouble(&ok);
00081      if(ok) GetPar()->ChangeRangeMin(zn);
00082   }
00083 }
00084 
00085 
00086 void QFitParWidget::RangeMaxEdt_textChanged( const QString & value)
00087 {
00088   if(!fbFillWidget && (GetPar()!=0)) {
00089      bool ok;
00090      double zn = value.toDouble(&ok);
00091      if(ok) GetPar()->ChangeRangeMax(zn);
00092   }
00093 }
00094 
00095 
00096 void QFitParWidget::EpsilonEdt_textChanged( const QString & value)
00097 {
00098   if(!fbFillWidget && (GetPar()!=0)) {
00099      bool ok;
00100      double zn = value.toDouble(&ok);
00101      if(ok) GetPar()->ChangeEpsilon(zn);
00102   }
00103 
00104 }
00105 
00106 
00107 void QFitParWidget::FixedChk_toggled( bool zn)
00108 {
00109   if(!fbFillWidget && (GetPar()!=0))
00110     GetPar()->SetFixed(zn);
00111 }
00112 
00113 
00114 void QFitParWidget::RangeChk_toggled( bool zn)
00115 {
00116    if(!fbFillWidget && (GetPar()!=0)) {
00117       RangeMinEdt->setEnabled(zn);
00118       RangeMaxEdt->setEnabled(zn);
00119       GetPar()->SetRangeUse(zn);
00120    }
00121 }
00122 
00123 void QFitParWidget::EpsilonChk_toggled( bool zn)
00124 {
00125    if(!fbFillWidget && (GetPar()!=0)) {
00126       EpsilonEdt->setEnabled(zn);
00127       GetPar()->SetEpsilonUse(zn);
00128    }
00129 }
00130 
00131 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:58 2005 for Go4-v2.10-5 by doxygen1.2.15