GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitModelPolynomWidget.cpp
Go to the documentation of this file.
1 // $Id: QFitModelPolynomWidget.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 "QFitModelPolynomWidget.h"
15 
16 #include "TGo4FitModelPolynom.h"
17 #include "TGo4FitGuiTypes.h"
18 
19 QFitModelPolynomWidget::QFitModelPolynomWidget(QWidget *parent, const char* name)
20  : QFitModelWidget(parent, name)
21 {
22  setupUi(this);
23  QObject::connect(AxisSpin, SIGNAL(valueChanged(int)), this, SLOT(AxisSpin_valueChanged(int)));
24 }
25 
27 {
28  return dynamic_cast<TGo4FitModelPolynom*> (GetObject());
29 }
30 
32 {
34  if(GetPolynom())
35  AxisSpin->setValue(GetPolynom()->GetMaxNumAxis());
36 }
37 
39 {
40  if(!fbFillWidget && GetPolynom())
41  if(GetPolynom()->SetMaxNumAxis(num))
43 }
QFitModelPolynomWidget(QWidget *parent=0, const char *name=0)
bool fbFillWidget
Definition: QFitWidget.h:63
virtual void AxisSpin_valueChanged(int)
virtual TObject * GetObject()
Definition: QFitWidget.cpp:51
virtual TGo4FitModelPolynom * GetPolynom()
virtual void FillSpecificData()
virtual void UpdateItemsOfType(int typ, bool allitems)
Definition: QFitWidget.cpp:101