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