39 QPushButton *
apply =
new QPushButton(
"Apply");
40 QPushButton *cancel =
new QPushButton(
"Cancel");
41 QHBoxLayout *hbox =
new QHBoxLayout(
fParent);
43 hbox->addWidget(
apply);
44 hbox->addWidget(cancel);
49 connect(cancel,SIGNAL(clicked()),
fParent, SLOT(
close()));
72 for (
auto str :
fList)
82 int i = 0, value[2] = {0, 0};
83 for (
auto str :
fList)
84 value[i++] = atoi(str->text().toAscii().data());
85 fParent->resize(value[0], value[1]);
93 gROOT->SetSelectedPad(psave);
94 gROOT->GetSelectedPad()->Modified();
95 gROOT->GetSelectedPad()->Update();
98 gROOT->GetSelectedPad()->Update();
109 new QLabel(argname,
this);
110 QLineEdit* lineEdit =
new QLineEdit(
this);
116 fList.append(lineEdit);
Each ROOT class (see TClass) has a linked list of methods.
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();.
virtual const char * GetName() const
Returns name of object.
virtual void AddLast(TObject *obj)
Add object in the next empty slot in the array.
Collectable string class.
Mother of all ROOT objects.
virtual void Execute(const char *method, const char *params, Int_t *error=0)
Execute method on this object with the given parameter string, e.g.
QList< QLineEdit * > fList
void ExecuteMethod()
Execute ROOT methods.
TQRootDialog(const TQRootDialog &)
void Add(const char *argname, const char *value, const char *type)
Add widgets for arguments.
void Popup()
Show the dialog.
void closeEvent(QCloseEvent *ce)
Handle close event.
virtual ~TQRootDialog()
dtor
TVirtualPad is an abstract base class for the Pad and Canvas classes.
static constexpr double s
constexpr decltype(auto) apply(F &&f, Tuple &&t)