GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MarkerSettings.cpp
Go to the documentation of this file.
1 // $Id: TGo4MarkerSettings.cpp 1134 2014-01-22 14:53:40Z 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 für 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 "TGo4MarkerSettings.h"
15 
17  : QDialog( parent )
18 {
19  setObjectName("Go4MarkerSettings");
20  setupUi(this);
21  // regions:
22  DrawLabelButton->setChecked(TGo4Condition::fgbLABELDRAW);
23  DrawIntButton->setChecked(TGo4Condition::fgbINTDRAW);
24  DrawLimButton->setChecked(TGo4Condition::fgbLIMITSDRAW);
25  DrawCountsButton->setChecked(TGo4Condition::fgbCMAXDRAW);
26  DrawYrmsButton->setChecked(TGo4Condition::fgbYRMSDRAW);
27  DrawXrmsButton->setChecked(TGo4Condition::fgbXRMSDRAW);
28  DrawXmaxButton->setChecked(TGo4Condition::fgbXMAXDRAW);
29  DrawYmaxButton->setChecked(TGo4Condition::fgbYMAXDRAW);
30  DrawXmeanButton->setChecked(TGo4Condition::fgbXMEANDRAW);
31  DrawYmeanButton->setChecked(TGo4Condition::fgbYMEANDRAW);
32 
33  WLabelFormatEdit->setText(TGo4Condition::fgxNUMFORMAT.Data());
34 
35  // point markers:
36  DrawPLabelButton->setChecked(TGo4Marker::fgbHASLABEL);
37  DrawPConnectorButton->setChecked(TGo4Marker::fgbHASCONNECTOR);
38  DrawPXButton->setChecked(TGo4Marker::fgbXDRAW);
39  DrawPYButton->setChecked(TGo4Marker::fgbYDRAW);
40  DrawPXbinButton->setChecked(TGo4Marker::fgbXBINDRAW);
41  DrawPYbinButton->setChecked(TGo4Marker::fgbYBINDRAW);
42  DrawPCountsButton->setChecked(TGo4Marker::fgbCONTDRAW);
43 
44  PLabelFormatEdit->setText(TGo4Marker::fgxNUMFORMAT.Data());
45 
46 
47 
48 }
49 
50 
52 {
53  TGo4Condition::fgbLABELDRAW=DrawLabelButton->isChecked();
54  TGo4Condition::fgbINTDRAW=DrawIntButton->isChecked();
55  TGo4Condition::fgbLIMITSDRAW=DrawLimButton->isChecked();
56  TGo4Condition::fgbCMAXDRAW=DrawCountsButton->isChecked();
57  TGo4Condition::fgbYRMSDRAW=DrawYrmsButton->isChecked();
58  TGo4Condition::fgbXRMSDRAW=DrawXrmsButton->isChecked();
59  TGo4Condition::fgbXMAXDRAW=DrawXmaxButton->isChecked();
60  TGo4Condition::fgbYMAXDRAW=DrawYmaxButton->isChecked();
61  TGo4Condition::fgbXMEANDRAW=DrawXmeanButton->isChecked();
62  TGo4Condition::fgbYMEANDRAW=DrawYmeanButton->isChecked();
63 
64  TGo4Condition::fgxNUMFORMAT=(const char*) (WLabelFormatEdit->text().toLatin1());
65 
66  TGo4Marker::fgbHASLABEL=DrawPLabelButton->isChecked();
67  TGo4Marker::fgbHASCONNECTOR=DrawPConnectorButton->isChecked();
68  TGo4Marker::fgbXDRAW=DrawPXButton->isChecked();
69  TGo4Marker::fgbYDRAW=DrawPYButton->isChecked();
70  TGo4Marker::fgbXBINDRAW=DrawPXbinButton->isChecked();
71  TGo4Marker::fgbYBINDRAW=DrawPYbinButton->isChecked();
72  TGo4Marker::fgbCONTDRAW=DrawPCountsButton->isChecked();
73 
74  TGo4Marker::fgxNUMFORMAT=(const char*) (PLabelFormatEdit->text().toLatin1());
75 
76 
77 }
static Bool_t fgbXRMSDRAW
TGo4MarkerSettings(QWidget *parent=0)
static Bool_t fgbHASCONNECTOR
Definition: TGo4Marker.h:144
static Bool_t fgbYMAXDRAW
static Bool_t fgbLIMITSDRAW
static Bool_t fgbCONTDRAW
Definition: TGo4Marker.h:159
static Bool_t fgbCMAXDRAW
static Bool_t fgbLABELDRAW
static Bool_t fgbXDRAW
Definition: TGo4Marker.h:147
static TString fgxNUMFORMAT
static Bool_t fgbXMEANDRAW
static Bool_t fgbYBINDRAW
Definition: TGo4Marker.h:156
static Bool_t fgbYMEANDRAW
static Bool_t fgbYDRAW
Definition: TGo4Marker.h:150
static Bool_t fgbXMAXDRAW
static Bool_t fgbXBINDRAW
Definition: TGo4Marker.h:153
static TString fgxNUMFORMAT
Definition: TGo4Marker.h:162
static Bool_t fgbHASLABEL
Definition: TGo4Marker.h:141
static Bool_t fgbYRMSDRAW
static Bool_t fgbINTDRAW