00001 // $Id: QFitMatrixTransWidget.cpp 490 2009-11-04 12:30:14Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "QFitMatrixTransWidget.h" 00015 00016 #include "TGo4FitMatrixTrans.h" 00017 00018 QFitMatrixTransWidget::QFitMatrixTransWidget(QWidget *parent, const char* name) 00019 : QFitNamedWidget(parent, name) 00020 { 00021 setupUi(this); 00022 } 00023 00024 TGo4FitMatrixTrans* QFitMatrixTransWidget::GetMatrixTrans() { 00025 return dynamic_cast<TGo4FitMatrixTrans*> (GetObject()); 00026 } 00027 00028 void QFitMatrixTransWidget::FillSpecificData() { 00029 QFitNamedWidget::FillSpecificData(); 00030 TGo4FitMatrixTrans* trans = GetMatrixTrans(); 00031 if (trans) 00032 NumAxisSpin->setValue(trans->GetNumAxis()); 00033 } 00034 00035 void QFitMatrixTransWidget::NumAxisSpin_valueChanged( int num ){ 00036 if (!fbFillWidget && GetMatrixTrans()) { 00037 GetMatrixTrans()->SetNumAxis(num); 00038 UpdateWidgetItem(true); 00039 } 00040 }