GSI Object Oriented Online Offline (Go4)  GO4-6.1.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MBSViewer.h
Go to the documentation of this file.
1 // $Id: TGo4MBSViewer.h 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 #ifndef TGO4MBSVIEWER_H
15 #define TGO4MBSVIEWER_H
16 
17 #include "QGo4Widget.h"
18 #include "ui_TGo4MBSViewer.h"
19 
20 #include <QElapsedTimer>
21 
22 #include "sys_def.h"
23 #include "sbs_def.h"
24 #include "s_daqst.h"
25 #include "s_setup.h"
26 #include "ml_def.h"
27 #include "s_set_ml.h"
28 #include "s_set_mo.h"
29 
30 class QButtonGroup;
31 class TH1;
32 class QMovie;
33 
34 class TGo4MBSViewer : public QGo4Widget, public Ui::TGo4MBSViewer
35  {
36  Q_OBJECT
37 
38  public:
39  TGo4MBSViewer(QWidget *parent = 0 , const char* name=0);
40  virtual ~TGo4MBSViewer();
41 
42  TH1* TrendHisto( QString & refname ,const QString & name, const QString & title, int value);
43 
44  public slots:
45 
46  virtual void StoreSettings();
47 
48  virtual void TimerStart();
49 
50  virtual void TimerStop();
51 
52  virtual void Display();
53 
54  virtual void Refresh();
55 
56  virtual void NodeEditEnter();
57 
58  virtual void NodeChanged( const QString & txt );
59 
60  virtual void ShowStatus();
61 
62  virtual void StateGroup_clicked( int id);
63 
64  virtual void PrintStatus();
65 
66  virtual void TrendSwitched( bool on );
67 
68  virtual void UpdateTrending();
69 
70  virtual void IncTrending( TH1 * histo, int value, bool forwards );
71 
72  virtual void FrequencyBox_valueChanged( int );
73 
74  virtual void MoreBox_toggled( bool on);
75 
76  virtual void TrendBinsBox_valueChanged( int i);
77 
78  virtual void RefreshButtonClick();
79 
80  virtual void SetNode( const QString & txt );
81 
82  virtual void ResetRunIcon();
83 
84  virtual void StartMovieReset();
85 
86 protected:
87 
93  bool fbRunning;
99  bool fbTrending;
101  QString fxRefTime;
103  QString fxMessage;
107  QString fxNode;
108  QTimer* fxTimer;
111  QMovie* fxRunMovie;
118  TH1* fxEvRatio;
119  QString fxServerLabel;
126  QElapsedTimer fxDeltaClock;
127  QButtonGroup* StateGroup;
128  };
129 
130 #endif
int fiCalcedServDataRate
QString fxHistoEvRatioAccessName
virtual void StateGroup_clicked(int id)
QMovie * fxRunMovie
virtual void TimerStop()
QTimer * fxTimer
QString fxServerLabel
virtual void MoreBox_toggled(bool on)
virtual void StartMovieReset()
virtual void Display()
virtual void PrintStatus()
virtual void TrendSwitched(bool on)
TH1 * TrendHisto(QString &refname, const QString &name, const QString &title, int value)
QString fxHistoAccessName
Definition: TGo4MBSViewer.h:98
QString fxMessage
virtual void StoreSettings()
virtual void FrequencyBox_valueChanged(int)
virtual void TrendBinsBox_valueChanged(int i)
bool fbTrendingForward
Definition: TGo4MBSViewer.h:94
QButtonGroup * StateGroup
virtual void UpdateTrending()
s_set_mo fxSetupMO
Definition: TGo4MBSViewer.h:92
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:95
TGo4MBSViewer(QWidget *parent=0, const char *name=0)
virtual void NodeEditEnter()
s_set_ml fxSetupML
virtual ~TGo4MBSViewer()
virtual void ResetRunIcon()
s_daqst fxDaqStat
TH1 * fxRatekBTrend
Definition: TGo4MBSViewer.h:96
QTimer * fxMovieResetTimer
virtual void NodeChanged(const QString &txt)
virtual void TimerStart()
bool fbSingleRefresh
Definition: TGo4MBSViewer.h:88
virtual void ShowStatus()
QString fxRefTime