34#if defined(__GNUC__) && (__GNUC__ >= 5 || (__GNUC__ >= 4 && ((__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ >= 1) || (__GNUC_MINOR__ >= 3)))) && !__INTEL_COMPILER
35#pragma GCC diagnostic ignored "-Wstrict-aliasing"
154 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
155 "(TMethod *)0x%lx,\"\");",
158 gROOT->ProcessLine(cmd);
166 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
167 "(TMethod *)0x%lx,(TObject*)0x%lx);",
171 gROOT->ProcessLine(cmd);
194 cmd =
Form(
"%s((TObject*)0x%lx);",
197 gROOT->ProcessLine(cmd);
210 if (
object && toggle) {
213 gROOT->SetSelectedPrimitive(
object);
252 argTitle +=
" [default: ";
259 return argTitle.
Data();
269 if (
object && method)
271 else if (!
object && method)
276 return methodTitle.
Data();
287 const char* clname =
object->IsA()->GetContextMenuTitle();
289 clname =
object->ClassName();
292 popupTitle.
Form(
" %s ", clname);
294 popupTitle.
Form(
" %s::%s ", clname, object->
GetName());
296 if (popupTitle.
Length() > 60) {
303 return popupTitle.
Data();
314 gROOT->SetSelectedPrimitive(
object);
324 object->Execute((
char *) method->
GetName(), params);
326 char *cmd =
Form(
"%s(%s);", method->
GetName(),params);
327 gROOT->ProcessLine(cmd);
356 gROOT->SetSelectedPrimitive(
object);
366 object->Execute((
TMethod*)method, params);
372 if (!args.
IsNull()) args +=
",";
376 gROOT->ProcessLine(cmd);
R__EXTERN TGuiFactory * gGuiFactory
char * Form(const char *fmt,...)
Using a TBrowser one can browse all ROOT objects.
void Refresh()
Refresh browser contents.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Global functions class (global functions are obtained from CINT).
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Each ROOT method (see TMethod) has a linked list of its arguments.
const char * GetDefault() const
Get default value of method argument.
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();.
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Collectable string class.
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero.
TObject * GetObject() const
void SetObject(TObject *obj, Bool_t fixMustCleanupBit=kTRUE)
Set obj as the spy target.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
@ kNotDeleted
object has not been deleted
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void Clear()
Clear string without changing its capacity.
const char * Data() const
TString & Remove(Ssiz_t pos)
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
This class defines toggling facility for both - object's method or variables.
virtual void Toggle()
Toggles the Values and State of this object and connected data!
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
virtual TVirtualPad * GetPadSave() const =0
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
static constexpr double s