Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TGO4MBSVIEWER_H
00015 #define TGO4MBSVIEWER_H
00016
00017 #include "QGo4Widget.h"
00018 #include "ui_TGo4MBSViewer.h"
00019
00020 #include <QMovie>
00021 #include <QTime>
00022
00023 #include "sys_def.h"
00024 #include "sbs_def.h"
00025 #include "s_daqst.h"
00026 #include "s_setup.h"
00027 #include "ml_def.h"
00028 #include "s_set_ml.h"
00029 #include "s_set_mo.h"
00030
00031
00032 extern "C"
00033 {
00034 INTS4 f_mbs_status(CHARS *,s_daqst *);;
00035 INTS4 f_mbs_setup(CHARS *,s_setup *);;
00036 INTS4 f_mbs_ml_setup(CHARS *,s_set_ml *);;
00037 INTS4 f_mbs_mo_setup(CHARS *,s_set_mo *);;
00038 INTS4 f_ut_seg_show (s_daqst *ps_daqst, s_setup *ps_setup, s_set_ml *ps_set_ml, s_set_mo *ps_set_mo);;
00039 }
00040
00041 class QButtonGroup;
00042 class TH1;
00043
00044 class TGo4MBSViewer : public QGo4Widget, public Ui::TGo4MBSViewer
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 TGo4MBSViewer(QWidget *parent = 0 , const char* name=0);
00050 virtual ~TGo4MBSViewer();
00051
00052 TH1* TrendHisto( QString & refname ,const QString & name, const QString & title, int value);
00053
00054
00055
00056 public slots:
00057
00058
00059 virtual void StoreSettings();
00060
00061 virtual void TimerStart();
00062
00063 virtual void TimerStop();
00064
00065 virtual void Display();
00066
00067 virtual void Refresh();
00068
00069 virtual void NodeEditEnter();
00070
00071 virtual void NodeChanged( const QString & txt );
00072
00073 virtual void ShowStatus();
00074
00075 virtual void StateGroup_clicked( int id);
00076
00077 virtual void PrintStatus();
00078
00079 virtual void TrendSwitched( bool on );
00080
00081 virtual void UpdateTrending();
00082
00083 virtual void IncTrending( TH1 * histo, int value, bool forwards );
00084
00085 virtual void FrequencyBox_valueChanged( int );
00086
00087 virtual void MoreBox_toggled( bool on);
00088
00089 virtual void TrendBinsBox_valueChanged( int i);
00090
00091 virtual void RefreshButtonClick();
00092
00093 virtual void SetNode( const QString & txt );
00094
00095 virtual void ResetRunIcon();
00096
00097 virtual void StartMovieReset();
00098
00099 protected:
00100
00101 bool fbSingleRefresh;
00102 int fiLastDataNum;
00103 int fiLastEventNum;
00104 int fiCalcedEventRate;
00105 s_set_mo fxSetupMO;
00106 bool fbRunning;
00107 bool fbTrendingForward;
00108 QString fxHistokBAccessName;
00109 TH1* fxRatekBTrend;
00110 bool fbTrendingInit;
00111 QString fxHistoAccessName;
00112 bool fbTrending;
00113 bool fbGetSetML;
00114 QString fxRefTime;
00115 bool fbGetSetup;
00116 QString fxMessage;
00117 bool fbWarningState;
00118 bool fbIsMonitoring;
00119 s_daqst fxDaqStat;
00120 QString fxNode;
00121 QTimer* fxTimer;
00122 s_setup fxSetup;
00123 s_set_ml fxSetupML;
00124 QMovie* fxRunMovie;
00125 TH1* fxRateTrend;
00126 int fiTrendBins;
00127 bool fbShowMore;
00128 QTimer* fxMovieResetTimer;
00129 int fiEvRatio;
00130 QString fxHistoEvRatioAccessName;
00131 TH1* fxEvRatio;
00132 QString fxServerLabel;
00133 bool fbGetSetMO;
00134 int fiCalcedDataRate;
00135 int fiLastServDataNum;
00136 int fiCalcedServDataRate;
00137 int fiDataDelta;
00138 int fiServDataDelta;
00139 QTime fxDeltaClock;
00140 QButtonGroup* StateGroup;
00141
00142
00143 };
00144
00145 #endif