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"
155 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
156 "(TMethod *)0x%lx,\"\");",
159 gROOT->ProcessLine(cmd);
167 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
168 "(TMethod *)0x%lx,(TObject*)0x%lx);",
172 gROOT->ProcessLine(cmd);
188 function->GetNargs() > 1) {
195 cmd =
Form(
"%s((TObject*)0x%lx);",
198 gROOT->ProcessLine(cmd);
211 if (
object && toggle) {
214 gROOT->SetSelectedPrimitive(
object);
253 argTitle +=
" [default: ";
260 return argTitle.
Data();
270 if (
object && method)
272 else if (!
object && method)
277 return methodTitle.
Data();
288 const char* clname =
object->IsA()->GetContextMenuTitle();
290 clname =
object->ClassName();
293 popupTitle.
Form(
" %s ", clname);
295 popupTitle.
Form(
" %s::%s ", clname,
object->GetName());
297 if (popupTitle.
Length() > 60) {
304 return popupTitle.
Data();
325 gROOT->SetSelectedPrimitive(
object);
335 object->Execute((
char *) method->
GetName(), params);
337 char *cmd =
Form(
"%s(%s);", method->
GetName(),params);
338 gROOT->ProcessLine(cmd);
367 gROOT->SetSelectedPrimitive(
object);
377 object->Execute((
TMethod*)method, params);
383 if (!args.
IsNull()) args +=
",";
387 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.
@ kNotDeleted
object has not been deleted
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