GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
QFitMatrixTransWidget.cpp
Go to the documentation of this file.
1 // $Id$
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 "QFitMatrixTransWidget.h"
15 
16 #include "TGo4FitMatrixTrans.h"
17 
18 QFitMatrixTransWidget::QFitMatrixTransWidget(QWidget *parent, const char *name)
19  : QFitNamedWidget(parent, name)
20 {
21  setupUi(this);
22  QObject::connect(NumAxisSpin, QOverload<int>::of(&QSpinBox::valueChanged), this, &QFitMatrixTransWidget::NumAxisSpin_valueChanged);
23 }
24 
26 {
27  return dynamic_cast<TGo4FitMatrixTrans*> (GetObject());
28 }
29 
31 {
34  if (trans)
35  NumAxisSpin->setValue(trans->GetNumAxis());
36 }
37 
39 {
40  if (!fbFillWidget && GetMatrixTrans()) {
41  GetMatrixTrans()->SetNumAxis(num);
42  UpdateWidgetItem(true);
43  }
44 }
void SetNumAxis(Int_t NumAxis)
virtual void NumAxisSpin_valueChanged(int)
bool fbFillWidget
Definition: QFitWidget.h:63
QFitMatrixTransWidget(QWidget *parent=nullptr, const char *name=nullptr)
void FillSpecificData() override
virtual TObject * GetObject()
Definition: QFitWidget.cpp:50
virtual TGo4FitMatrixTrans * GetMatrixTrans()
virtual void UpdateWidgetItem(bool trace)
Definition: QFitWidget.cpp:86