16 fJN = (
TGTextEntry*)GetDataWidget(GetList()->GetNameIndex(
"JobName"));
17 fJNF = (
TGTextEntry*)GetDataWidget(GetList()->GetNameIndex(
"AutoJobNameFormat"));
18 fJNF->SetToolTipText(dan->GetRecognisedAutoBatchNameKeywords());
19 fAJN = (
TGCheckButton*)GetDataWidget(GetList()->GetNameIndex(
"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());
24 if (GetList()->HasParameter(
"MultiJobsMode")) {
25 fMJ = (
TGCheckButton*)GetDataWidget(GetList()->GetNameIndex(
"MultiJobsMode"));
26 fRPJ = (
TGNumberEntry*)GetDataWidget(GetList()->GetNameIndex(
"RunsPerJob"));
28 if (dan->GetNumberOfFilesToAnalyse() < 2) {
33 fMJ->SetEnabled(
kTRUE);
36 fMJ->Connect(
"Toggled(Bool_t)",
"TGNumberEntry", fRPJ,
"SetState(Bool_t)");
37 fRPJ->SetState(fMJ->IsDown());
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Utility GUI used for setting batch system parameters.
virtual ~KVBatchSystemParametersGUI()
Destructor.
TGTextEntry * fJNF
job name format widget
void SetAutoBatchName(Bool_t on)
void UpdateAutoBatchName(const char *=0)
TGTextEntry * fJN
job name widget
KVDataAnalyser * fAnalyser
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)
int main(int argc, char **argv)