29 setWindowTitle(
"Histogram Info:");
50 return cl==0 ?
false : cl->InheritsFrom(TH1::Class());
57 if (cl->InheritsFrom(TH1::Class()))
78 HisnameLbl->setText(itemname);
84 AddLink(itemname,
"HistogramLock");
87 TH1* h1 =
dynamic_cast<TH1*
> (
GetLinked(
"Histogram",2));
97 HisnameLbl->setText(
"");
99 PropertyBox->item(
HISTITLE)->setText(
"Title");
100 PropertyBox->item(
HISCLASS)->setText(
"Class");
101 PropertyBox->item(
HISENTRIES)->setText(
"Entries");
102 PropertyBox->item(
HISX)->setText(
"Xrange");
103 PropertyBox->item(
HISXSTAT)->setText(
"Xstats");
104 PropertyBox->item(
HISY)->setText(
"Yrange");
105 PropertyBox->item(
HISYSTAT)->setText(
"Ystats");
106 PropertyBox->item(
HISZ)->setText(
"Title");
107 PropertyBox->item(
HISZSTAT)->setText(
"Zstats");
108 PropertyBox->item(
HISSIZE)->setText(
"Size");
110 PropertyBox->item(
HISTIME)->setText(now.AsSQLString());
129 if(hstate==0)
return;
131 PropertyBox->item(
HISTITLE)->setText(hstate->GetTitle());
133 str.Form(
"Entries:%.5g",hstate->
GetEntries());
134 PropertyBox->item(
HISENTRIES)->setText(str.Data());
136 PropertyBox->item(
HISX)->setText(str.Data());
138 PropertyBox->item(
HISXSTAT)->setText(str.Data());
140 PropertyBox->item(
HISY)->setText(
"-");
141 PropertyBox->item(
HISYSTAT)->setText(
"-");
142 PropertyBox->item(
HISZ)->setText(
"-");
143 PropertyBox->item(
HISZSTAT)->setText(
"-");
148 PropertyBox->item(
HISY)->setText(str.Data());
150 PropertyBox->item(
HISYSTAT)->setText(str.Data());
154 PropertyBox->item(
HISZ)->setText(str.Data());
156 PropertyBox->item(
HISZSTAT)->setText(str.Data());
159 PropertyBox->item(
HISSIZE)->setText(str.Data());
172 textbuffer=
"Histogram ";
173 textbuffer+=HisnameLbl->text();
174 textbuffer+=
" Status: \n ";
175 textbuffer+=
"Title: ";
176 textbuffer+=PropertyBox->item(
HISTITLE)->text();
177 textbuffer+=
" Class: ";
178 textbuffer+=PropertyBox->item(
HISCLASS)->text();
180 textbuffer+=PropertyBox->item(
HISENTRIES)->text();
182 textbuffer+=PropertyBox->item(
HISX)->text();
184 textbuffer+=PropertyBox->item(
HISXSTAT)->text();
186 textbuffer+=PropertyBox->item(
HISY)->text();
188 textbuffer+=PropertyBox->item(
HISYSTAT)->text();
190 textbuffer+=PropertyBox->item(
HISZ)->text();
192 textbuffer+=PropertyBox->item(
HISZSTAT)->text();
194 textbuffer+=PropertyBox->item(
HISSIZE)->text();
195 textbuffer+=
" Status received at: ";
196 textbuffer+=PropertyBox->item(
HISTIME)->text();
virtual void DropItem(const char *itemname, TClass *cl, int kind)
virtual void HisDrawButton_clicked()
Bool_t IsAnalysisItem(const char *name)
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual void RefreshHistogramInfo(TH1 *h1)
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
TGo4HistogramInfo(QWidget *parent=0, const char *name=0)
virtual void ResetWidget()
void RequestObjectStatus(const char *name, TGo4Slot *tgtslot)
static const char * Message(Int_t prio, const char *text,...)
const char * GetTimeString() const
virtual void PrintLog_clicked()
const char * GetObjectClass() const
virtual void HisInfoButton_clicked()
virtual void WorkWithHistogram(const char *itemname)
virtual void HisPrintButton_clicked()
Int_t GetObjectSize() const
static Bool_t IsAutoEnabled()