31 QObject::connect(PrintLog, SIGNAL(clicked()),
this, SLOT(
PrintLog_clicked()));
33 setWindowTitle(
"Histogram Info:");
54 return cl==0 ?
false : cl->InheritsFrom(TH1::Class());
61 if (cl->InheritsFrom(TH1::Class()))
82 HisnameLbl->setText(itemname);
88 AddLink(itemname,
"HistogramLock");
91 TH1* h1 =
dynamic_cast<TH1*
> (
GetLinked(
"Histogram",2));
101 HisnameLbl->setText(
"");
103 PropertyBox->item(
HISTITLE)->setText(
"Title");
104 PropertyBox->item(
HISCLASS)->setText(
"Class");
105 PropertyBox->item(
HISENTRIES)->setText(
"Entries");
106 PropertyBox->item(
HISX)->setText(
"Xrange");
107 PropertyBox->item(
HISXSTAT)->setText(
"Xstats");
108 PropertyBox->item(
HISY)->setText(
"Yrange");
109 PropertyBox->item(
HISYSTAT)->setText(
"Ystats");
110 PropertyBox->item(
HISZ)->setText(
"Title");
111 PropertyBox->item(
HISZSTAT)->setText(
"Zstats");
112 PropertyBox->item(
HISSIZE)->setText(
"Size");
114 PropertyBox->item(
HISTIME)->setText(now.AsSQLString());
133 if(hstate==0)
return;
135 PropertyBox->item(
HISTITLE)->setText(hstate->GetTitle());
137 str.Form(
"Entries:%.5g",hstate->
GetEntries());
138 PropertyBox->item(
HISENTRIES)->setText(str.Data());
140 PropertyBox->item(
HISX)->setText(str.Data());
142 PropertyBox->item(
HISXSTAT)->setText(str.Data());
144 PropertyBox->item(
HISY)->setText(
"-");
145 PropertyBox->item(
HISYSTAT)->setText(
"-");
146 PropertyBox->item(
HISZ)->setText(
"-");
147 PropertyBox->item(
HISZSTAT)->setText(
"-");
152 PropertyBox->item(
HISY)->setText(str.Data());
154 PropertyBox->item(
HISYSTAT)->setText(str.Data());
158 PropertyBox->item(
HISZ)->setText(str.Data());
160 PropertyBox->item(
HISZSTAT)->setText(str.Data());
163 PropertyBox->item(
HISSIZE)->setText(str.Data());
176 textbuffer=
"Histogram ";
177 textbuffer+=HisnameLbl->text();
178 textbuffer+=
" Status: \n ";
179 textbuffer+=
"Title: ";
180 textbuffer+=PropertyBox->item(
HISTITLE)->text();
181 textbuffer+=
" Class: ";
182 textbuffer+=PropertyBox->item(
HISCLASS)->text();
184 textbuffer+=PropertyBox->item(
HISENTRIES)->text();
186 textbuffer+=PropertyBox->item(
HISX)->text();
188 textbuffer+=PropertyBox->item(
HISXSTAT)->text();
190 textbuffer+=PropertyBox->item(
HISY)->text();
192 textbuffer+=PropertyBox->item(
HISYSTAT)->text();
194 textbuffer+=PropertyBox->item(
HISZ)->text();
196 textbuffer+=PropertyBox->item(
HISZSTAT)->text();
198 textbuffer+=PropertyBox->item(
HISSIZE)->text();
199 textbuffer+=
" Status received at: ";
200 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()