87 Fatal(
"Constructor",
"Class parameter should not be null");
115 TString hname =
gEnv->GetValue(
"Browser.Name",
"TRootBrowserLite");
117 Bool_t isweb =
gROOT->IsWebDisplay() || (hname ==
"ROOT::RWebBrowserImp");
122 if (!
gROOT->IsBatch() || (isweb && !
gROOT->IsWebDisplayBatch()))
125 Warning(
"TBrowser",
"The ROOT browser cannot run in batch mode");
230 const char *objname,
const char *title,
Option_t *opt)
249 const char *objname,
const char *title,
264 const char *objname,
const char *title,
291 gROOT->GetListOfBrowsers()->Remove(
this);
323 if (!obj || !cl)
return;
338 fImp->AddCheckBox(obj, check);
348 fImp->CheckObjectItem(obj, check);
358 fImp->RemoveCheckBox(obj);
373 gROOT->GetListOfBrowsers()->Add(
this);
407 fImp =
gGuiFactory->CreateBrowserImp(
this,
"ROOT Object Browser", w,
h,
"");
421 fImp->ExecuteDefaultAction(obj);
430 fImp->RecursiveRemove(obj);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
externTApplication * gApplication
externTGuiFactory * gGuiFactory
externTVirtualMutex * gROOTMutex
#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
~TBrowserObject() 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.
TBrowserImp * fImp
!Window system specific browser implementation
TObject * fLastSelectedObject
!The last TObject selected by user
virtual ~TBrowser()
Delete the browser.
TContextMenu * fContextMenu
!Context menu pointer
virtual void Destructor()
Actual browser destructor.
void RemoveCheckBox(TObject *obj)
Remove checkbox for this item.
TBrowserTimer * fTimer
!Browser's timer
virtual void Create(TObject *obj=nullptr)
Create the browser, called by the ctors.
void Refresh()
Refresh browser contents.
TBrowser(const TBrowser &)=delete
void SetSelected(TObject *clickedObject)
Assign the last selected object.
void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root....
void Draw(Option_t *option="") override
Draw browser again if it was closed before If browser exists - just call Show method.
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