GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4MBSViewer.h
Go to the documentation of this file.
1 // $Id$
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 #ifndef TGO4MBSVIEWER_H
15 #define TGO4MBSVIEWER_H
16 
17 #include "QGo4Widget.h"
18 #include "ui_TGo4MBSViewer.h"
19 
20 #include <QElapsedTimer>
21 
22 extern "C" {
23  #include "s_daqst.h"
24  #include "s_setup.h"
25  #include "s_set_ml.h"
26  #include "s_set_mo.h"
27 }
28 
29 class QButtonGroup;
30 class TH1;
31 class QMovie;
32 
33 class TGo4MBSViewer : public QGo4Widget, public Ui::TGo4MBSViewer
34  {
35  Q_OBJECT
36 
37  public:
38  TGo4MBSViewer(QWidget *parent = nullptr, const char *name = nullptr);
39  virtual ~TGo4MBSViewer();
40 
41  TH1 *TrendHisto(QString & refname, const QString & name, const QString & title, int value);
42 
43  public slots:
44 
45  virtual void StoreSettings();
46  virtual void TimerStart();
47  virtual void TimerStop();
48  virtual void Display();
49  virtual void Refresh();
50  virtual void NodeEditEnter();
51  virtual void NodeChanged(const QString &txt);
52  virtual void ShowStatus();
53  virtual void StateGroup_clicked(int id);
54  virtual void PrintState();
55  virtual void TrendSwitched(bool on);
56  virtual void UpdateTrending();
57  virtual void IncTrending(TH1 *histo, int value, bool forwards);
58  virtual void FrequencyBox_valueChanged(int);
59  virtual void MoreBox_toggled(bool on);
60  virtual void TrendBinsBox_valueChanged(int i);
61  virtual void RefreshButtonClick();
62  virtual void SetNode(const QString &txt);
63  virtual void ResetRunIcon();
64  virtual void StartMovieReset();
65 
66  protected:
67 
68  bool fbSingleRefresh{false};
69  int fiLastDataNum{0};
73  bool fbRunning{false};
74  bool fbTrendingForward{false};
76  TH1 *fxRatekBTrend{nullptr};
77  bool fbTrendingInit{false};
79  bool fbTrending{false};
80  bool fbGetStatus{false};
81  bool fbGetSetML{false};
82  QString fxRefTime;
83  bool fbGetSetup{false};
84  QString fxMessage;
85  bool fbWarningState{false};
86  bool fbIsMonitoring{false};
88  QString fxNode;
89  QTimer* fxTimer{nullptr};
92  QMovie* fxRunMovie{nullptr};
93  TH1 *fxRateTrend{nullptr};
94  int fiTrendBins{0};
95  bool fbShowMore{false};
96  QTimer* fxMovieResetTimer{nullptr};
97  int fiEvRatio{0};
99  TH1 *fxEvRatio{nullptr};
100  QString fxServerLabel;
101  bool fbGetSetMO{false};
105  int fiDataDelta{0};
107  QElapsedTimer fxDeltaClock;
108  QButtonGroup* StateGroup{nullptr};
109  };
110 
111 #endif
int fiCalcedServDataRate
QString fxHistoEvRatioAccessName
Definition: TGo4MBSViewer.h:98
virtual void StateGroup_clicked(int id)
QMovie * fxRunMovie
Definition: TGo4MBSViewer.h:92
virtual void TimerStop()
QTimer * fxTimer
Definition: TGo4MBSViewer.h:89
QString fxServerLabel
virtual void MoreBox_toggled(bool on)
virtual void StartMovieReset()
virtual void Display()
virtual void TrendSwitched(bool on)
TH1 * TrendHisto(QString &refname, const QString &name, const QString &title, int value)
QString fxHistoAccessName
Definition: TGo4MBSViewer.h:78
QString fxMessage
Definition: TGo4MBSViewer.h:84
virtual void StoreSettings()
virtual void FrequencyBox_valueChanged(int)
virtual void TrendBinsBox_valueChanged(int i)
bool fbTrendingForward
Definition: TGo4MBSViewer.h:74
QButtonGroup * StateGroup
virtual void UpdateTrending()
s_set_mo fxSetupMO
Definition: TGo4MBSViewer.h:72
s_setup fxSetup
Definition: TGo4MBSViewer.h:90
QString fxNode
Definition: TGo4MBSViewer.h:88
QElapsedTimer fxDeltaClock
virtual void IncTrending(TH1 *histo, int value, bool forwards)
virtual void SetNode(const QString &txt)
virtual void RefreshButtonClick()
virtual void Refresh()
QString fxHistokBAccessName
Definition: TGo4MBSViewer.h:75
virtual void NodeEditEnter()
virtual void PrintState()
s_set_ml fxSetupML
Definition: TGo4MBSViewer.h:91
virtual ~TGo4MBSViewer()
virtual void ResetRunIcon()
s_daqst fxDaqStat
Definition: TGo4MBSViewer.h:87
TH1 * fxRatekBTrend
Definition: TGo4MBSViewer.h:76
QTimer * fxMovieResetTimer
Definition: TGo4MBSViewer.h:96
virtual void NodeChanged(const QString &txt)
virtual void TimerStart()
TGo4MBSViewer(QWidget *parent=nullptr, const char *name=nullptr)
bool fbSingleRefresh
Definition: TGo4MBSViewer.h:68
virtual void ShowStatus()
QString fxRefTime
Definition: TGo4MBSViewer.h:82