21#include "RConfigure.h" 
  132struct DefaultIcon_t {
 
  133   const char      *fPicnamePrefix;
 
  138static DefaultIcon_t gDefaultIcon[] = {
 
  139   { 
"folder",  { 0, 0 } },
 
  142   { 
"slink",   { 0, 0 } },
 
  143   { 
"histo",   { 0, 0 } },
 
  144   { 
"object",  { 0, 0 } }
 
  153   { 
"",                 
"",               
kFALSE, -1, 0 },
 
  158   { 
"",                 
"",               
kFALSE, -1, 0 },
 
  162   { 
"",                 
"",               
kFALSE, -1, 0 },
 
  164   { 
"",                 
"",               
kFALSE, -1, 0 },
 
  179class TRootBrowserHistoryCursor : 
public TObject {
 
  189class TRootBrowserHistory : 
public TList {
 
  192      TRootBrowserHistoryCursor *cur;
 
  195      while ((cur = (TRootBrowserHistoryCursor*)next())) {
 
  196         if (cur->fItem->GetUserData() == obj) {
 
  204      TRootBrowserHistoryCursor *cur;
 
  207      while ((cur = (TRootBrowserHistoryCursor*)next())) {
 
  208         if (cur->fItem == item) {
 
  218class TRootBrowserCursorSwitcher {
 
  227   ~TRootBrowserCursorSwitcher() {
 
  234class TIconBoxThumb : 
public TObject {
 
  246   const char *
GetName()
 const { 
return fName.
Data(); }
 
  263         object = ((
TKey *)fObj)->ReadObj();
 
  272      fDNDData.fDataType = 
gVirtualX->InternAtom(
"application/root", 
kFALSE);
 
  293   TGFileItem(p, bpic, 0, spic, 0, 
name, 0, 0, 0, 0, 0, viewMode)
 
  297   fDNDData.fDataLength = 0;
 
  300      for (
Int_t i = 0; fSubnames[i] != 0; ++i) 
delete fSubnames[i];
 
  309   if (obj->IsA()->HasDefaultConstructor()) {
 
  318   for (i = 0; fSubnames[i] != 0; ++i)
 
  321   for (i = 0; fSubnames[i] != 0; ++i)
 
  322      fCtw[i] = 
gVirtualX->TextWidth(fFontStruct, fSubnames[i]->GetString(),
 
  323                                     fSubnames[i]->GetLength());
 
  328class TRootIconList : 
public TList {
 
  331   TRootIconBox    *fIconBox; 
 
  335   TRootIconList(TRootIconBox* 
box = 0);
 
  336   virtual ~TRootIconList();
 
  338   const char       *
GetTitle()
 const { 
return "ListView Container"; }
 
  341   const TGPicture  *GetPicture()
 const { 
return fPic; }
 
  347TRootIconList::TRootIconList(TRootIconBox* 
box)
 
  349   fPic = 
gClient->GetPicture(
"listview.xpm");
 
  357TRootIconList::~TRootIconList()
 
  365void TRootIconList::UpdateName()
 
  367   if (!First()) 
return;
 
  370      fName = First()->GetName();
 
  374   fName = First()->GetName();
 
  376   fName += Last()->GetName();
 
  383friend class TRootIconList;
 
  388   TRootIconList   *fCurrentList;    
 
  389   TRootObjItem    *fCurrentItem;    
 
  408   void RemoveGarbage();
 
  415   virtual ~TRootIconBox();
 
  420   void   SetObjHeaders();
 
  423   void   SetGroupSize(
Int_t siz) { fGroupSize = siz; }
 
  424   Int_t  GetGroupSize()
 const { 
return fGroupSize; }
 
  426   Bool_t WasGrouped()
 const { 
return fWasGrouped; }
 
  438   fCheckHeaders = 
kTRUE;
 
  440   fGarbage = 
new TList();
 
  456   fAutoThumbnail = 
kTRUE;
 
  462TRootIconBox::~TRootIconBox()
 
  483   Bool_t xpm = xpm_magic == 
"/* ";
 
  484   const char *iconname = xpm ? obj->
GetName() : 
name;
 
  490   if (fCachedPicName == iconname) {
 
  491      *pic = fLargeCachedPic;
 
  492      *spic = fSmallCachedPic;
 
  498   if (!(*pic) && xpm) {
 
  518   fLargeCachedPic = *pic;
 
  528   fSmallCachedPic = *spic;
 
  529   fCachedPicName = iconname;
 
  535void TRootIconBox::RemoveGarbage()
 
  537   TIter next(fGarbage);
 
  540   while ((li=(
TList *)next())) {
 
  541      li->
Clear(
"nodelete");
 
  565         isSystemFile = 
kTRUE;
 
  588      TIconBoxThumb *thumb = 0;
 
  595         spic = thumb->fSmall;
 
  601         fi = AddRemoteFile(obj, spic, pic);
 
  603         fi = AddFile(
name, spic, pic);
 
  625      fCurrentList = 
new TRootIconList(
this);
 
  626      fGarbage->
Add(fCurrentList);
 
  629   fCurrentList->Add(obj);
 
  630   fCurrentList->UpdateName();
 
  637      if (
f->GetUserData() == obj) {
 
  642   if (fGrouped && fCurrentItem && (fCurrentList->GetSize()>1)) {
 
  643      fCurrentName->
SetString(fCurrentList->GetName());
 
  648   if ((fCurrentList->GetSize() < fGroupSize) && !fGrouped) {
 
  649      GetObjPictures(&pic, &spic, obj, obj->
GetIconName() ?
 
  659      fi = 
new TRootObjItem(
this, pic, spic, 
new TGString(
name), obj, cl, view);
 
  666   if (fGrouped && (fCurrentList->GetSize()==1)) {
 
  667      fCurrentName = 
new TGString(fCurrentList->GetName());
 
  668      fCurrentItem = 
new TRootObjItem(
this, fCurrentList->GetPicture(), fCurrentList->GetPicture(),
 
  670      fCurrentItem->SetUserData(fCurrentList);
 
  671      AddItem(fCurrentItem);
 
  676   if ((fCurrentList->GetSize()==fGroupSize) && !fGrouped) {
 
  690      fCurrentName = 
new TGString(fCurrentList->GetName());
 
  691      fi = 
new TRootObjItem(
this, fCurrentList->GetPicture(), fCurrentList->GetPicture(),
 
  696      fCurrentList = 
new TRootIconList(
this);
 
  697      fGarbage->
Add(fCurrentList);
 
  702   if ((fCurrentList->GetSize()==fGroupSize) && fGrouped) {
 
  703      fCurrentList = 
new TRootIconList(
this);
 
  704      fGarbage->
Add(fCurrentList);
 
  712void TRootIconList::Browse(
TBrowser *)
 
  785   if (
name.IsNull()) 
return 0;
 
  792   fLastDir = direction;
 
  793   fLastCase = caseSensitive;
 
  815      li = (
TList*)
lv->GetUserData();
 
  819      while ((obj=next())) {
 
  849void TRootIconBox::SetObjHeaders()
 
  860void TRootIconBox::Refresh()
 
  875void TRootIconBox::RemoveAll()
 
  877   if (fIsEmpty) 
return;
 
  879   fCheckHeaders = 
kTRUE;
 
 1182   fIconBox->fAutoThumbnail = (str == 
"yes") || atoi(str.
Data());
 
 1201   int parts[] = { 26, 74 };
 
 1235   printf(
"\n You are using the old ROOT browser! A new version is available. To use it:\n");
 
 1236   printf(
" Select the \"New Browser\" entry from the \"File\" menu in the browser, or change\n");
 
 1237   printf(
" \"Browser.Name:\" from \"TRootBrowserLite\" to \"TRootBrowser\" in system.rootrc\n\n");
 
 1239   Connect(
fLt, 
"Checked(TObject*, Bool_t)", 
"TRootBrowserLite",
 
 1240           this, 
"Checked(TObject *,Bool_t)");
 
 1251      gVirtualX->LookupString(event, input, 
sizeof(input), keysym);
 
 1262         switch ((
EKeySym)keysym & ~0x20) {
 
 1298            if (
f->GetUserData() == obj) {
 
 1299               f->SetCheckedEntry(check);
 
 1306   if (
name[0] == 
'.' && ((
name[1] == 
'\0') || (
name[1] == 
'.' && 
name[2] == 
'\0')))
 
 1330         if (
f->GetUserData() == obj) {
 
 1331            f->SetCheckedEntry(check);
 
 1353               if (
f->GetUserData() == obj) {
 
 1354                  f->SetCheckedEntry(check);
 
 1377               if (
f->GetUserData() == obj) {
 
 1410         objClass = obj->IsA();
 
 1427      if (
name[0] == 
'.' && 
name[1] == 
'.')
 
 1428         Info(
"AddToTree", 
"up one level %s", 
name);
 
 1458            Long64_t bsize, fsize, objsize = 0;
 
 1464               objsize = objinfo.
Atoll();
 
 1467                  bsize = fsize = objsize;
 
 1587      fmt = 
"%d Object%s, %d selected.";
 
 1589      fmt = 
"%d Object%s.";
 
 1600   char *p, path[1024];
 
 1604   while (*p && *(p+1) == 
'/') ++p;
 
 1614   while (*p && *(p+1) == 
'/') ++p;
 
 1624      disableUp = (strlen(dirname) == 1) && (*dirname == 
'/');
 
 1628         disableUp = strlen(p) == 1;
 
 1642   TRootBrowserCursorSwitcher cursorSwitcher(
fIconBox, 
fLt);
 
 1659         if (act[0] == 
'!') {
 
 1668         Emit(
"ExecuteDefaultAction(TObject*)", (
Long_t)obj);
 
 1673         TRootBrowserCursorSwitcher cursorSwitcher2(
fIconBox, 
fLt);
 
 1701      if (
fIconBox->fAutoThumbnail && nowp && (nowp != wasp)) {
 
 1705         TIconBoxThumb *thumb = 0;
 
 1709         thumb = (TIconBoxThumb*)
fIconBox->fThumbnails->FindObject(path);
 
 1712            spic = thumb->fSmall;
 
 1713            pic = thumb->fLarge;
 
 1724            static const UInt_t sz = 72;
 
 1734            w = w < 54 ? 54 : w;
 
 1735            h = 
h < 54 ? 54 : 
h;
 
 1738            img->
Merge(img, 
"tint");   
 
 1739            img->
DrawBox(0, 0, w, 
h, 
"#ffff00", 1); 
 
 1745            thumb = 
new TIconBoxThumb(path.
Data(), spic, pic);
 
 1763   TRootBrowserCursorSwitcher *cursorSwitcher = 0;
 
 1768      cursorSwitcher = 
new TRootBrowserCursorSwitcher(
fIconBox, 
fLt);
 
 1789                     new TBrowser(
"Browser", 
"ROOT Object Browser");
 
 1797                     gROOT->MakeDefCanvas();
 
 1892                     printf(
"Currently the browser always shows all cycles\n");
 
 1968                        sprintf(str, 
"About ROOT %s...", 
gROOT->GetVersion());
 
 1987                     hd = 
new TRootHelpDialog(
this, 
"Help on Graphics Editor...", 600, 400);
 
 2019                     const char *dirname = 
e->GetPath()->GetString();
 
 2113               if (
fIconBox->NumSelected() == 1) {
 
 2143                  if (
fIconBox->NumSelected() == 1) {
 
 2163                                 Error(
"ProcessMessage",
"do not support non TObject (like %s) yet",
 
 2188                  if (
fIconBox->NumSelected() == 1) {
 
 2197                        delete cursorSwitcher;
 
 2216   delete cursorSwitcher;
 
 2242               if (strcmp(((
TKey*)obj)->GetClassName(), 
"TDirectoryFile") == 0) {
 
 2274       (item == ((TRootBrowserHistoryCursor*)
fHistoryCursor)->fItem))) 
return;
 
 2276   TRootBrowserHistoryCursor *cur = (TRootBrowserHistoryCursor*)
fHistoryCursor;
 
 2283   cur = 
new TRootBrowserHistoryCursor(item);
 
 2378   ((TRootBrowserHistory*)
fHistory)->DeleteItem(item);
 
 2425               while ( probj && strcmp(probj->
GetClassName(), 
"TFile")) {
 
 2433                     TString::Format(
"((TApplicationServer *)gApplication)->BrowseFile(\"%s\");",
 
 2448            else if (!strcmp(item->
GetText(), 
"ROOT Files")) {
 
 2462            if (topobj && topobj->
InheritsFrom(
"TApplicationRemote")) {
 
 2476               Getlinem(kInit, 
"\nroot [0]");
 
 2509         gROOT->GetListOfBrowsables()->Remove(old);
 
 2511         gROOT->GetListOfBrowsables()->Add(obj);
 
 2547   Emit(
"DoubleClicked(TObject*)", (
Long_t)obj);
 
 2560   Emit(
"Checked(TObject*,Bool_t)", args);
 
 2569   const char *dirname = 0;
 
 2572      TRootBrowserCursorSwitcher cursorSwitcher(
fIconBox, 
fLt);
 
 2576      if (obj->IsA()->GetMethodWithPrototype(
"Browse", 
"TBrowser*"))
 
 2595         TKey *key = 
dynamic_cast<TKey*
>(obj);
 
 2604         if (t == 
".") 
goto out;
 
 2765   if ( (refresh || force) && !
fIconBox->WasGrouped()
 
 2768      TRootBrowserCursorSwitcher cursorSwitcher(
fIconBox, 
fLt);
 
 2770      UInt_t curr =  
gROOT->GetListOfBrowsables()->GetSize();
 
 2771      if (!prev) prev = curr;
 
 2836   if (!strcasecmp(opt, 
"big"))
 
 2838   else if (!strcasecmp(opt, 
"small"))
 
 2840   else if (!strcasecmp(opt, 
"list"))
 
 2842   else if (!strcasecmp(opt, 
"details"))
 
 2852   if (!strcasecmp(opt, 
"name"))
 
 2854   else if (!strcasecmp(opt, 
"type"))
 
 2856   else if (!strcasecmp(opt, 
"size"))
 
 2858   else if (!strcasecmp(opt, 
"date"))
 
 2904      for (i = 2; i <= 5; ++i)
 
 2911            buttons[0]->
Connect(
"Clicked()", 
"TRootBrowserLite", 
this,
 
 2913            buttons[1]->
Connect(
"Clicked()", 
"TRootBrowserLite", 
this,
 
 2915            buttons[2]->
Connect(
"Clicked()", 
"TRootBrowserLite", 
this,
 
 2917            buttons[5]->
Connect(
"Clicked()", 
"TRootBrowserLite", 
this,
 
 2973   for (
int i = 0; i < len; i++) {
 
 2975      if (((
c < 32) || (
c > 126)) && (
c != 
'\t') && (
c != 
'\r') && (
c != 
'\n')) {
 
 3017   const int bufferSize = 1024;
 
 3018   char buffer[bufferSize];
 
 3020   FILE *fd = fopen(
file, 
"rb");
 
 3027   int sz = fread(buffer, 1, bufferSize, fd);
 
 3030   if ((sz > 0) && 
isBinary(buffer, sz)) {
 
 3045                                                 fTextEdit, 
"Search(char *,Bool_t,Bool_t)");
 
 3049      savbtn->
Connect(
"Released()", 
"TGTextEdit", 
fTextEdit, 
"SaveFile(=0,kTRUE)");
 
 3093   gROOT->Macro(tmpfile);
 
 3128         bt1->
Connect(
"Pressed()", 
"TRootBrowserLite", 
this, 
"ExecMacro()");
 
 3129         bt2->
Connect(
"Pressed()", 
"TRootBrowserLite", 
this, 
"InterruptMacro()");
 
const Mask_t kKeyMod1Mask
 
R__EXTERN const char gHelpObjects[]
 
R__EXTERN const char gHelpPullDownMenus[]
 
R__EXTERN const char gHelpRemote[]
 
R__EXTERN const char gHelpAbout[]
 
R__EXTERN const char gHelpGraphicsEditor[]
 
R__EXTERN const char gHelpCanvas[]
 
R__EXTERN const char gHelpBrowserLite[]
 
R__EXTERN const char gHelpPostscript[]
 
R__EXTERN TApplication * gApplication
 
include TDocParser_001 C image html pict1_TDocParser_001 png width
 
R__EXTERN TGDNDManager * gDNDManager
 
static unsigned int total
 
static Bool_t isBinary(const char *str, int len)
test
 
static ToolBarData_t gToolBarData[]
 
static const char * gOpenTypes[]
 
char * Form(const char *fmt,...)
 
char * StrDup(const char *str)
Duplicate the string str.
 
R__EXTERN TSystem * gSystem
 
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
 
TApplication * GetAppRemote() const
 
virtual const char * ApplicationName() const
 
virtual Long_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=0)
Process a single command line, either a C++ statement or an interpreter command starting with a "....
 
ABC describing GUI independent browser implementation protocol.
 
Using a TBrowser one can browse all ROOT objects.
 
void SetDrawOption(Option_t *option="")
Set drawing option for object.
 
void SetRefreshFlag(Bool_t flag)
 
TContextMenu * GetContextMenu() const
 
Bool_t GetRefreshFlag() const
 
void SetBrowserImp(TBrowserImp *i)
 
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
 
void WriteObject(const TObject *obj, Bool_t cacheReuse=kTRUE) override
Write object to I/O buffer.
 
TClass instances represent classes, structs and namespaces in the ROOT type system.
 
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
 
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
 
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
 
virtual Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
 
The color creation and management class.
 
ULong_t GetPixel() const
Return pixel value corresponding to this color.
 
Describe directory structure in memory.
 
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
 
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
 
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
 
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
 
TGMimeTypes * GetMimeTypeList() const
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
TGPicturePool * GetPicturePool() const
 
virtual TGLBEntry * GetSelectedEntry() const
 
virtual TGTextEntry * GetTextEntry() const
 
virtual void AddEntry(TGString *s, Int_t id)
 
virtual TGListBox * GetListBox() const
 
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
 
virtual Int_t GetNumberOfEntries() const
 
virtual TList * GetList() const
 
TGCompositeFrame(const TGCompositeFrame &)
 
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
 
virtual UInt_t GetDefaultWidth() const
 
virtual void Layout()
Layout the elements of the composite frame.
 
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
 
virtual void ShowFrame(TGFrame *f)
Show sub frame.
 
virtual UInt_t GetDefaultHeight() const
 
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
 
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
 
virtual void RemoveAll()
Remove all frames from composite frame.
 
virtual void HideFrame(TGFrame *f)
Hide sub frame.
 
virtual void Associate(const TGWindow *w)
 
virtual void ClearViewPort()
Clear view port and redraw full content.
 
virtual TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE)
Find frame located int container at position x,y.
 
virtual void RemoveAll()
Remove all items from the container.
 
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
 
Bool_t IsDragging() const
 
Bool_t EndDrag()
End dragging.
 
virtual void Update(const char *path)
Update file system combo box.
 
Bool_t fMultipleSelection
 
void SetDNDData(TDNDData *data)
 
virtual Bool_t HandleDNDFinished()
 
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
virtual void DeleteWindow()
Delete window.
 
void SetDNDSource(Bool_t onoff)
 
virtual TDNDData * GetDNDData(Atom_t)
 
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
 
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
 
static Pixel_t fgWhitePixel
 
virtual void UnmapWindow()
 
void * GetUserData() const
 
void SetUserData(void *userData)
 
virtual void SetText(TGString *newText)
Set new text in label.
 
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
 
virtual TGFrame * GetContainer() const
 
TGListTreeItem * GetFirstChild() const
 
void Rename(const char *new_name)
 
virtual Bool_t IsActive() const =0
 
virtual const char * GetText() const =0
 
TGListTreeItem * GetNextSibling() const
 
TGListTreeItem * GetParent() const
 
virtual void SetTipText(const char *)
 
virtual Bool_t IsOpen() const
 
virtual void * GetUserData() const =0
 
virtual void SetUserData(void *, Bool_t=kFALSE)
 
TGListTreeItem * FindItemByObj(TGListTreeItem *item, void *ptr)
Find item with fUserData == ptr.
 
void ClearHighlighted()
Un highlight items.
 
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
 
void CheckItem(TGListTreeItem *item, Bool_t check=kTRUE)
Set check button state for the node 'item'.
 
void SetAutoTips(Bool_t on=kTRUE)
 
void SetCheckBox(TGListTreeItem *item, Bool_t on=kTRUE)
Set check button state for the node 'item'.
 
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
 
TGListTreeItem * GetSelected() const
 
Int_t RecursiveDeleteItem(TGListTreeItem *item, void *userData)
Delete item with fUserData == ptr.
 
Int_t DeleteItem(TGListTreeItem *item)
Delete item from list tree.
 
TGListTreeItem * GetFirstItem() const
 
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
 
void AdjustPosition(TGListTreeItem *item)
Move content to position of item.
 
void HighlightItem(TGListTreeItem *item)
Highlight item.
 
TGListTreeItem * FindItemByPathname(const char *path)
Find item by pathname.
 
TGListTreeItem * FindChildByData(TGListTreeItem *item, void *userData)
Find child of item by userData.
 
void SetToolTipItem(TGListTreeItem *item, const char *string)
Set tooltip text for this item.
 
void GetPathnameFromItem(TGListTreeItem *item, char *path, Int_t depth=0)
Get pathname from item.
 
virtual void AdjustHeaders()
 
virtual void Layout()
Layout list view components (container and contents of container).
 
virtual void SetHeader(const char *s, Int_t hmode, Int_t cmode, Int_t idx)
Set header button idx [0-fNColumns>, hmode is the x text alignmode (ETextJustification) for the heade...
 
virtual void SetIncrements(Int_t hInc, Int_t vInc)
Set horizontal and vertical scrollbar increments.
 
EListViewMode GetViewMode() const
 
TGTextButton ** GetHeaderButtons()
 
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
 
virtual void SetHeaders(Int_t ncolumns)
Set number of headers, i.e.
 
virtual void SetDefaultHeaders()
Default headers are: Name, Attributes, Size, Owner, Group, Modified.
 
virtual void LayoutHeader(TGFrame *head)
Layout list view components (container and contents of container).
 
virtual const char * GetHeader(Int_t idx) const
Returns name of header idx.
 
virtual void SendCloseMessage()
Send close message to self.
 
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
 
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
 
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
 
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
 
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
 
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
 
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
 
void AddType(const char *type, const char *pat, const char *icon, const char *sicon, const char *action)
Add a mime type to the list of mime types.
 
const TGPicture * GetIcon(const char *filename, Bool_t small_icon)
Return icon belonging to mime type of filename.
 
Bool_t GetAction(const char *filename, char *action)
Return in action the mime action string belonging to filename.
 
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
 
static TGSearchDialog *& SearchDialog()
Return global search dialog.
 
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
 
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
 
virtual void SetString(const char *s)
 
const char * GetString() const
 
virtual Bool_t SaveFile(const char *fname, Bool_t saveas=kFALSE)
Save file.
 
virtual Bool_t Search(const char *string, Bool_t direction=kTRUE, Bool_t caseSensitive=kFALSE)
Search for string in the specified direction.
 
const char * GetText() const
 
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
 
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
 
const TGString * GetText() const
 
virtual Bool_t LoadFile(const char *fname, long startpos=0, long length=-1)
Load a file in the text view widget.
 
virtual void SetReadOnly(Bool_t on=kTRUE)
 
virtual void SetBackgroundColor(Pixel_t)
Set background color of the canvas frame.
 
virtual void DestroyWindow()
 
const TGWindow * GetParent() const
 
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
 
THashTable implements a hash table to store TObject's.
 
TObject * FindObject(const char *name) const
Find object using its name.
 
An abstract interface to image processing library.
 
virtual void FromPad(TVirtualPad *, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual UInt_t GetWidth() const
 
virtual void DrawBox(Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1, Int_t=0)
 
static TImage * Create()
Create an image.
 
virtual Bool_t SetImageBuffer(char **, EImageFileTypes=TImage::kPng)
 
virtual Bool_t IsValid() const
 
virtual void Scale(UInt_t, UInt_t)
 
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
 
virtual Pixmap_t GetPixmap()
 
virtual Pixmap_t GetMask()
 
virtual UInt_t GetHeight() const
 
Utility class for browsing TMapFile objects.
 
Book space in a file, create I/O buffers, to fill them, (un)compress them.
 
virtual const char * GetClassName() const
 
Short_t GetCycle() const
Return cycle number associated to this key.
 
virtual void Add(TObject *obj)
 
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
 
virtual TObject * Remove(TObject *obj)
Remove object from the list.
 
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
 
virtual void RecursiveRemove(TObject *obj)
Remove object from this collection and recursively remove the object from all other objects (and coll...
 
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
 
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
 
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
 
virtual void Clear(Option_t *option="")
Remove all objects from the list.
 
virtual const char * GetName() const
Returns name of object.
 
Wrapper around a TObject so it can be stored in a TList.
 
TObject * GetObject() const
 
Collectable string class.
 
const TString & GetString() const
 
Mother of all ROOT objects.
 
virtual Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
virtual const char * GetName() const
Returns name of object.
 
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
 
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
 
virtual const char * GetIconName() const
Returns mime type name of object.
 
virtual const char * ClassName() const
Returns name of class to which the object belongs.
 
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Returns string containing info about the object at position (px,py).
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
 
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
 
virtual const char * GetTitle() const
Returns title of object.
 
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
 
virtual ULong_t Hash() const
Return hash value for this object.
 
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
 
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
 
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
 
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
 
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
 
The TRemoteObject class provides protocol for browsing ROOT objects from a remote ROOT session.
 
const char * GetClassName() const
 
const char * GetKeyClassName() const
 
TGCompositeFrame * fTreeHdr
 
virtual void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add items to the browser.
 
TGPopupMenu * fOptionMenu
 
friend class TRootIconBox
 
Bool_t HistoryBackward()
go to the past
 
void SetViewMode(Int_t new_mode, Bool_t force=kFALSE)
Set iconbox's view mode and update menu and toolbar buttons accordingly.
 
TGLayoutHints * fMenuBarHelpLayout
 
void ListTreeHighlight(TGListTreeItem *item)
Open tree item and list in iconbox its contents.
 
virtual void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root....
 
TGFileContainer * GetIconBox() const
returns pointer to fIconBox object
 
void SetSortMode(Int_t new_mode)
Set iconbox's sort mode and update menu radio buttons accordingly.
 
void ClearHistory()
clear navigation history
 
TGListTreeItem * fListLevel
 
TGLayoutHints * fExpandLayout
 
void SetDrawOption(Option_t *option="")
sets drawing option
 
void BrowseTextFile(const char *file)
browse text file
 
virtual void DoubleClicked(TObject *obj)
Emits signal when double clicking on icon.
 
TGLayoutHints * fComboLayout
 
void Chdir(TGListTreeItem *item)
Make object associated with item the current directory.
 
void CloseWindow()
In case window is closed via WM we get here.
 
void ExecMacro()
executed browsed text macro
 
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other command generated by the user.
 
virtual void ShowToolBar(Bool_t show=kTRUE)
Show or hide toolbar.
 
Option_t * GetDrawOption() const
returns drawing option
 
void HighlightListLevel()
helper method to track history
 
Bool_t HistoryForward()
go to the future
 
TGLayoutHints * fMenuBarLayout
 
virtual void Refresh(Bool_t force=kFALSE)
Refresh the browser contents.
 
static TBrowserImp * NewBrowser(TBrowser *b=0, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500, Option_t *opt="")
Interface method to the old browser.
 
virtual void AddToTree(TObject *obj, const char *name, Int_t check=-1)
Add items to the current TGListTree of the browser.
 
const TGPicture * fIconPic
 
void AddToHistory(TGListTreeItem *item)
helper method to track history
 
virtual void AddCheckBox(TObject *obj, Bool_t check=kFALSE)
Add a checkbox in the TGListTreeItem corresponding to obj and a checkmark on TGLVEntry if check = kTR...
 
TGLayoutHints * fBarLayout
 
virtual void Checked(TObject *obj, Bool_t check)
Emits signal when double clicking on icon.
 
TRootBrowserLite(TBrowser *b=0, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500)
Create browser with a specified width and height.
 
void DisplayTotal(Int_t total, Int_t selected)
Display in statusbar total number of objects and number of selected objects in IconBox.
 
void IconBoxAction(TObject *obj)
Default action when double clicking on icon.
 
TGLayoutHints * fMenuBarItemLayout
 
void HideTextEdit()
hide text edit
 
TGStatusBar * GetStatusBar() const
 
void DisplayDirectory()
Display current directory in second label, fLbl2.
 
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from browser.
 
void ShowMacroButtons(Bool_t show=kTRUE)
show/hide macro buttons
 
virtual void AddToBox(TObject *obj, const char *name)
Add items to the iconbox of the browser.
 
virtual void ShowStatusBar(Bool_t show=kTRUE)
Show or hide statusbar.
 
void Search()
starts serach dialog
 
void ReallyDelete()
Really delete the browser and the this GUI.
 
virtual void CheckObjectItem(TObject *obj, Bool_t check=kFALSE)
Check / uncheck the TGListTreeItem corresponding to this object and add a checkmark on TGLVEntry if c...
 
virtual void BrowseObj(TObject *obj)
Browse object.
 
TGFSComboBox * fFSComboBox
 
virtual void SetStatusText(const char *txt, Int_t col)
Set text in column col in status bar.
 
virtual Bool_t HandleKey(Event_t *event)
handle keys
 
void InterruptMacro()
interrupt browsed macro execution
 
virtual void RemoveCheckBox(TObject *obj)
Remove checkbox from TGListTree and checkmark from TGListView.
 
virtual ~TRootBrowserLite()
Browser destructor.
 
virtual void SetDefaults(const char *iconStyle=0, const char *sortBy=0)
Set defaults depending on settings in the user's .rootrc.
 
TGCompositeFrame * fListHdr
 
void UpdateDrawOption()
add new draw option to the "history"
 
void CreateBrowser(const char *name)
Create the actual browser.
 
void ToSystemDirectory(const char *dirname)
display directory
 
void DeleteListTreeItem(TGListTreeItem *item)
delete list tree item, remove it from history
 
TGHorizontal3DLine * fToolBarSep
 
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
 
void Popup()
Show help dialog.
 
void ToLower()
Change string to lower-case.
 
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
 
const char * Data() const
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
 
TString & Prepend(const char *cs)
 
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
 
TString & Remove(Ssiz_t pos)
 
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
 
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
 
Long64_t Atoll() const
Return long long value of string.
 
Describes an Operating System directory for the browser.
 
A TSystemFile describes an operating system file.
 
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
 
virtual char * ConcatFileName(const char *dir, const char *name)
Concatenate a directory and a file name. User must delete returned string.
 
virtual Int_t Exec(const char *shellcmd)
Execute a command.
 
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
 
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
 
virtual Bool_t IsAbsoluteFileName(const char *dir)
Return true if dir is an absolute pathname.
 
virtual const char * WorkingDirectory()
Return working directory.
 
virtual int Unlink(const char *name)
Unlink, i.e.
 
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
 
TVirtualPad is an abstract base class for the Pad and Canvas classes.
 
virtual void Modified(Bool_t flag=1)=0
 
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)