ROOT logo
ROOT » CORE » BASE » TBrowser

class TBrowser: public TNamed


Using a TBrowser one can browse all ROOT objects. It shows in a list
on the left side of the window all browsable ROOT classes. Selecting
one of the classes displays, in the iconbox on the right side, all
objects in the class. Selecting one of the objects in the iconbox,
will place all browsable objects in a new list and draws the
contents of the selected class in the iconbox. And so on....

                       


Function Members (Methods)

public:
TBrowser(const char* name = "Browser", const char* title = "ROOT Object Browser", TBrowserImp* extimp = 0, Option_t* opt = "")
TBrowser(const char* name, TObject* obj, const char* title = "ROOT Object Browser", Option_t* opt = "")
TBrowser(const char* name, const char* title, UInt_t width, UInt_t height, TBrowserImp* extimp = 0, Option_t* opt = "")
TBrowser(const char* name, TObject* obj, const char* title, UInt_t width, UInt_t height, Option_t* opt = "")
TBrowser(const char* name, void* obj, TClass* cl, const char* objname = "", const char* title = "ROOT Foreign Browser", Option_t* opt = "")
TBrowser(const char* name, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height, TBrowserImp* extimp = 0, Option_t* opt = "")
TBrowser(const char* name, TObject* obj, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t* opt = "")
TBrowser(const char* name, void* obj, TClass* cl, const char* objname, const char* title, UInt_t width, UInt_t height, Option_t* opt = "")
TBrowser(const char* name, void* obj, TClass* cl, const char* objname, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t* opt = "")
virtual~TBrowser()
voidTObject::AbstractMethod(const char* method) const
voidAdd(TObject* obj, const char* name = 0, Int_t check = -1)
voidAdd(void* obj, TClass* cl, const char* name = 0, Int_t check = -1)
voidAddCheckBox(TObject* obj, Bool_t check = kFALSE)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
voidCheckObjectItem(TObject* obj, Bool_t check = kFALSE)
static TClass*Class()
static TClass*TNamed::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
virtual voidCreate(TObject* obj = 0)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
Long_tExecPlugin(const char* name = 0, const char* fname = 0, const char* cmd = 0, Int_t pos = 1, Int_t subpos = -1)
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
voidExecuteDefaultAction(TObject* obj)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TBrowserImp*GetBrowserImp() const
TContextMenu*GetContextMenu() const
virtual Option_t*GetDrawOption() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Bool_tGetRefreshFlag() const
TObject*GetSelected() const
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual ULong_tTObject::Hash() const
voidIconify()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidRecursiveRemove(TObject* obj)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidRefresh()
voidRemoveCheckBox(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBrowserImp(TBrowserImp* i)
virtual voidSetDrawOption(Option_t* option = "")
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRefreshFlag(Bool_t flag)
voidSetSelected(TObject* clickedObject)
voidSetStatusText(const char* txt, Int_t col)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidShow()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTNamed::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
voidStartEmbedding(Int_t pos, Int_t subpos)
voidStopEmbedding(const char* name = "")
virtual voidStreamer(TBuffer& b)
virtual voidTNamed::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTNamed::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
TBrowser(const TBrowser&)
TBrowser&operator=(const TBrowser&)

Data Members

protected:
TContextMenu*fContextMenu!Context menu pointer
TBrowserImp*fImp!Window system specific browser implementation
TStringTNamed::fNameobject identifier
Bool_tfNeedRefreshTrue if the browser needs refresh
TBrowserTimer*fTimer!Browser's timer
TStringTNamed::fTitleobject title
private:
TObject*fLastSelectedObject!The last TObject selected by user

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TBrowser(const char *name, const char *title, TBrowserImp *extimp, Option_t *opt)
 Create a new browser with a name, title. Width and height are by
 default set to 640x400 and (optionally) adjusted by the screen factor
 (depending on Rint.Canvas.UseScreenFactor to be true or false, default
 is true).
TBrowser(const char *name, const char *title, UInt_t width, UInt_t height, TBrowserImp *extimp, Option_t *opt)
 Create a new browser with a name, title, width and height.
TBrowser(const char *name, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, TBrowserImp *extimp, Option_t *opt)
 Create a new browser with a name, title, position, width and height.
TBrowser(const char *name, TObject *obj, const char *title, Option_t *opt)
 Create a new browser with a name, title, width and height for TObject *obj.
TBrowser(const char *name, TObject *obj, const char *title, UInt_t width, UInt_t height, Option_t *opt)
 Create a new browser with a name, title, width and height for TObject *obj.
TBrowser(const char *name, TObject *obj, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt)
 Create a new browser with a name, title, width and height for TObject *obj.
TBrowser(const char *name, void *obj, TClass *cl, const char *objname, const char *title, Option_t *opt)
 Create a new browser with a name, title, width and height for TObject *obj.
TBrowser(const char *name, void *obj, TClass *cl, const char *objname, const char *title, UInt_t width, UInt_t height, Option_t *opt)
 Create a new browser with a name, title, width and height for TObject *obj.
TBrowser(const char* name, void* obj, TClass* cl, const char* objname, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t* opt = "")
 Create a new browser with a name, title, width and height for TObject *obj.
~TBrowser()
 Delete the browser.
void Add(TObject* obj, const char* name = 0, Int_t check = -1)
 Add object with name to browser. If name not set the objects GetName()
 is used. If check < 0 (default) no check box is drawn, if 0 then
 unchecked checkbox is added, if 1 checked checkbox is added.
void Add(void* obj, TClass* cl, const char* name = 0, Int_t check = -1)
 Add foreign object with name to browser.
 'cl' is the type use to store the value of obj.
 So literally the following pseudo code should be correct:
    `cl->GetName()` * ptr = (`cl->GetName()`*) obj;
 and the value of obj is not necessarily the start of the object.
 If check < 0 (default) no check box is drawn, if 0 then
 unchecked checkbox is added, if 1 checked checkbox is added.
void AddCheckBox(TObject* obj, Bool_t check = kFALSE)
 Add checkbox for this item.
void CheckObjectItem(TObject* obj, Bool_t check = kFALSE)
 Change status of checkbox for this item.
void RemoveCheckBox(TObject* obj)
 Remove checkbox for this item.
void Create(TObject* obj = 0)
 Create the browser, called by the ctors.
void ExecuteDefaultAction(TObject* obj)
 Execute default action for selected object (action is specified
 in the $HOME/.root.mimes or $ROOTSYS/etc/root.mimes file).
void RecursiveRemove(TObject* obj)
 Recursively remove obj from browser.
void Refresh()
 Refresh browser contents.
void SetSelected(TObject* clickedObject)
 Assign the last selected object.
TBrowser(const TBrowser& )
TBrowser& operator=(const TBrowser& )
TBrowserImp * GetBrowserImp() const
{ return fImp; }
void SetBrowserImp(TBrowserImp* i)
{ fImp = i; }
TContextMenu * GetContextMenu() const
{ return fContextMenu; }
Bool_t GetRefreshFlag() const
{ return fNeedRefresh; }
TObject * GetSelected() const
void SetRefreshFlag(Bool_t flag)
{ fNeedRefresh = flag; }
void Iconify()
{ fImp->Iconify(); }
void Show()
{ fImp->Show(); }
void SetDrawOption(Option_t* option = "")
{ fImp->SetDrawOption(option); }
Option_t * GetDrawOption() const
{ return fImp->GetDrawOption(); }
Long_t ExecPlugin(const char* name = 0, const char* fname = 0, const char* cmd = 0, Int_t pos = 1, Int_t subpos = -1)
void SetStatusText(const char* txt, Int_t col)
void StartEmbedding(Int_t pos, Int_t subpos)
void StopEmbedding(const char* name = "")
{ fImp->StopEmbedding(name); }