GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitMatrixTransWidget.cpp
Go to the documentation of this file.
1 // $Id: QFitMatrixTransWidget.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 "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, SIGNAL(valueChanged(int)), this, SLOT(NumAxisSpin_valueChanged(int)));
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)
QFitMatrixTransWidget(QWidget *parent=0, const char *name=0)
virtual void NumAxisSpin_valueChanged(int)
bool fbFillWidget
Definition: QFitWidget.h:63
virtual TObject * GetObject()
Definition: QFitWidget.cpp:51
virtual void FillSpecificData()
virtual TGo4FitMatrixTrans * GetMatrixTrans()
virtual void UpdateWidgetItem(bool trace)
Definition: QFitWidget.cpp:89