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);
virtual const char * GetName() const
Returns name of object.
Collectable string class.
void Add(const char *argname, const char *value, const char *type)
Add widgets for arguments.
void closeEvent(QCloseEvent *ce)
Handle close event.
QList< QLineEdit * > fList
TQRootDialog(const TQRootDialog &)
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();...
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.
virtual ~TQRootDialog()
dtor
static constexpr double s
Mother of all ROOT objects.
Each ROOT class (see TClass) has a linked list of methods.
virtual void AddLast(TObject *obj)
Add object in the next empty slot in the array.
void Popup()
Show the dialog.
decltype(auto) constexpr apply(F &&f, Tuple &&t)
void ExecuteMethod()
Execute ROOT methods.