29 setWindowTitle(
"Condition Info:");
35 return cl==0 ?
false : cl->InheritsFrom(TGo4Condition::Class());
41 if (cl->InheritsFrom(TGo4Condition::Class()))
47 if (strcmp(linkname,
"Condition")==0)
70 textbuffer=
"Condition ";
71 textbuffer+=CondnameLbl->text();
72 textbuffer+=
" Status: \n ";
73 textbuffer+=
"Title: ";
74 textbuffer+=PropertyBox->item(
CONTITLE)->text();
75 textbuffer+=
" Class: ";
76 textbuffer+=PropertyBox->item(
CONCLASS)->text();
78 textbuffer+=PropertyBox->item(
CONDIM)->text();
80 textbuffer+=PropertyBox->item(
CONMODE)->text();
82 textbuffer+=PropertyBox->item(
CONX)->text();
84 textbuffer+=PropertyBox->item(
CONY)->text();
86 textbuffer+=PropertyBox->item(
CONCOUNTS)->text();
88 textbuffer+=PropertyBox->item(
CONRESULT)->text();
90 textbuffer+=PropertyBox->item(
CONSIZE)->text();
91 textbuffer+=
" Status received at: ";
92 textbuffer+=PropertyBox->item(
CONTIME)->text();
101 CondnameLbl->setText(itemname);
103 AddLink(itemname,
"Condition");
105 TObject* obj =
GetLinked(
"Condition", 2);
115 PropertyBox->item(
CONTITLE)->setText(
"Title");
116 PropertyBox->item(
CONCLASS)->setText(
"Class:");
117 PropertyBox->item(
CONX)->setText(
"X Testrange");
118 PropertyBox->item(
CONY)->setText(
"Y Testrange");
119 PropertyBox->item(
CONDIM)->setText(
"Dimension");
120 PropertyBox->item(
CONCOUNTS)->setText(
"Counts");
121 PropertyBox->item(
CONRESULT)->setText(
"Result");
122 PropertyBox->item(
CONMODE)->setText(
"Test mode");
123 PropertyBox->item(
CONSIZE)->setText(
"Size");
125 PropertyBox->item(
CONTIME)->setText(now.AsSQLString());
137 PropertyBox->item(
CONTITLE)->setText(cond->GetTitle());
138 PropertyBox->item(
CONCLASS)->setText(cond->ClassName());
140 if(cond->InheritsFrom(TGo4WinCond::Class())) {
142 double xmin, xmax, ymin, ymax;
143 wcon->
GetValues(dimension, xmin, xmax, ymin, ymax);
144 str.Form(
"X: [%.1f,%.1f]",xmin, xmax);
145 PropertyBox->item(
CONX)->setText(str.Data());
146 str.Form(
"Y: [%.1f,%.1f]",ymin, ymax);
147 PropertyBox->item(
CONY)->setText(str.Data());
149 PropertyBox->item(
CONX)->setText(
"X:-");
150 PropertyBox->item(
CONY)->setText(
"Y:-");
154 str.Form(
"Dim:%d", dimension);
155 PropertyBox->item(
CONDIM)->setText(str.Data());
156 str.Form(
"Counts:%d", cond->
Counts());
157 PropertyBox->item(
CONCOUNTS)->setText(str.Data());
159 PropertyBox->item(
CONRESULT)->setText(str.Data());
161 if(cond->
IsEnabled()) str =
"test enabled";
else
163 else str =
"always false";
164 if(cond->
IsTrue()) str +=
" - regular";
165 else str +=
" - inverse";
166 PropertyBox->item(
CONMODE)->setText(str.Data());
169 PropertyBox->item(
CONSIZE)->setText(str.Data());
172 PropertyBox->item(
CONTIME)->setText(now.AsSQLString());
virtual void ConPrintButton_clicked()
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
virtual void GetValues(Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
Bool_t FixedResult() const
TGo4ConditionInfo(QWidget *parent=0, const char *name=0)
static const char * Message(Int_t prio, const char *text,...)
virtual void ConEditButton_clicked()
virtual void RefreshWidget(TGo4Condition *cond)
virtual void DropItem(const char *itemname, TClass *cl, int kind)
virtual void WorkWithCondition(const char *itemname)
virtual void ResetWidget()
virtual void ConInfoButton_clicked()
virtual Int_t GetMemorySize()
virtual Int_t TrueCounts()
static Bool_t IsAutoEnabled()
virtual void PrintLog_clicked()