Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TGO4CONFIGSTEP_H
00015 #define TGO4CONFIGSTEP_H
00016
00017
00018 #include <QWidget>
00019 #include "ui_TGo4ConfigStep.h"
00020
00021 class TGo4AnalysisConfiguration;
00022 class TGo4AnalysisStepStatus;
00023 class TGo4EventSourceParameter;
00024
00025 class TGo4ConfigStep : public QWidget, public Ui::TGo4ConfigStep
00026 {
00027 Q_OBJECT
00028
00029 public:
00030 TGo4ConfigStep( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
00031 virtual ~TGo4ConfigStep();
00032 virtual void SetStepStatus( TGo4AnalysisConfiguration * panel, TGo4AnalysisStepStatus * StepStatus, int number = -1 );
00033 virtual QString GetStepName();
00034 virtual QString GetTabTitle();
00035 virtual void SetStepControl( bool process, bool source, bool store );
00036 virtual void GetStepControl( bool & process, bool & source, bool & store );
00037 virtual void SetSourceWidgets(const QString & name, int timeout);
00038 virtual void SetMbsSourceWidgets(int start, int stop, int interval, int port = 0);
00039 virtual void SetFileSource();
00040 virtual void SetMbsFileSource(const QString& TagFile );
00041 virtual void SetMbsStreamSource();
00042 virtual void SetMbsTransportSource();
00043 virtual void SetMbsEventServerSource();
00044 virtual void SetMbsRevServSource( int port );
00045 virtual void SetMbsPort(int port);
00046 virtual void SetMbsRetryCnt(int retry);
00047 virtual void SetRandomSource();
00048 virtual void SetUserSource( int port, QString expr );
00049 virtual int GetSourceSetup( QString & name, int & timeout, int & start, int & stop, int & interval, int & port, int & nretry);
00050 virtual void GetMbsFileSource( QString & TagFile );
00051 virtual void GetUserSource( int & port, QString & expr );
00052 virtual void SetFileStore( QString name, bool overwrite, int bufsize, int splitlevel, int compression );
00053 virtual void SetBackStore( QString name, int bufsize, int splitlevel );
00054 virtual QString GetBackStoreName();
00055 virtual int GetStoreSetup( QString & name );
00056 virtual void GetFileStore( bool & overwrite, int & bufsize, int & splitlevel, int & compression );
00057 virtual void GetBackStore( int & bufsize, int & splitlevel );
00058
00059
00060 public slots:
00061
00062 virtual void InputArguments( const QString & Arg );
00063 virtual void InputStateChanged( int );
00064 virtual void InputPortChanged( int );
00065 virtual void RetryCntChanged( int );
00066 virtual void InputSourceText( const QString & Name );
00067 virtual void OutputStateChanged( int );
00068 virtual void OutputNameText( const QString & Name );
00069 virtual void StepStateChanged( int );
00070 virtual void SourceComboHighlighted( int kind );
00071 virtual void StoreComboHighlighted( int k );
00072 virtual void OutputFileDialog();
00073 virtual void StoreBufferSize( int t );
00074 virtual void StoreSplitLevel( int t );
00075 virtual void StoreCompLevel( int t );
00076 virtual void StoreOverWrite( bool overwrite );
00077 virtual void InputTagfile( const QString & tag );
00078 virtual void ChangeStartEvent( int num );
00079 virtual void ChangeStopEvent( int num );
00080 virtual void ChangeEventInterval( int num );
00081 virtual void ChangeSourceTimeout( int tim );
00082 virtual void InputFileDialog();
00083 virtual void MbsMonitorBtn_clicked();
00084 virtual void ExtraBtn_clicked();
00085
00086 protected:
00087 TGo4AnalysisConfiguration* fxPanel;
00088 TGo4AnalysisStepStatus* fStepStatus;
00089 int fStepNumber;
00090 int fLastSrcKind;
00091 int fBlocked;
00092 bool fExtra;
00093
00094 enum { ParsSize = 8 };
00095
00096 TGo4EventSourceParameter* fPars[ParsSize];
00097
00098 void ChangeSourceParameter(int kind);
00099 int CurrentSourceKind();
00100 };
00101
00102 #endif