87 Fatal(
"Constructor",
"Class parameter should not be null");
121 if (!
gROOT->IsBatch() || (isweb && !
gROOT->IsWebDisplayBatch()))
124 Warning(
"TBrowser",
"The ROOT browser cannot run in batch mode");
229 const char *objname,
const char *title,
Option_t *opt)
248 const char *objname,
const char *title,
263 const char *objname,
const char *title,
290 gROOT->GetListOfBrowsers()->Remove(
this);
322 if (!obj || !cl)
return;
372 gROOT->GetListOfBrowsers()->Add(
this);
R__EXTERN TApplication * gApplication
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN TGuiFactory * gGuiFactory
R__EXTERN TVirtualMutex * gROOTMutex
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
void InitializeGraphics(Bool_t only_web=kFALSE)
Initialize the graphics environment.
static void CreateApplication()
Static function used to create a default application environment.
static void NeedGraphicsLibs()
Static method.
ABC describing GUI independent browser implementation protocol.
virtual void ExecuteDefaultAction(TObject *)
virtual void RemoveCheckBox(TObject *)
virtual void AddCheckBox(TObject *, Bool_t=kFALSE)
virtual void BrowseObj(TObject *)
virtual void RecursiveRemove(TObject *)
virtual void Refresh(Bool_t=kFALSE)
virtual void CheckObjectItem(TObject *, Bool_t=kFALSE)
virtual void Add(TObject *, const char *, Int_t)
This class is designed to wrap a Foreign object in order to inject it into the Browse sub-system.
TBrowserObject(void *obj, TClass *cl, const char *brname)
TClass * IsA() const override
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
TClass * fClass
! pointer to class of the foreign object
void * fObj
! pointer to the foreign object
void Browse(TBrowser *b) override
Browse object. May be overridden for another default action.
Called whenever timer times out.
Bool_t Notify() override
This method must be overridden to handle object notification (the base implementation is no-op).
TBrowserTimer(TBrowser *b, Long_t ms=1000)
Using a TBrowser one can browse all ROOT objects.
void RecursiveRemove(TObject *obj) override
Recursively remove obj from browser.
void CheckObjectItem(TObject *obj, Bool_t check=kFALSE)
Change status of checkbox for this item.
TObject * fLastSelectedObject
void SetRefreshFlag(Bool_t flag)
virtual ~TBrowser()
Delete the browser.
TContextMenu * fContextMenu
Browser's timer.
virtual void Destructor()
Actual browser destructor.
void RemoveCheckBox(TObject *obj)
Remove checkbox for this item.
TBrowserTimer * fTimer
Window system specific browser implementation.
virtual void Create(TObject *obj=nullptr)
Create the browser, called by the ctors.
void Refresh()
Refresh browser contents.
TBrowser(const TBrowser &)=delete
The last TObject selected by user.
void SetSelected(TObject *clickedObject)
Assign the last selected object.
Bool_t fNeedRefresh
Context menu pointer.
Bool_t GetRefreshFlag() const
void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root....
void AddCheckBox(TObject *obj, Bool_t check=kFALSE)
Add checkbox for this item.
void Add(TObject *obj, const char *name=nullptr, Int_t check=-1)
Add object with name to browser.
TClass instances represent classes, structs and namespaces in the ROOT type system.
void Browse(TBrowser *b) override
This method is called by a browser to get the class information.
void * DynamicCast(const TClass *base, void *obj, Bool_t up=kTRUE)
Cast obj of this class type up to baseclass cl if up is true.
static ENewType IsCallingNew()
Static method returning the defConstructor flag passed to TClass::New().
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual TBrowserImp * CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt="")
Create a batch version of TBrowserImp.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
@ kCanDelete
if object in a list can be deleted
@ kMustCleanup
if object destructor must call RecursiveRemove()
Float_t GetScreenFactor() const
virtual void AddTimer(TTimer *t)
Add timer to list of system timers.
Handles synchronous and a-synchronous timer events.
void Reset()
Reset the timer.