GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ConfigStep.h
Go to the documentation of this file.
1 // $Id: TGo4ConfigStep.h 1639 2015-06-24 13:40:12Z adamczew $
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 für 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 
18 #include <QWidget>
19 #include "ui_TGo4ConfigStep.h"
20 
24 
25 class TGo4ConfigStep : public QWidget, public Ui::TGo4ConfigStep
26 {
27  Q_OBJECT
28 
29  public:
30  TGo4ConfigStep( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
31  virtual ~TGo4ConfigStep();
32  virtual void SetStepStatus( TGo4AnalysisConfiguration * panel, TGo4AnalysisStepStatus * StepStatus, int number = -1 );
33  virtual QString GetStepName();
34  virtual QString GetTabTitle();
35  virtual void SetStepControl( bool process, bool source, bool store );
36  virtual void GetStepControl( bool & process, bool & source, bool & store );
37  virtual void SetSourceWidgets(const QString & name, int timeout);
38  virtual void SetMbsSourceWidgets(int start, int stop, int interval, int port = 0);
39  virtual void SetFileSource();
40  virtual void SetMbsFileSource(const QString& TagFile );
41  virtual void SetMbsStreamSource();
42  virtual void SetMbsTransportSource();
43  virtual void SetMbsEventServerSource();
44  virtual void SetMbsRevServSource( int port );
45  virtual void SetMbsPort(int port);
46  virtual void SetMbsRetryCnt(int retry);
47  virtual void SetRandomSource();
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 
59 
60  public slots:
61 
62  virtual void InputArguments( const QString & Arg );
63  virtual void InputStateChanged( int );
64  virtual void InputPortChanged( int );
65  virtual void RetryCntChanged( int );
66  virtual void InputSourceText( const QString & Name );
67  virtual void OutputStateChanged( int );
68  virtual void OutputNameText( const QString & Name );
69  virtual void StepStateChanged( int );
70  virtual void SourceComboHighlighted( int kind );
71  virtual void StoreComboHighlighted( int k );
72  virtual void OutputFileDialog();
73  virtual void StoreBufferSize( int t );
74  virtual void StoreSplitLevel( int t );
75  virtual void StoreCompLevel( int t );
76  virtual void StoreOverWrite( bool overwrite );
77  virtual void StoreTreeAutoSave( int t );
78  virtual void InputTagfile( const QString & tag );
79  virtual void ChangeStartEvent( int num );
80  virtual void ChangeStopEvent( int num );
81  virtual void ChangeEventInterval( int num );
82  virtual void ChangeSourceTimeout( int tim );
83  virtual void InputFileDialog();
84  virtual void MbsMonitorBtn_clicked();
85  virtual void ExtraBtn_clicked();
86 
87  protected:
91  int fLastSrcKind; // last selected kind of source parameter
92  int fBlocked; // indicates if all value-modified slots are blocked
93  bool fExtra; // show extra properties for event source
94 
95  enum { ParsSize = 8 };
96 
97  TGo4EventSourceParameter* fPars[ParsSize]; // array of parameters which are used to preserved once edited values
98 
99  void ChangeSourceParameter(int kind);
100  int CurrentSourceKind();
101 };
102 
103 #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 SetMbsRetryCnt(int retry)
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 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)
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 SetMbsEventServerSource()
virtual void SetMbsPort(int port)
virtual void ChangeStopEvent(int num)
virtual void StoreSplitLevel(int t)
TGo4ConfigStep(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)