GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MarkerSettings.cpp
Go to the documentation of this file.
1 // $Id: TGo4MarkerSettings.cpp 3127 2021-03-30 09:23:27Z 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 "TGo4MarkerSettings.h"
15 
16 #include "TGo4Condition.h"
17 #include "TGo4Marker.h"
18 
20  : QDialog( parent )
21 {
22  setObjectName("Go4MarkerSettings");
23  setupUi(this);
24 
25  QObject::connect(buttonOk, SIGNAL(clicked()), this, SLOT(setFlags()));
26 
27  // regions:
28  Bool_t LABELDRAW, LIMITSDRAW, INTDRAW,
29  XMEANDRAW, YMEANDRAW, XRMSDRAW, YRMSDRAW,
30  XMAXDRAW, YMAXDRAW, CMAXDRAW;
31  TString NUMFORMAT;
32  TGo4Condition::GetGlobalStyle(LABELDRAW, LIMITSDRAW, INTDRAW,
33  XMEANDRAW, YMEANDRAW, XRMSDRAW, YRMSDRAW,
34  XMAXDRAW, YMAXDRAW, CMAXDRAW, NUMFORMAT);
35  DrawLabelButton->setChecked(LABELDRAW);
36  DrawLimButton->setChecked(LIMITSDRAW);
37  DrawIntButton->setChecked(INTDRAW);
38  DrawXmeanButton->setChecked(XMEANDRAW);
39  DrawYmeanButton->setChecked(YMEANDRAW);
40  DrawXrmsButton->setChecked(XRMSDRAW);
41  DrawYrmsButton->setChecked(YRMSDRAW);
42  DrawXmaxButton->setChecked(XMAXDRAW);
43  DrawYmaxButton->setChecked(YMAXDRAW);
44  DrawCountsButton->setChecked(CMAXDRAW);
45  WLabelFormatEdit->setText(NUMFORMAT.Data());
46 
47  // point markers:
48  Bool_t HASLABEL, HASCONNECTOR, XDRAW, YDRAW, XBINDRAW, YBINDRAW, CONTDRAW;
49  TGo4Marker::GetGlobalStyle(HASLABEL, HASCONNECTOR, XDRAW, YDRAW,
50  XBINDRAW, YBINDRAW, CONTDRAW, NUMFORMAT);
51 
52  DrawPLabelButton->setChecked(HASLABEL);
53  DrawPConnectorButton->setChecked(HASCONNECTOR);
54  DrawPXButton->setChecked(XDRAW);
55  DrawPYButton->setChecked(YDRAW);
56  DrawPXbinButton->setChecked(XBINDRAW);
57  DrawPYbinButton->setChecked(YBINDRAW);
58  DrawPCountsButton->setChecked(CONTDRAW);
59  PLabelFormatEdit->setText(NUMFORMAT.Data());
60 }
61 
62 
64 {
65  TGo4Condition::SetGlobalStyle(DrawLabelButton->isChecked(),
66  DrawLimButton->isChecked(),
67  DrawIntButton->isChecked(),
68  DrawXmeanButton->isChecked(),
69  DrawYmeanButton->isChecked(),
70  DrawXrmsButton->isChecked(),
71  DrawYrmsButton->isChecked(),
72  DrawXmaxButton->isChecked(),
73  DrawYmaxButton->isChecked(),
74  DrawCountsButton->isChecked(),
75  WLabelFormatEdit->text().toLatin1().constData());
76 
77  TGo4Marker::SetGlobalStyle(DrawPLabelButton->isChecked(),
78  DrawPConnectorButton->isChecked(),
79  DrawPXButton->isChecked(),
80  DrawPYButton->isChecked(),
81  DrawPXbinButton->isChecked(),
82  DrawPYbinButton->isChecked(),
83  DrawPCountsButton->isChecked(),
84  PLabelFormatEdit->text().toLatin1().constData());
85 
86 }
TGo4MarkerSettings(QWidget *parent=0)
static void GetGlobalStyle(Bool_t &LABELDRAW, Bool_t &LIMITSDRAW, Bool_t &INTDRAW, Bool_t &XMEANDRAW, Bool_t &YMEANDRAW, Bool_t &XRMSDRAW, Bool_t &YRMSDRAW, Bool_t &XMAXDRAW, Bool_t &YMAXDRAW, Bool_t &CMAXDRAW, TString &NUMFORMAT)
static void SetGlobalStyle(Bool_t HASLABEL, Bool_t HASCONNECTOR, Bool_t XDRAW, Bool_t YDRAW, Bool_t XBINDRAW, Bool_t YBINDRAW, Bool_t CONTDRAW, const char *NUMFORMAT)
Definition: TGo4Marker.cxx:282
static void SetGlobalStyle(Bool_t LABELDRAW, Bool_t LIMITSDRAW, Bool_t INTDRAW, Bool_t XMEANDRAW, Bool_t YMEANDRAW, Bool_t XRMSDRAW, Bool_t YRMSDRAW, Bool_t XMAXDRAW, Bool_t YMAXDRAW, Bool_t CMAXDRAW, const char *NUMFORMAT)
static void GetGlobalStyle(Bool_t &HASLABEL, Bool_t &HASCONNECTOR, Bool_t &XDRAW, Bool_t &YDRAW, Bool_t &XBINDRAW, Bool_t &YBINDRAW, Bool_t &CONTDRAW, TString &NUMFORMAT)
Definition: TGo4Marker.cxx:296