32 setWindowTitle(
"Condition Info:");
38 return !cl ? false : cl->InheritsFrom(TGo4Condition::Class());
44 if (cl->InheritsFrom(TGo4Condition::Class()))
50 if (strcmp(linkname,
"Condition") == 0)
73 textbuffer=
"Condition ";
74 textbuffer+=CondnameLbl->text();
75 textbuffer+=
" Status: \n ";
76 textbuffer+=
"Title: ";
77 textbuffer+=PropertyBox->item(
CONTITLE)->text();
78 textbuffer+=
" Class: ";
79 textbuffer+=PropertyBox->item(
CONCLASS)->text();
81 textbuffer+=PropertyBox->item(
CONDIM)->text();
83 textbuffer+=PropertyBox->item(
CONMODE)->text();
85 textbuffer+=PropertyBox->item(
CONX)->text();
87 textbuffer+=PropertyBox->item(
CONY)->text();
89 textbuffer+=PropertyBox->item(
CONCOUNTS)->text();
91 textbuffer+=PropertyBox->item(
CONRESULT)->text();
93 textbuffer+=PropertyBox->item(
CONSIZE)->text();
94 textbuffer+=
" Status received at: ";
95 textbuffer+=PropertyBox->item(
CONTIME)->text();
104 CondnameLbl->setText(itemname);
106 AddLink(itemname,
"Condition");
118 PropertyBox->item(
CONTITLE)->setText(
"Title");
119 PropertyBox->item(
CONCLASS)->setText(
"Class:");
120 PropertyBox->item(
CONX)->setText(
"X Testrange");
121 PropertyBox->item(
CONY)->setText(
"Y Testrange");
122 PropertyBox->item(
CONDIM)->setText(
"Dimension");
123 PropertyBox->item(
CONCOUNTS)->setText(
"Counts");
124 PropertyBox->item(
CONRESULT)->setText(
"Result");
125 PropertyBox->item(
CONMODE)->setText(
"Test mode");
126 PropertyBox->item(
CONSIZE)->setText(
"Size");
128 PropertyBox->item(
CONTIME)->setText(now.AsSQLString());
140 PropertyBox->item(
CONTITLE)->setText(cond->GetTitle());
141 PropertyBox->item(
CONCLASS)->setText(cond->ClassName());
143 if(cond->InheritsFrom(TGo4WinCond::Class())) {
145 double xmin, xmax, ymin, ymax;
146 wcon->
GetValues(dimension, xmin, xmax, ymin, ymax);
147 str.Form(
"X: [%.1f,%.1f]",xmin, xmax);
148 PropertyBox->item(
CONX)->setText(str.Data());
149 str.Form(
"Y: [%.1f,%.1f]",ymin, ymax);
150 PropertyBox->item(
CONY)->setText(str.Data());
152 PropertyBox->item(
CONX)->setText(
"X:-");
153 PropertyBox->item(
CONY)->setText(
"Y:-");
157 str.Form(
"Dim:%d", dimension);
158 PropertyBox->item(
CONDIM)->setText(str.Data());
159 str.Form(
"Counts:%d", cond->
Counts());
160 PropertyBox->item(
CONCOUNTS)->setText(str.Data());
162 PropertyBox->item(
CONRESULT)->setText(str.Data());
165 str =
"test enabled";
169 str =
"always false";
170 if(cond->
IsTrue()) str +=
" - regular";
171 else str +=
" - inverse";
172 PropertyBox->item(
CONMODE)->setText(str.Data());
175 PropertyBox->item(
CONSIZE)->setText(str.Data());
178 PropertyBox->item(
CONTIME)->setText(now.AsSQLString());
virtual void WorkWithCondition(const char *itemname)
virtual void ConEditButton_clicked()
virtual void ConPrintButton_clicked()
virtual void PrintLog_clicked()
TGo4ConditionInfo(QWidget *parent=nullptr, const char *name=nullptr)
void ResetWidget() override
void DropItem(const char *itemname, TClass *cl, int kind) override
virtual void RefreshWidget(TGo4Condition *cond)
bool IsAcceptDrag(const char *itemname, TClass *cl, int kind) override
void linkedObjectUpdated(const char *linkname, TObject *obj) override
virtual void ConInfoButton_clicked()
virtual Int_t TrueCounts()
Return number of true results of the Test method call.
virtual Int_t GetMemorySize() const
Int_t GetDimension() const
virtual Int_t Counts()
Return number of calls of the Test method.
Bool_t FixedResult() const
Returns the value set by Disable(value).
Bool_t IsTrue() const
Use this as return, if test was true.
Bool_t IsEnabled() const
Returns true if condition is enabled.
static Bool_t IsAutoEnabled()
get current user boolean
static const char * Message(Int_t prio, const char *text,...) GO4_PRINTF2_ARGS
Display a message.
void GetValues(Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) override
Returns limits.