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" 68 fSelectedMenuItem = 0;
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);
224 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
225 fSelectedCanvas->GetPadSave()->Modified();
227 fSelectedPad->Modified();
233 if (fSelectedCanvas) {
234 fSelectedCanvas->Update();
235 if (fSelectedCanvas->GetPadSave())
236 fSelectedCanvas->GetPadSave()->Update();
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();
292 if (!*(object->
GetName()) || !strcmp(object->
GetName(),
object->ClassName())) {
293 popupTitle.
Form(
" %s ", clname);
295 popupTitle.
Form(
" %s::%s ", clname, object->
GetName());
297 if (popupTitle.
Length() > 60) {
304 return popupTitle.
Data();
315 gROOT->SetSelectedPrimitive(
object);
325 object->Execute((
char *) method->
GetName(), params);
327 char *cmd =
Form(
"%s(%s);", method->
GetName(),params);
328 gROOT->ProcessLine(cmd);
330 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
331 fSelectedCanvas->GetPadSave()->Modified();
333 fSelectedPad->Modified();
339 if (fSelectedCanvas) {
340 fSelectedCanvas->Update();
341 if (fSelectedCanvas->GetPadSave())
342 fSelectedCanvas->GetPadSave()->Update();
357 gROOT->SetSelectedPrimitive(
object);
367 object->Execute((
TMethod*)method, params);
373 if (!args.
IsNull()) args +=
",";
377 gROOT->ProcessLine(cmd);
379 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
380 fSelectedCanvas->GetPadSave()->Modified();
382 fSelectedPad->Modified();
388 if (fSelectedCanvas) {
389 fSelectedCanvas->Update();
390 if (fSelectedCanvas->GetPadSave())
391 fSelectedCanvas->GetPadSave()->Update();
virtual const char * GetName() const
Returns name of object.
object has not been deleted
This class defines toggling facility for both - object's method or variables.
Collectable string class.
Bool_t TestBit(UInt_t f) const
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
Each ROOT method (see TMethod) has a linked list of its arguments.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
virtual void Toggle()
Toggles the Values and State of this object and connected data!
virtual const char * ClassName() const
Returns name of class to which the object belongs.
The TNamed class is the base class for all named ROOT classes.
void SetObject(TObject *obj, Bool_t fixMustCleanupBit=kTRUE)
Set obj as the spy target.
void Clear()
Clear string without changing its capacity.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
R__EXTERN TGuiFactory * gGuiFactory
Using a TBrowser one can browse all ROOT objects.
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();...
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
char * Form(const char *fmt,...)
TString & Remove(Ssiz_t pos)
Mother of all ROOT objects.
Global functions class (global functions are obtained from CINT).
const char * GetDefault() const
Get default value of method argument.
Each ROOT class (see TClass) has a linked list of methods.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero...
TObject * GetObject() const
void Refresh()
Refresh browser contents.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const