GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitLinearTransWidget.cpp
Go to the documentation of this file.
1 // $Id: QFitLinearTransWidget.cpp 3107 2021-03-29 17:47:15Z 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 "QFitLinearTransWidget.h"
15 #include "TGo4FitLinearTrans.h"
16 
17 QFitLinearTransWidget::QFitLinearTransWidget(QWidget *parent, const char* name)
18  : QFitNamedWidget(parent, name)
19 {
20  setupUi(this);
21  QObject::connect(NumAxisSpin, SIGNAL(valueChanged(int)), this, SLOT(NumAxisSpin_valueChanged(int)));
22 }
23 
25 {
26  return dynamic_cast<TGo4FitLinearTrans*> (GetObject());
27 }
28 
30 {
33  if (trans)
34  NumAxisSpin->setValue(trans->GetAxis());
35 }
36 
38 {
39  if (!fbFillWidget && GetLinearTrans())
40  GetLinearTrans()->SetAxis(axis);
41 }
void SetAxis(Int_t iAxis)
QFitLinearTransWidget(QWidget *parent=0, const char *name=0)
bool fbFillWidget
Definition: QFitWidget.h:63
virtual TObject * GetObject()
Definition: QFitWidget.cpp:51
virtual void FillSpecificData()
Int_t GetAxis() const
virtual void NumAxisSpin_valueChanged(int)
virtual TGo4FitLinearTrans * GetLinearTrans()