Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

QFitModelWidget.cpp

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "QFitModelWidget.h"
00017 
00018 #include "qcheckbox.h"
00019 #include "qlabel.h"
00020 #include "qspinbox.h"
00021 
00022 #include "TGo4FitPanel.h"
00023 
00024 QFitModelWidget::QFitModelWidget( QWidget* parent,  const char* name )
00025     : QFitNamedWidget( parent, name )
00026 {
00027     if (name==0) setName( "QFitModelWidget" );
00028     setCaption("QFitModelWidget");
00029 
00030     AmplChk = new QCheckBox( this, "AmplChk" );
00031     AmplChk->setGeometry( QRect( 10, 110, 80, 25 ) );
00032     AmplChk->setText("amplitude");
00033 
00034     textLabel1 = new QLabel( "group", this, "textLabel1" );
00035     textLabel1->setGeometry( QRect( 200, 110, 40, 20 ) );
00036 
00037     BuffersChk = new QCheckBox( this, "BuffersChk" );
00038     BuffersChk->setGeometry( QRect( 100, 110, 90, 25 ) );
00039     BuffersChk->setText("use buffers");
00040 
00041     GroupSpin = new QSpinBox( this, "GroupSpin" );
00042     GroupSpin->setGeometry( QRect( 240, 110, 55, 22 ) );
00043     GroupSpin->setMinValue( -1 );
00044     resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
00045     clearWState( WState_Polished );
00046 
00047     // signals and slots connections
00048     connect( AmplChk, SIGNAL( toggled(bool) ), this, SLOT( AmplChk_toggled(bool) ) );
00049     connect( BuffersChk, SIGNAL( toggled(bool) ), this, SLOT( BuffersChk_toggled(bool) ) );
00050     connect( GroupSpin, SIGNAL( valueChanged(int) ), this, SLOT( GroupSpin_valueChanged(int) ) );
00051 }
00052 
00053 QFitModelWidget::~QFitModelWidget()
00054 {
00055 }
00056 
00057 void QFitModelWidget::AmplChk_toggled(bool chk)
00058 {
00059   if (!fbFillWidget && (fxPanel!=0))
00060     fxPanel->ChangeModelPar(this, 0, chk ? 1 : 0);
00061 }
00062 
00063 void QFitModelWidget::BuffersChk_toggled( bool chk)
00064 {
00065   if (!fbFillWidget && (fxPanel!=0))
00066     fxPanel->ChangeModelPar(this, 1, chk ? 1 : 0);
00067 }
00068 
00069 
00070 void QFitModelWidget::GroupSpin_valueChanged( int indx )
00071 {
00072   if (!fbFillWidget && (fxPanel!=0))
00073     fxPanel->ChangeModelPar(this, 2, indx);
00074 }
00075 
00076 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:14 2008 for Go4-v3.04-1 by  doxygen 1.4.2