TRootBrowser


class description - source file - inheritance tree

class TRootBrowser : public TGMainFrame, public TBrowserImp

    private:
void Chdir(TGListTreeItem* item) void CreateBrowser(char* name) void DisplayDirectory() void DisplayTotal(Int_t total, Int_t selected) void IconBoxAction(TObject* obj) void ListTreeHighlight(TGListTreeItem* item) void SetDefaults() void SetSortMode(Int_t new_mode) void SetViewMode(Int_t new_mode, Bool_t force = kFALSE) public:
TRootBrowser TRootBrowser(TBrowser* b, char* title, UInt_t width, UInt_t height) TRootBrowser TRootBrowser(TBrowser* b, char* title, Int_t x, Int_t y, UInt_t width, UInt_t height) TRootBrowser TRootBrowser(TRootBrowser&) virtual void ~TRootBrowser() virtual void Add(TObject* obj, char* name = 0) void AddToBox(TObject* obj, char* name) void AddToTree(TObject* obj, char* name) virtual void BrowseObj(TObject* obj) TClass* Class() virtual void CloseWindow() virtual void ExecuteDefaultAction(TObject* obj) virtual void Iconify() virtual TClass* IsA() virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) virtual void RecursiveRemove(TObject* obj) virtual void Refresh(Bool_t force = kFALSE) void ResizeBrowser() virtual void Show() virtual void ShowMembers(TMemberInspector& insp, char* parent) void ShowStatusBar(Bool_t show = kTRUE) void ShowToolBar(Bool_t show = kTRUE) virtual void Streamer(TBuffer& b)

Data Members

private:
TGHorizontal3DLine* fToolBarSep TGToolBar* fToolBar TGFSComboBox* fFSComboBox TGStatusBar* fStatusBar TGVerticalFrame* fV1 TGVerticalFrame* fV2 TGLabel* fLbl1 TGLabel* fLbl2 TGHorizontalFrame* fHf TGCompositeFrame* fTreeHdr TGCompositeFrame* fListHdr TGListView* fListView TRootIconBox* fIconBox TGCanvas* fTreeView TGListTree* fLt TGLayoutHints* fMenuBarLayout TGLayoutHints* fMenuBarItemLayout TGLayoutHints* fMenuBarHelpLayout TGLayoutHints* fComboLayout TGLayoutHints* fBarLayout TGMenuBar* fMenuBar TGPopupMenu* fFileMenu TGPopupMenu* fViewMenu TGPopupMenu* fOptionMenu TGPopupMenu* fHelpMenu TGPopupMenu* fSortMenu TList* fWidgets char fCurrentDir[1024] Cursor_t fWaitCursor busy cursor TGListTreeItem* fListLevel current TGListTree level Bool_t fTreeLock true when we want to lock TGListTree Int_t fViewMode current IconBox view mode Int_t fSortMode current IconBox sort mode

Class Description

                                                                      
 TRootBrowser                                                         
                                                                      
 This class creates a ROOT object browser (looking like Windows       
 Explorer). The widgets used are the new native ROOT GUI widgets.     
                                                                      


TRootBrowser(TBrowser *b, const char *name, UInt_t width, UInt_t height) : TGMainFrame(gClient->GetRoot(), width, height), TBrowserImp(b)
 Create browser with a specified width and height.

TRootBrowser(TBrowser *b, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height) : TGMainFrame(gClient->GetRoot(), width, height), TBrowserImp(b)
 Create browser with a specified width and height and at position x, y.

~TRootBrowser()
 Browser destructor.

void CreateBrowser(const char *name)
 Create the actual canvas.

void Add(TObject *obj, const char *name)
 Add items to the browser. This function has to be called
 by the Browse() member function of objects when they are
 called by a browser.

void AddToBox(TObject *obj, const char *name)
 Add items to the iconbox of the browser.

void AddToTree(TObject *obj, const char *name)
 Add items to the current TGListTree of the browser.

void BrowseObj(TObject *obj)
 Browse object. This, in turn, will trigger the calling of
 TRootBrowser::Add() which will fill the IconBox and the tree.

void CloseWindow()
 In case window is closed via WM we get here.
 Forward message to central message handler as button event.

void DisplayTotal(Int_t total, Int_t selected)
 Display in statusbar total number of objects and number of
 selected objects in IconBox.

void DisplayDirectory()
 Display current directory in second label, fLbl2.

void ExecuteDefaultAction(TObject *obj)
 Execute default action for selected object (action is specified
 in the $HOME/.root.mimes or $ROOTSYS/icons/root.mimes file.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Handle menu and other command generated by the user.

void Chdir(TGListTreeItem *item)
 Make object associated with item the current directory.

void ListTreeHighlight(TGListTreeItem *item)
 Open tree item and list in iconbox its contents.

void IconBoxAction(TObject *obj)
 Default action when double clicking on icon.

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

void Refresh(Bool_t force)
 Refresh the browser contents.

void ShowToolBar(Bool_t show)
 Show or hide toolbar.

void ShowStatusBar(Bool_t show)
 Show or hide statusbar.

void SetDefaults()
 Set defaults depending on settings in the user's .rootrc.

void SetViewMode(Int_t new_mode, Bool_t force)
 Set iconbox's view mode and update menu and toolbar buttons accordingly.

void SetSortMode(Int_t new_mode)
 Set iconbox's sort mode and update menu radio buttons accordingly.



Inline Functions


                void Iconify()
                void ResizeBrowser()
                void Show()
             TClass* Class()
             TClass* IsA()
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
        TRootBrowser TRootBrowser(TRootBrowser&)


Author: Fons Rademakers 27/02/98
Last update: 2.00/13 27/10/98 18.49.15 by Fons Rademakers
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.