GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ConfigStep.h
Go to the documentation of this file.
1 // $Id: TGo4ConfigStep.h 3012 2021-02-18 11:58:02Z 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 TGO4CONFIGSTEP_H
15 #define TGO4CONFIGSTEP_H
16 
17 #include <QWidget>
18 #include "ui_TGo4ConfigStep.h"
19 
23 
24 class TGo4ConfigStep : public QWidget, public Ui::TGo4ConfigStep
25 {
26  Q_OBJECT
27 
28  public:
29  TGo4ConfigStep( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::Widget );
30  virtual ~TGo4ConfigStep();
31  virtual void SetStepStatus( TGo4AnalysisConfiguration * panel, TGo4AnalysisStepStatus * StepStatus, int number = -1 );
32  virtual QString GetStepName();
33  virtual QString GetTabTitle();
34  virtual void SetStepControl( bool process, bool source, bool store );
35  virtual void GetStepControl( bool & process, bool & source, bool & store );
36  virtual void SetSourceWidgets(const QString & name, int timeout);
37  virtual void SetMbsSourceWidgets(int start, int stop, int interval, int port = 0);
38  virtual void SetFileSource();
39  virtual void SetMbsFileSource(const QString& TagFile );
40  virtual void SetMbsStreamSource();
41  virtual void SetMbsTransportSource();
42  virtual void SetMbsEventServerSource();
43  virtual void SetMbsRevServSource( int port );
44  virtual void SetMbsPort(int port);
45  virtual void SetMbsRetryCnt(int retry);
46  virtual void SetRandomSource();
47  virtual void SetHDF5Source(QString name);
48  virtual void SetUserSource( int port, QString expr );
49  virtual int GetSourceSetup( QString & name, int & timeout, int & start, int & stop, int & interval, int & port, int & nretry);
50  virtual void GetMbsFileSource( QString & TagFile );
51  virtual void GetUserSource( int & port, QString & expr );
52  virtual void SetFileStore( QString name, bool overwrite, int bufsize, int splitlevel, int compression, int autosave=0 );
53  virtual void SetBackStore( QString name, int bufsize, int splitlevel );
54  virtual QString GetBackStoreName();
55  virtual int GetStoreSetup( QString & name );
56  virtual void GetFileStore( bool & overwrite, int & bufsize, int & splitlevel, int & compression, int & autosaveinterval );
57  virtual void GetBackStore( int & bufsize, int & splitlevel );
58  virtual void SetUserStore(QString name);
59  virtual void SetHDF5Store(QString name, int flags);
60  virtual void GetHDF5Store( int & flags);
61  public slots:
62 
63  virtual void InputArguments( const QString & Arg );
64  virtual void InputStateChanged( int );
65  virtual void InputPortChanged( int );
66  virtual void RetryCntChanged( int );
67  virtual void InputSourceText( const QString & Name );
68  virtual void OutputStateChanged( int );
69  virtual void OutputNameText( const QString & Name );
70  virtual void StepStateChanged( int );
71  virtual void SourceComboHighlighted( int kind );
72  virtual void StoreComboHighlighted( int k );
73  virtual void OutputFileDialog();
74  virtual void StoreBufferSize( int t );
75  virtual void StoreSplitLevel( int t );
76  virtual void StoreCompLevel( int t );
77  virtual void StoreOverWrite( bool overwrite );
78  virtual void StoreTreeAutoSave( int t );
79  virtual void InputTagfile( const QString & tag );
80  virtual void ChangeStartEvent( int num );
81  virtual void ChangeStopEvent( int num );
82  virtual void ChangeEventInterval( int num );
83  virtual void ChangeSourceTimeout( int tim );
84  virtual void InputFileDialog();
85  virtual void MbsMonitorBtn_clicked();
86  virtual void ExtraBtn_clicked();
87 
88  protected:
92  int fLastSrcKind; // last selected kind of source parameter
93  int fBlocked; // indicates if all value-modified slots are blocked
94  bool fExtra; // show extra properties for event source
95 
96  enum { ParsSize = 9 };
97 
98  TGo4EventSourceParameter* fPars[ParsSize]; // array of parameters which are used to preserved once edited values
99 
100  void ChangeSourceParameter(int kind);
101  int CurrentSourceKind();
102 };
103 
104 #endif
virtual void ChangeEventInterval(int num)
virtual ~TGo4ConfigStep()
virtual void InputStateChanged(int)
TGo4AnalysisConfiguration * fxPanel
virtual void SetStepStatus(TGo4AnalysisConfiguration *panel, TGo4AnalysisStepStatus *StepStatus, int number=-1)
virtual void SetMbsStreamSource()
virtual void SetUserSource(int port, QString expr)
virtual void OutputNameText(const QString &Name)
virtual void InputTagfile(const QString &tag)
virtual void OutputStateChanged(int)
virtual void StoreBufferSize(int t)
virtual void RetryCntChanged(int)
virtual void StoreOverWrite(bool overwrite)
virtual QString GetTabTitle()
virtual void SetBackStore(QString name, int bufsize, int splitlevel)
virtual void GetHDF5Store(int &flags)
virtual void SetMbsRetryCnt(int retry)
virtual void SetHDF5Store(QString name, int flags)
virtual QString GetBackStoreName()
virtual void ChangeSourceTimeout(int tim)
virtual void SetMbsRevServSource(int port)
virtual void ExtraBtn_clicked()
virtual void StepStateChanged(int)
virtual void GetFileStore(bool &overwrite, int &bufsize, int &splitlevel, int &compression, int &autosaveinterval)
TGo4EventSourceParameter * fPars[ParsSize]
virtual void InputPortChanged(int)
virtual void MbsMonitorBtn_clicked()
void ChangeSourceParameter(int kind)
virtual void GetMbsFileSource(QString &TagFile)
virtual void SetHDF5Source(QString name)
virtual int GetStoreSetup(QString &name)
virtual void GetStepControl(bool &process, bool &source, bool &store)
virtual void SetMbsFileSource(const QString &TagFile)
virtual void SetRandomSource()
virtual void SetFileSource()
virtual QString GetStepName()
virtual void StoreComboHighlighted(int k)
virtual void SetFileStore(QString name, bool overwrite, int bufsize, int splitlevel, int compression, int autosave=0)
virtual void SetStepControl(bool process, bool source, bool store)
TGo4AnalysisStepStatus * fStepStatus
virtual void SetSourceWidgets(const QString &name, int timeout)
virtual void GetBackStore(int &bufsize, int &splitlevel)
virtual void SetMbsTransportSource()
virtual void SetMbsSourceWidgets(int start, int stop, int interval, int port=0)
virtual void OutputFileDialog()
virtual void GetUserSource(int &port, QString &expr)
virtual void InputSourceText(const QString &Name)
virtual void ChangeStartEvent(int num)
TGo4ConfigStep(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=Qt::Widget)
virtual int GetSourceSetup(QString &name, int &timeout, int &start, int &stop, int &interval, int &port, int &nretry)
virtual void StoreCompLevel(int t)
virtual void InputArguments(const QString &Arg)
virtual void InputFileDialog()
virtual void StoreTreeAutoSave(int t)
virtual void SourceComboHighlighted(int kind)
virtual void SetUserStore(QString name)
virtual void SetMbsEventServerSource()
virtual void SetMbsPort(int port)
virtual void ChangeStopEvent(int num)
virtual void StoreSplitLevel(int t)