GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
20class TGo4ConfigStep;
21class TGo4ServerProxy;
22
23class TGo4AnalysisConfiguration : public QGo4Widget, public Ui::TGo4AnalysisConfiguration {
24 Q_OBJECT
25
26public:
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
69public 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
99protected:
100 void closeEvent(QCloseEvent *e) override;
101
102 bool fbTypingMode{false};
103 QString fSourcePath;
104 QString fStorePath;
105 QString fConfigPath;
107};
108
109#endif
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
void linkedObjectRemoved(const char *linkname) override
virtual void GetAnalysisConfigFile(QString &filename)
virtual void SetAutoSaveOverwrite(bool overwrite)
void linkedObjectUpdated(const char *linkname, TObject *obj) override
virtual void EnableAutoSaveSlot(bool disabled)
void DropItem(const char *itemname, TClass *cl, int kind) override
void ChangeTabTitle(TGo4ConfigStep *step, int number)
TGo4AnalysisConfiguration(QWidget *parent=nullptr, const char *name=nullptr)
virtual void LineEdit_AutoSaveFile(const QString &)
virtual void GetAutoSaveConfig(QString &filename, int &interval, int &compression, bool &enbaled, bool &overwrite)
bool IsAcceptDrag(const char *itemname, TClass *cl, int kind) override
virtual void SetAnalysisConfigFile(QString filename)
virtual void WorkWithAnalysis(TGo4ServerProxy *anal)
void closeEvent(QCloseEvent *e) override
virtual void SetStorePath(const QString &v)
TGo4ConfigStep * FindStepConfig(QString name)
virtual void SetAutoSaveConfig(QString filename, int interval, int compression, bool enbaled, bool overwrite)
virtual void SetSourcePath(const QString &v)
virtual void DisplayMbsMonitor(const QString &mbsname)
special base class for remote data servers like DABC, HTTP, hist server