12#ifndef ROOT_TGFileBrowser
13#define ROOT_TGFileBrowser
39 typedef std::list<TGListTreeItem*>
sLTI_t;
109 void GotoDir(
const char *path);
#define ClassDef(name, id)
ABC describing GUI independent browser implementation protocol.
Using a TBrowser one can browse all ROOT objects.
TGListTreeItem * fRootDir
Bool_t CheckFiltered(TGListTreeItem *item, Bool_t but=kFALSE)
Check if there is a filter active on the children of the list tree item.
TString DirName(TGListTreeItem *item)
returns the directory path
TGHorizontalFrame * fBotFrame
void GetObjPicture(const TGPicture **pic, TObject *obj)
Retrieve icons associated with class "name".
std::list< TGListTreeItem * > sLTI_t
void CreateBrowser()
Create the actual file browser.
virtual void Refresh(Bool_t force=kFALSE)
Refresh content of the list tree.
void AddKey(TGListTreeItem *itm, TObject *obj, const char *name=0)
display content of ROOT file
TGListTreeItem * fCurrentDir
Bool_t CheckSorted(TGListTreeItem *item, Bool_t but=kFALSE)
Check if the list tree item children are alphabetically sorted.
void Clicked(TGListTreeItem *item, Int_t btn, Int_t x, Int_t y)
Process mouse clicks in TGListTree.
void AddFSDirectory(const char *entry, const char *path=0, Option_t *opt="")
Add file system directory in the list tree.
void DoubleClicked(TGListTreeItem *item, Int_t btn)
Process double clicks in TGListTree.
void ApplyFilter(Int_t id)
Apply filter selected in combo box to the file tree view.
TGPictureButton * fFilterButton
void PadModified()
Slot used to switch to the tab containing the current pad/canvas (gPad) used e.g.
void GotoDir(const char *path)
Go to the directory "path" and open all the parent list tree items.
sLTI_t::reverse_iterator sLTI_ri
void ToggleSort()
Toggle the sort mode and set the "sort button" state accordingly.
TGListTreeItem * fListLevel
void AddRemoteFile(TObject *obj)
Add remote file in list tree.
void SetNewBrowser(TRootBrowser *b)
void GetFilePictures(const TGPicture **pic, Int_t file_type, Bool_t is_link, const char *name)
Determine the file picture for the given file type.
virtual void BrowseObj(TObject *obj)
Browse object.
virtual void RecursiveRemove(TObject *obj)
Recursively remove object.
const TGPicture * fCachedPic
void RequestFilter()
Open a dialog box asking for a string to be used as filter (regexp), and add an entry in the map of f...
TRootBrowser * GetNewBrowser() const
TContextMenu * fContextMenu
TRootBrowser * fNewBrowser
Option_t * GetDrawOption() const
returns drawing option
char * FormatFileInfo(const char *fname, Long64_t size, Long_t modtime)
Format file information to be displayed in the tooltip.
TString FullPathName(TGListTreeItem *item)
returns an absolute path
TGPictureButton * fSortButton
void Checked(TObject *obj, Bool_t check)
Emits signal when double clicking on icon.
const TGPicture * fFileIcon
virtual ~TGFileBrowser()
Destructor.
TGPictureButton * fRefreshButton
void CheckRemote(TGListTreeItem *item)
Check if the current list tree item points to a remote object.
void Update()
Update content of the list tree.
const TGPicture * fRootIcon
void Selected(char *)
A ROOT File has been selected in TGHtmlBrowser.
std::map< TGListTreeItem *, std::string > mFiltered_t
mFiltered_t fFilteredItems
Long_t XXExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root....
void Chdir(TGListTreeItem *item)
Make object associated with item the current directory.
TGHorizontalFrame * fTopFrame
virtual void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add items to the browser.
virtual void MapRaised()
map raised
Mother of all ROOT objects.
Regular expression class.
Describes an Operating System directory for the browser.
A TSystemFile describes an operating system file.