16 #include <QFileDialog>
56 if (strcmp(linkname,
"Status")==0) {
57 parentWidget()->raise();
58 parentWidget()->show();
59 if (parentWidget()->isMinimized()) parentWidget()->showNormal();
95 w = TabSteps->currentWidget();
97 TabSteps->removeTab(TabSteps->indexOf(w));
110 if ((status==0) || (anal==0))
return;
119 w = TabSteps->currentWidget();
121 TabSteps->removeTab(TabSteps->indexOf(w));
128 if (stepstatus==0)
continue;
129 QString StepName = stepstatus->GetName();
132 TabSteps->insertTab(i, NewStep, NewStep->
GetTabTitle());
135 TabSteps->setCurrentIndex(0);
136 TabSteps->adjustSize();
146 parentWidget()->showNormal();
147 parentWidget()->adjustSize();
190 "Select a configuration file",
192 " Configuration file (*.root)");
193 fd.setFileMode( QFileDialog::AnyFile);
194 if (fd.exec() != QDialog::Accepted)
return;
195 QStringList flst = fd.selectedFiles();
196 QString fileName = flst.isEmpty() ? QString() : flst[0];
198 if(!fileName.endsWith(
".root")) fileName.append(
".root");
199 ConfigFileName->setText(fileName);
204 QFileDialog fd(
this,
205 "Select file name for autosaving",
207 "Auto Save File (*.root)");
208 fd.setFileMode(QFileDialog::AnyFile);
209 fd.setAcceptMode(QFileDialog::AcceptSave);
210 if (fd.exec() != QDialog::Accepted)
return;
212 QStringList flst = fd.selectedFiles();
213 if (flst.isEmpty())
return;
215 QString fileName = flst[0];
217 if(!fileName.endsWith(
".root")) fileName.append(
".root");
218 AutoSaveFileName->setText(fileName);
224 QString fname = AutoSaveFileName->text().trimmed();
241 QString fname = ConfigFileName->text().trimmed();
251 QString fname = ConfigFileName->text().trimmed();
266 parentWidget()->hide();
297 if ((anal!=0) && (status!=0))
309 AutoSaveInterval->setEnabled(enabled);
314 return TabSteps->count();
319 if ((n<0) || (n>=TabSteps->count()))
return 0;
339 AutoSaveFileName->setText(filename);
340 AutoSaveInterval->setValue(interval);
341 CompLevel->setValue(compression);
343 AutoSaveOverwrite->setChecked(overwrite);
344 AutoSaveEnable->setChecked(enabled);
346 AutoSaveInterval->setEnabled(enabled);
355 filename = AutoSaveFileName->text();
356 interval = AutoSaveInterval->value();
357 compression = CompLevel->value();
359 overwrite = AutoSaveOverwrite->isChecked();
360 enabled = AutoSaveEnable->isChecked();
365 ConfigFileName->setText(filename);
370 filename = ConfigFileName->text();
375 ServiceCall(
"DisplayMbsMonitor", (
void*) mbsname.toLatin1().constData());
381 QWidget* mdi = parentWidget();
virtual void WriteAutoSave(const char *fname, Int_t complevel, Bool_t overwrite)
void SetAutoFileName(const char *name)
virtual void FileDialog_AutoSave()
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual void SetStepStatus(TGo4AnalysisConfiguration *panel, TGo4AnalysisStepStatus *StepStatus, int number=-1)
Int_t GetAutoSaveCompression() const
virtual void GetAnalysisConfigFile(QString &filename)
virtual void WriteAutoSave()
virtual void SaveConfigFile(const char *fname)
virtual QString GetTabTitle()
const char * GetConfigFileName() const
virtual void SetAutoSaveConfig(QString filename, int interval, int compression, bool enbaled, bool overwrite)
void SetAutoSaveOn(Bool_t on=kTRUE)
TGo4ConfigStep * GetStepConfig(int n)
virtual void SetSourcePath(const QString &v)
virtual void SetAutoSaveOverwrite(bool overwrite)
virtual void linkedObjectRemoved(const char *linkname)
virtual void SetAutoSaveInterval(int t)
virtual Bool_t RefreshNamesList()
virtual void RequestAnalysisSettings()
virtual void RequestAnalysisStatus()
virtual void SaveConfiguration()
const char * GetAutoFileName() const
Int_t IsAutoSaveOverwrite() const
virtual void GetAutoSaveConfig(QString &filename, int &interval, int &compression, bool &enbaled, bool &overwrite)
TGo4Slot * SettingsSlot()
virtual void LoadConfiguration()
virtual void LineEdit_AutoSaveFile()
virtual QString GetStepName()
Int_t IsAutoSaveOn() const
virtual void RefreshWidget()
virtual void SubmitAndStart()
TGo4AnalysisStepStatus * GetStepStatus(const char *name)
virtual QString GetSourcePath()
virtual Bool_t CanSubmitObjects()
virtual void SetCompressionLevel(int t)
virtual void FileDialog_ConfFile()
virtual QString GetStorePath()
virtual void closeEvent(QCloseEvent *e)
TGo4AnalysisConfiguration(QWidget *parent=0, const char *name=0)
virtual void ResetWidget()
virtual void CloseAnalysis()
virtual void DropItem(const char *itemname, TClass *cl, int kind)
void SetAutoSaveOverwrite(Bool_t over=kTRUE)
TGo4ConfigStep * FindStepConfig(QString name)
virtual void SetStorePath(const QString &v)
virtual void EnableAutoSaveSlot(bool disabled)
virtual void WorkWithAnalysis(TGo4ServerProxy *anal)
virtual void SubmitConfiguration()
virtual void DisplayMbsMonitor(const QString &mbsname)
void SetAutoSaveInterval(Int_t i)
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
virtual void SetAnalysisConfigFile(QString filename)
void ChangeTabTitle(TGo4ConfigStep *step, int number)
void SetAutoSaveCompression(Int_t i=5)
Int_t GetAutoSaveInterval() const
virtual void LoadConfigFile(const char *fname)