87 Fatal(
"Constructor",
"Class parameter should not be null");
116 TString hname =
gEnv->GetValue(
"Browser.Name",
"TRootBrowserLite");
118 Bool_t isweb =
gROOT->IsWebDisplay() || (hname ==
"ROOT::RWebBrowserImp");
123 if (!
gROOT->IsBatch() || (isweb && !
gROOT->IsWebDisplayBatch()))
126 Warning(
"TBrowser",
"The ROOT browser cannot run in batch mode");
231 const char *objname,
const char *title,
Option_t *opt)
250 const char *objname,
const char *title,
265 const char *objname,
const char *title,
292 gROOT->GetListOfBrowsers()->Remove(
this);
324 if (!obj || !cl)
return;
339 fImp->AddCheckBox(obj, check);
349 fImp->CheckObjectItem(obj, check);
359 fImp->RemoveCheckBox(obj);
374 gROOT->GetListOfBrowsers()->Add(
this);
402 fImp->ExecuteDefaultAction(obj);
411 fImp->RecursiveRemove(obj);
R__EXTERN TApplication * gApplication
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
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
externTVirtualMutex * gROOTMutex
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
static void CreateApplication()
Static function used to create a default application environment.
static void NeedGraphicsLibs()
Static method.
ABC describing GUI independent browser implementation protocol.
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
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.
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 * 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.
const char * GetName() const override
Returns name of object.
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.
TObject()
TObject constructor.
@ kCanDelete
if object in a list can be deleted
@ kMustCleanup
if object destructor must call RecursiveRemove()
void Reset()
Reset the timer.
TTimer(const TTimer &)=delete