TBrowser


class description - source file - inheritance tree

class TBrowser : public TNamed


    public:
TBrowser TBrowser(const char* name = Browser, const char* title = ROOT Object Browser) TBrowser TBrowser(const char* name, const char* title, UInt_t width, UInt_t height) TBrowser TBrowser(const char* name, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height) TBrowser TBrowser(const char* name, TObject* obj, const char* title = ROOT Object Browser) TBrowser TBrowser(const char* name, TObject* obj, const char* title, UInt_t width, UInt_t height) TBrowser TBrowser(const char* name, TObject* obj, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height) TBrowser TBrowser(TBrowser&) virtual void ~TBrowser() void Add(TObject* obj, const char* name = 0) TClass* Class() void Create(TObject* obj = 0) void ExecuteDefaultAction(TObject* obj) TBrowserImp* GetBrowserImp() const TContextMenu* GetContextMenu() Bool_t GetRefreshFlag() TObject* GetSelected() void Iconify() virtual TClass* IsA() const virtual void RecursiveRemove(TObject* obj) void Refresh() void SetRefreshFlag(Bool_t flag) void SetSelected(TObject* clickedObject) void Show() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
TBrowserImp* fImp Window system specific browser implementation TBrowserTimer* fTimer Browser's timer TObject* fLastSelectedObject The last TObject selected by user protected:
TContextMenu* fContextMenu Context menu pointer Bool_t fNeedRefresh True if the browser needs refresh

Class Description

                                                                      
 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....         
                                                                      
                         
                                                                      


TBrowser(const char *name, const char *title) : TNamed(name, title)
 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) : TNamed(name, title)
 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) : TNamed(name, title)
 Create a new browser with a name, title, position, width and height.

TBrowser(const char *name, TObject *obj, const char *title) : TNamed(name, title)
 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) : TNamed(name, title)
 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) : TNamed(name, title)
 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)
 Add object with name to browser. If name not set the objects GetName()
 is used.

void Create(TObject *obj)
 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/icons/root.mimes file.

TObject* GetSelected()
 return the last selected object

void RecursiveRemove(TObject *obj)
 Recursively remove obj from browser.

void Refresh()
 Refresh browser contents.

void SetSelected(TObject *clickedObject)
 assign the last selected object



Inline Functions


         TBrowserImp* GetBrowserImp() const
        TContextMenu* GetContextMenu()
               Bool_t GetRefreshFlag()
                 void SetRefreshFlag(Bool_t flag)
                 void Iconify()
                 void Show()
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
             TBrowser TBrowser(TBrowser&)


Author: Fons Rademakers 25/10/95
Last update: 2.23/02 06/09/99 18.32.12 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.