32 #if defined(__GNUC__) && __GNUC__ >= 4 && ((__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ >= 1) || (__GNUC_MINOR__ >= 3)) && !__INTEL_COMPILER
33 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
66 fSelectedMenuItem = 0;
153 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
154 "(TMethod *)0x%lx,\"\");",
157 gROOT->ProcessLine(cmd);
165 char *cmd =
Form(
"((TContextMenu *)0x%lx)->Execute((TObject *)0x%lx,"
166 "(TMethod *)0x%lx,(TObject*)0x%lx);",
170 gROOT->ProcessLine(cmd);
193 cmd =
Form(
"%s((TObject*)0x%lx);",
196 gROOT->ProcessLine(cmd);
209 if (
object && toggle) {
212 gROOT->SetSelectedPrimitive(
object);
222 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
223 fSelectedCanvas->GetPadSave()->Modified();
225 fSelectedPad->Modified();
231 if (fSelectedCanvas) {
232 fSelectedCanvas->Update();
233 if (fSelectedCanvas->GetPadSave())
234 fSelectedCanvas->GetPadSave()->Update();
251 argTitle +=
" [default: ";
258 return argTitle.
Data();
268 if (
object && method)
270 else if (!
object && method)
275 return methodTitle.
Data();
286 const char* clname =
object->IsA()->GetContextMenuTitle();
288 clname =
object->ClassName();
290 if (!*(object->
GetName()) || !strcmp(object->
GetName(),
object->ClassName())) {
291 popupTitle.
Form(
" %s ", clname);
293 popupTitle.
Form(
" %s::%s ", clname, object->
GetName());
295 if (popupTitle.
Length() > 60) {
302 return popupTitle.
Data();
313 gROOT->SetSelectedPrimitive(
object);
323 object->Execute((
char *) method->
GetName(), params);
325 char *cmd =
Form(
"%s(%s);", method->
GetName(),params);
326 gROOT->ProcessLine(cmd);
328 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
329 fSelectedCanvas->GetPadSave()->Modified();
331 fSelectedPad->Modified();
337 if (fSelectedCanvas) {
338 fSelectedCanvas->Update();
339 if (fSelectedCanvas->GetPadSave())
340 fSelectedCanvas->GetPadSave()->Update();
355 gROOT->SetSelectedPrimitive(
object);
365 object->Execute((
TMethod*)method, params);
371 if (!args.
IsNull()) args +=
",";
375 gROOT->ProcessLine(cmd);
377 if (fSelectedCanvas && fSelectedCanvas->GetPadSave())
378 fSelectedCanvas->GetPadSave()->Modified();
380 fSelectedPad->Modified();
386 if (fSelectedCanvas) {
387 fSelectedCanvas->Update();
388 if (fSelectedCanvas->GetPadSave())
389 fSelectedCanvas->GetPadSave()->Update();
virtual const char * GetTitle() const
Returns title of object.
This class defines toggling facility for both - object's method or variables.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Collectable string class.
TObject * GetObject() 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
const char * Data() const
virtual void Toggle()
Toggles the Values and State of this object and connected data!
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.
const char * GetDefault() const
Get default value of method argument.
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();...
void function(const char *name_, T fun, const char *docstring=0)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t TestBit(UInt_t f) const
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
TString & Remove(Ssiz_t pos)
virtual Int_t GetSize() const
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
Global functions class (global functions are obtained from CINT).
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Each ROOT class (see TClass) has a linked list of methods.
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero...
void Refresh()
Refresh browser contents.