GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4AnalysisConfiguration.h
Go to the documentation of this file.
1 // $Id$
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 TGO4ANALYSISCONFIGURATION_H
15 #define TGO4ANALYSISCONFIGURATION_H
16 
17 #include "QGo4Widget.h"
18 #include "ui_TGo4AnalysisConfiguration.h"
19 
20 class TGo4ConfigStep;
21 class TGo4ServerProxy;
22 
23 class TGo4AnalysisConfiguration : public QGo4Widget, public Ui::TGo4AnalysisConfiguration {
24  Q_OBJECT
25 
26 public:
27  TGo4AnalysisConfiguration(QWidget *parent = nullptr, const char *name = nullptr);
28 
29  bool IsAcceptDrag(const char *itemname, TClass *cl, int kind) override;
30 
31  void DropItem(const char *itemname, TClass *cl, int kind) override;
32 
33  void linkedObjectUpdated(const char *linkname, TObject *obj) override;
34 
35  void linkedObjectRemoved(const char *linkname) override;
36 
37  virtual void WorkWithAnalysis(TGo4ServerProxy *anal);
38 
39  void ResetWidget() override;
40 
41  virtual void RefreshWidget();
42 
43  virtual QString GetSourcePath();
44 
45  virtual QString GetStorePath();
46 
47  virtual void SetSourcePath(const QString &v);
48 
49  virtual void SetStorePath(const QString &v);
50 
51  int GetNumSteps();
52 
53  void ChangeTabTitle(TGo4ConfigStep *step, int number);
54 
56 
57  TGo4ConfigStep *FindStepConfig(QString name);
58 
59  virtual void SetAutoSaveConfig(QString filename, int interval, int compression, bool enbaled, bool overwrite);
60 
61  virtual void GetAutoSaveConfig(QString &filename, int &interval, int &compression, bool &enbaled, bool &overwrite);
62 
63  virtual void SetAnalysisConfigFile(QString filename);
64 
65  virtual void GetAnalysisConfigFile(QString &filename);
66 
67  virtual void DisplayMbsMonitor(const QString &mbsname);
68 
69 public slots:
70 
71  virtual void RequestAnalysisStatus();
72 
73  virtual void FileDialog_ConfFile();
74 
75  virtual void FileDialog_AutoSave();
76 
77  virtual void LineEdit_AutoSaveFile(const QString &);
78 
79  virtual void SetCompressionLevel(int t);
80 
81  virtual void LoadConfiguration();
82 
83  virtual void SaveConfiguration();
84 
85  virtual void SubmitConfiguration();
86 
87  virtual void SubmitAndStart();
88 
89  virtual void CloseAnalysis();
90 
91  virtual void SetAutoSaveInterval(int t);
92 
93  virtual void SetAutoSaveOverwrite(bool overwrite);
94 
95  virtual void WriteAutoSave();
96 
97  virtual void EnableAutoSaveSlot(bool disabled);
98 
99 protected:
100  void closeEvent(QCloseEvent *e) override;
101 
102  bool fbTypingMode{false};
103  QString fSourcePath;
104  QString fStorePath;
105  QString fConfigPath;
106  QString fAutoSavePath;
107 };
108 
109 #endif
virtual void LineEdit_AutoSaveFile(const QString &)
virtual void GetAnalysisConfigFile(QString &filename)
void linkedObjectUpdated(const char *linkname, TObject *obj) override
virtual void SetAutoSaveConfig(QString filename, int interval, int compression, bool enbaled, bool overwrite)
TGo4ConfigStep * GetStepConfig(int n)
virtual void SetSourcePath(const QString &v)
virtual void SetAutoSaveOverwrite(bool overwrite)
void closeEvent(QCloseEvent *e) override
void linkedObjectRemoved(const char *linkname) override
void DropItem(const char *itemname, TClass *cl, int kind) override
TGo4AnalysisConfiguration(QWidget *parent=nullptr, const char *name=nullptr)
bool IsAcceptDrag(const char *itemname, TClass *cl, int kind) override
virtual void GetAutoSaveConfig(QString &filename, int &interval, int &compression, bool &enbaled, bool &overwrite)
TGo4ConfigStep * FindStepConfig(QString name)
virtual void SetStorePath(const QString &v)
virtual void EnableAutoSaveSlot(bool disabled)
virtual void WorkWithAnalysis(TGo4ServerProxy *anal)
virtual void DisplayMbsMonitor(const QString &mbsname)
virtual void SetAnalysisConfigFile(QString filename)
void ChangeTabTitle(TGo4ConfigStep *step, int number)