53 bOk->setText(
"Apply");
54 QObject::connect(
bOk, &QPushButton::clicked,
this, &QRootMethodDialog::accept);
59 QObject::connect(
bCancel, &QPushButton::clicked,
this, &QRootMethodDialog::reject);
65 QSizePolicy::Expanding));
80 le->setGeometry(10,10, 130, 30);
93 if ((
n<0) || (
n>=
fArgs.size()))
return QString(
"");
103 if (!
menu || !
object || !func)
121 if (
type.CompareTo(
"enum") != 0)
122 std::cout <<
"*** Warning in Dialog(): data type is not basic type, assuming (int)\n";
132 if (
m &&
m->GetterMethod()) {
134 m->GetterMethod()->Init(
object->IsA(),
m->GetterMethod()->GetMethodName(),
"");
164 if ((opt =
m->GetOptions()) !=
nullptr) {
189 if (exec() != QDialog::Accepted)
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
QVector< QLineEdit * > fArgs
QString getArg(int n)
Get argument value.
void addArg(const char *argname, const char *value, const char *type)
Add argument.
void methodDialog(TContextMenu *menu, TObject *object, TFunction *func)
Run method dialog.
QRootMethodDialog()
Create method dialog.
All ROOT classes may have RTTI (run time type identification) support added.
Basic data type descriptor (datatype information is obtained from CINT).
Global functions class (global functions are obtained from CINT).
TList * GetListOfMethodArgs()
Return list containing the TMethodArgs of a TFunction.
Each ROOT method (see TMethod) has a linked list of its arguments.
Collectable string class.
Mother of all ROOT objects.
virtual void Execute(const char *method, const char *params, Int_t *error=nullptr)
Execute method on this object with the given parameter string, e.g.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const