27 setObjectName(
"Go4CreateNewCondition");
29 setAcceptDrops(
false);
30 CondName->setText(
"new_cond");
31 ClassnameCombo->setCurrentIndex(0);
32 ArraySizeSpin->setValue(1);
37 QByteArray ba = CondName->text().toLatin1();
39 if (ba.length()==0)
return 0;
41 const char* cname = ba.constData();
42 int arrsize = ArraySizeSpin->value();
43 int ctype = ClassnameCombo->currentIndex();
47 if (arrsize>1 && ctype!=3) {
51 for (
int n=0;n<arrsize;n++) {
53 Double_t xx[5] = {0, 100, 100, 0, 0};
54 Double_t yy[5] = {0, 0, 100, 100, 0};
55 for(
int indx=0;indx<5;indx++) {
64 for (
int n=0;n<arrsize;n++) {
66 if (wcond==0)
continue;
91 Double_t xx[5] = {0, 100, 100, 0, 0};
92 Double_t yy[5] = {0, 0, 100, 100, 0};
TGo4Condition * MakeCondition()
void SetEllipse(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, Int_t npoints=0)
virtual void SetValues(Double_t *x, Double_t *y, Int_t len)
virtual void SetValues(Double_t low1, Double_t up1)
TGo4Condition * At(Int_t i)
TGo4CreateNewCondition(QWidget *parent=0)