KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVBatchSystemParametersGUI.cpp
1//Created by KVClassFactory on Fri Feb 17 14:52:45 2017
2//Author: John Frankland,,,
3
4#include "KVBatchSystemParametersGUI.h"
5
7
8
9
11
13 : KVNameValueListGUI(main, params, cancel), fAnalyser(dan)
14{
15 // Default constructor
16 fJN = (TGTextEntry*)GetDataWidget("JobName");
17 fJNF = (TGTextEntry*)GetDataWidget("AutoJobNameFormat");
18 fJNF->SetToolTipText(dan->GetRecognisedAutoBatchNameKeywords());
19 fAJN = (TGCheckButton*)GetDataWidget("AutoJobName");
20 fAJN->Connect("Toggled(Bool_t)", "KVBatchSystemParametersGUI", this, "SetAutoBatchName(Bool_t)");
21 fJNF->Connect("TextChanged(const char*)", "KVBatchSystemParametersGUI", this, "UpdateAutoBatchName(const char*)");
22 SetAutoBatchName(fAJN->IsDown());
23
24 if (GetList()->HasParameter("MultiJobsMode")) {
25 fMJ = (TGCheckButton*)GetDataWidget("MultiJobsMode");
26 fRPJ = (TGNumberEntry*)GetDataWidget("RunsPerJob");
27 fRPJ->SetLimits(TGNumberFormat::kNELLimitMinMax, 1, dan->GetNumberOfFilesToAnalyse());
28 if (dan->GetNumberOfFilesToAnalyse() < 2) {
29 fRPJ->SetState(kFALSE);
30 fMJ->SetEnabled(kFALSE);
31 }
32 else {
33 fMJ->SetEnabled(kTRUE);
34 fMJ->SetDown();
35 fRPJ->SetNumber(1);
36 fMJ->Connect("Toggled(Bool_t)", "TGNumberEntry", fRPJ, "SetState(Bool_t)");
37 fRPJ->SetState(fMJ->IsDown());
38 }
39 }
40 DisplayDialog();
41}
42
43
44
45
48
53
54
55
57
62
63
64
66
79
80
81//____________________________________________________________________________//
82
83
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char text
Utility GUI used for setting batch system parameters.
virtual ~KVBatchSystemParametersGUI()
Destructor.
TGTextEntry * fJNF
job name format widget
TGTextEntry * fJN
job name widget
Manager class which sets up and runs data analysis tasks.
virtual TString ExpandAutoBatchName(const Char_t *format) const
GUI for setting KVNameValueList parameters.
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
const char * GetText() const
void SetEnabled(Bool_t flag=kTRUE)
virtual void SetText(const char *text, Bool_t emit=kTRUE)
ClassImp(TPyArg)