Logo ROOT  
Reference Guide
TGFileBrowser.cxx File Reference
#include "TROOT.h"
#include "TSystem.h"
#include "TApplication.h"
#include "TGClient.h"
#include "TGListTree.h"
#include "TGLayout.h"
#include "TGComboBox.h"
#include "TContextMenu.h"
#include "TGTextEntry.h"
#include "TGTab.h"
#include "TGLabel.h"
#include "TSystemDirectory.h"
#include "TGMimeTypes.h"
#include "TClass.h"
#include "TQClass.h"
#include "TObjString.h"
#include "TObjArray.h"
#include "TInterpreter.h"
#include "TRegexp.h"
#include "TEnv.h"
#include "TImage.h"
#include "TBrowser.h"
#include "TRemoteObject.h"
#include "TKey.h"
#include "TKeyMapFile.h"
#include "TVirtualPad.h"
#include "Getline.h"
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include "TGFileBrowser.h"
#include "TRootBrowser.h"
#include "TGInputDialog.h"
#include "TVirtualPadEditor.h"
#include "TGedEditor.h"
#include "TBaseClass.h"
#include "TVirtualX.h"
#include "RConfigure.h"
Include dependency graph for TGFileBrowser.cxx:

Functions

static const char * FormatToolTip (TObject *obj, Int_t maxlen=0)
 Format the tooltip information, based on the object passed in argument. More...
 
static Bool_t IsObjectEditable (TClass *cl)
 Helper function checking if a class has a graphic properties editor. More...
 
static Bool_t IsTextFile (const char *candidate)
 Returns true if given a text file Uses the specification given on p86 of the Camel book. More...
 
static const TGPictureMakeLinkPic (const TGPicture *pic)
 Create a symlink (shortcut on Windows) icon by merging the picture passed as argument and the slink_t.xpm icon (small arrow) More...
 

Variables

const char * filters []
 
const char rootdir [] = "/"
 

Function Documentation

◆ FormatToolTip()

static const char * FormatToolTip ( TObject obj,
Int_t  maxlen = 0 
)
static

Format the tooltip information, based on the object passed in argument.

Definition at line 286 of file TGFileBrowser.cxx.

◆ IsObjectEditable()

static Bool_t IsObjectEditable ( TClass cl)
static

Helper function checking if a class has a graphic properties editor.

Definition at line 268 of file TGFileBrowser.cxx.

◆ IsTextFile()

static Bool_t IsTextFile ( const char *  candidate)
static

Returns true if given a text file Uses the specification given on p86 of the Camel book.

  • Text files have no NULLs in the first block
  • and less than 30% of characters with high bit set

Definition at line 1137 of file TGFileBrowser.cxx.

◆ MakeLinkPic()

static const TGPicture * MakeLinkPic ( const TGPicture pic)
static

Create a symlink (shortcut on Windows) icon by merging the picture passed as argument and the slink_t.xpm icon (small arrow)

Definition at line 1175 of file TGFileBrowser.cxx.

Variable Documentation

◆ filters

const char* filters[]
Initial value:
= {
"",
"*.*",
"*.[C|c|h]*",
"*.root",
"*.txt"
}

Definition at line 60 of file TGFileBrowser.cxx.

◆ rootdir

const char rootdir[] = "/"

Definition at line 57 of file TGFileBrowser.cxx.