GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitModelGauss1Widget.cpp
Go to the documentation of this file.
1 // $Id: QFitModelGauss1Widget.cpp 3113 2021-03-30 06:27:16Z 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 fuer 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 #include "QFitModelGauss1Widget.h"
15 
16 #include "TGo4FitModelGauss1.h"
17 
18 
19 QFitModelGauss1Widget::QFitModelGauss1Widget(QWidget *parent, const char* name)
20  : QFitModelWidget(parent, name)
21 {
22  setupUi(this);
23  QObject::connect(AxisNumSpin, SIGNAL(valueChanged(int)), this, SLOT(AxisNumSpin_valueChanged(int)));
24 }
25 
27 {
28  return dynamic_cast<TGo4FitModelGauss1*> (GetObject());
29 }
30 
32 {
34  if (GetGauss1())
35  AxisNumSpin->setValue(GetGauss1()->GetNumAxis());
36 }
37 
38 
40 {
41  if(!fbFillWidget && GetGauss1())
42  GetGauss1()->SetNumAxis(num);
43 }
QFitModelGauss1Widget(QWidget *parent=0, const char *name=0)
bool fbFillWidget
Definition: QFitWidget.h:63
virtual void AxisNumSpin_valueChanged(int)
void SetNumAxis(Int_t n)
virtual TObject * GetObject()
Definition: QFitWidget.cpp:51
virtual void FillSpecificData()
virtual TGo4FitModelGauss1 * GetGauss1()