00001 // $Id: TGo4MarkerSettings.cpp 1134 2014-01-22 14:53:40Z 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 "TGo4MarkerSettings.h" 00015 00016 TGo4MarkerSettings::TGo4MarkerSettings( QWidget* parent ) 00017 : QDialog( parent ) 00018 { 00019 setObjectName("Go4MarkerSettings"); 00020 setupUi(this); 00021 // regions: 00022 DrawLabelButton->setChecked(TGo4Condition::fgbLABELDRAW); 00023 DrawIntButton->setChecked(TGo4Condition::fgbINTDRAW); 00024 DrawLimButton->setChecked(TGo4Condition::fgbLIMITSDRAW); 00025 DrawCountsButton->setChecked(TGo4Condition::fgbCMAXDRAW); 00026 DrawYrmsButton->setChecked(TGo4Condition::fgbYRMSDRAW); 00027 DrawXrmsButton->setChecked(TGo4Condition::fgbXRMSDRAW); 00028 DrawXmaxButton->setChecked(TGo4Condition::fgbXMAXDRAW); 00029 DrawYmaxButton->setChecked(TGo4Condition::fgbYMAXDRAW); 00030 DrawXmeanButton->setChecked(TGo4Condition::fgbXMEANDRAW); 00031 DrawYmeanButton->setChecked(TGo4Condition::fgbYMEANDRAW); 00032 00033 WLabelFormatEdit->setText(TGo4Condition::fgxNUMFORMAT.Data()); 00034 00035 // point markers: 00036 DrawPLabelButton->setChecked(TGo4Marker::fgbHASLABEL); 00037 DrawPConnectorButton->setChecked(TGo4Marker::fgbHASCONNECTOR); 00038 DrawPXButton->setChecked(TGo4Marker::fgbXDRAW); 00039 DrawPYButton->setChecked(TGo4Marker::fgbYDRAW); 00040 DrawPXbinButton->setChecked(TGo4Marker::fgbXBINDRAW); 00041 DrawPYbinButton->setChecked(TGo4Marker::fgbYBINDRAW); 00042 DrawPCountsButton->setChecked(TGo4Marker::fgbCONTDRAW); 00043 00044 PLabelFormatEdit->setText(TGo4Marker::fgxNUMFORMAT.Data()); 00045 00046 00047 00048 } 00049 00050 00051 void TGo4MarkerSettings::setFlags() 00052 { 00053 TGo4Condition::fgbLABELDRAW=DrawLabelButton->isChecked(); 00054 TGo4Condition::fgbINTDRAW=DrawIntButton->isChecked(); 00055 TGo4Condition::fgbLIMITSDRAW=DrawLimButton->isChecked(); 00056 TGo4Condition::fgbCMAXDRAW=DrawCountsButton->isChecked(); 00057 TGo4Condition::fgbYRMSDRAW=DrawYrmsButton->isChecked(); 00058 TGo4Condition::fgbXRMSDRAW=DrawXrmsButton->isChecked(); 00059 TGo4Condition::fgbXMAXDRAW=DrawXmaxButton->isChecked(); 00060 TGo4Condition::fgbYMAXDRAW=DrawYmaxButton->isChecked(); 00061 TGo4Condition::fgbXMEANDRAW=DrawXmeanButton->isChecked(); 00062 TGo4Condition::fgbYMEANDRAW=DrawYmeanButton->isChecked(); 00063 00064 TGo4Condition::fgxNUMFORMAT=(const char*) (WLabelFormatEdit->text().toLatin1()); 00065 00066 TGo4Marker::fgbHASLABEL=DrawPLabelButton->isChecked(); 00067 TGo4Marker::fgbHASCONNECTOR=DrawPConnectorButton->isChecked(); 00068 TGo4Marker::fgbXDRAW=DrawPXButton->isChecked(); 00069 TGo4Marker::fgbYDRAW=DrawPYButton->isChecked(); 00070 TGo4Marker::fgbXBINDRAW=DrawPXbinButton->isChecked(); 00071 TGo4Marker::fgbYBINDRAW=DrawPYbinButton->isChecked(); 00072 TGo4Marker::fgbCONTDRAW=DrawPCountsButton->isChecked(); 00073 00074 TGo4Marker::fgxNUMFORMAT=(const char*) (PLabelFormatEdit->text().toLatin1()); 00075 00076 00077 }