GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
22extern "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
29class QButtonGroup;
30class TH1;
31class QMovie;
32
33class 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};
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};
95 bool fbShowMore{false};
96 QTimer* fxMovieResetTimer{nullptr};
97 int fiEvRatio{0};
99 TH1 *fxEvRatio{nullptr};
101 bool fbGetSetMO{false};
107 QElapsedTimer fxDeltaClock;
108 QButtonGroup* StateGroup{nullptr};
109 };
110
111#endif
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
s_daqst fxDaqStat
QTimer * fxTimer
QString fxRefTime
virtual void UpdateTrending()
QElapsedTimer fxDeltaClock
s_set_mo fxSetupMO
virtual ~TGo4MBSViewer()
QString fxHistokBAccessName
virtual void MoreBox_toggled(bool on)
QString fxHistoAccessName
QString fxServerLabel
TGo4MBSViewer(QWidget *parent=nullptr, const char *name=nullptr)
virtual void RefreshButtonClick()
virtual void ResetRunIcon()
virtual void TrendSwitched(bool on)
virtual void FrequencyBox_valueChanged(int)
virtual void TrendBinsBox_valueChanged(int i)
virtual void NodeEditEnter()
virtual void NodeChanged(const QString &txt)
virtual void Refresh()
virtual void StoreSettings()
virtual void TimerStart()
virtual void PrintState()
virtual void Display()
virtual void ShowStatus()
TH1 * TrendHisto(QString &refname, const QString &name, const QString &title, int value)
QMovie * fxRunMovie
virtual void StartMovieReset()
QButtonGroup * StateGroup
virtual void SetNode(const QString &txt)
s_set_ml fxSetupML
virtual void TimerStop()
QTimer * fxMovieResetTimer
QString fxHistoEvRatioAccessName
virtual void IncTrending(TH1 *histo, int value, bool forwards)
QString fxMessage
virtual void StateGroup_clicked(int id)