15 #include "TObjArray.h"
16 #include "TObjString.h"
18 #include <QApplication>
32 TreeDrawBtn->setEnabled(
false);
33 setAcceptDrops(
false);
34 setToolTip(
"Tree is not selected. Drag and drop leaf item from browser to X, Y or Z field");
45 TreeDrawBtn->setEnabled(
false);
47 setToolTip(
"Tree is not selected. Drag and drop leaf item from browser to X, Y or Z field");
53 XFieldEdt->setText(itemname);
79 QString value = edt->text();
98 setToolTip(QString(
"Selected tree: ") +
fxTreeName);
100 TreeDrawBtn->setEnabled(
true);
101 AddLink(treename.Data(),
"Tree");
112 TObjArray* it=leafname.Tokenize(
"[");
113 leafname=((TObjString *)it->First())->GetName();
114 for(Int_t i=1;i<it->GetEntriesFast();i++) leafname.Append(
"[]");
115 edt->setText(leafname.Data());
127 if(XFieldEdt->text().isEmpty()) {
135 QApplication::setOverrideCursor(Qt::WaitCursor);
140 XFieldEdt->text().toLatin1().constData(),
141 YFieldEdt->text().toLatin1().constData(),
142 ZFieldEdt->text().toLatin1().constData(),
143 CutEdt->text().toLatin1().constData(),
144 HistNameEdt->text().toLatin1().constData(),
147 if (createdh.Length()>0) {
148 HistNameEdt->setText(createdh.Data());
151 if (
WhereItemDrawn(HistNameEdt->text().toLatin1().constData())==0)
157 QApplication::restoreOverrideCursor();
173 if ((cl!=0) && cl->InheritsFrom(TH1::Class()))
174 HistNameEdt->setText(itemname);
virtual void NewHistBtn_clicked()
virtual void WorkWithLeaf(const char *itemname)
virtual void XFieldEdt_dropped()
Bool_t DefineLeafName(const char *itemname, const char *treename, TString &leafname)
virtual void YFieldEdt_dropped()
void PerformTreeDraw(const char *treename, const char *Xexp, const char *Yexp, const char *Zexp, const char *cutcond, const char *hname, TString &createdhistoname)
virtual void TreeClearBtn_clicked()
Int_t RequestBrowserObject(const char *name, Int_t wait_time=0)
TGo4TreeViewer(QWidget *parent=0, const char *name=0)
virtual void TreeDrawBtn_clicked()
virtual void requestedObjectCreated(const char *itemname, TClass *cl)
virtual void ProcessDropEvent(QGo4LineEdit *edt, bool caninit)
virtual void ZFieldEdt_dropped()
Bool_t DefineTreeName(const char *itemname, TString &treename)
virtual void ResetWidget()
virtual void cutEdit_dropped()