100 if (
gROOT->IsBatch()) {
101 Warning(
"TBrowser",
"The ROOT browser cannot run in batch mode");
115 :
TNamed(
name, title), fLastSelectedObject(0), fImp(extimp), fTimer(0),
116 fContextMenu(0), fNeedRefresh(
kFALSE)
136 :
TNamed(
name, title), fLastSelectedObject(0), fImp(extimp), fTimer(0), fContextMenu(0),
150 :
TNamed(
name, title), fLastSelectedObject(0), fImp(extimp), fTimer(0), fContextMenu(0),
163 :
TNamed(
name, title), fLastSelectedObject(0), fImp(0), fTimer(0), fContextMenu(0),
181 :
TNamed(
name, title), fLastSelectedObject(0), fTimer(0), fContextMenu(0),
196 :
TNamed(
name, title), fLastSelectedObject(0), fTimer(0), fContextMenu(0),
209 const char *objname,
const char *title,
Option_t *opt)
210 :
TNamed(
name, title), fLastSelectedObject(0), fTimer(0), fContextMenu(0),
228 const char *objname,
const char *title,
230 :
TNamed(
name, title), fLastSelectedObject(0), fTimer(0), fContextMenu(0),
243 const char *objname,
const char *title,
246 :
TNamed(
name, title), fLastSelectedObject(0), fTimer(0), fContextMenu(0),
270 gROOT->GetListOfBrowsers()->Remove(
this);
302 if (!obj || !cl)
return;
352 gROOT->GetListOfBrowsers()->Add(
this);
433 :
TNamed(brname, cl ? cl->GetName() :
""), fObj(obj),
fClass(cl)
435 if (cl==0)
Fatal(
"Constructor",
"Class parameter should not be null");
R__EXTERN TApplication * gApplication
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TGuiFactory * gGuiFactory
R__EXTERN TVirtualMutex * gROOTMutex
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
void InitializeGraphics()
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)
Constructor.
TClass * fClass
! pointer to class of the foreign object
void Browse(TBrowser *b)
Browse the content of the underlying object.
void * fObj
! pointer to the foreign object
Bool_t IsFolder() const
Return kTRUE if the object is a folder (contains browsable objects).
Called whenever timer times out.
TBrowserTimer(TBrowser *b, Long_t ms=1000)
Bool_t Notify()
Notify when timer times out.
Using a TBrowser one can browse all ROOT objects.
virtual void Create(TObject *obj=0)
Create the browser, called by the ctors.
void CheckObjectItem(TObject *obj, Bool_t check=kFALSE)
Change status of checkbox for this item.
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
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.
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....
virtual void RecursiveRemove(TObject *obj)
Recursively remove obj from browser.
void AddCheckBox(TObject *obj, Bool_t check=kFALSE)
Add checkbox for this item.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual void Browse(TBrowser *b)
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.
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.
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.