ROOT  6.06/09
Reference Guide
Functions | Variables
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 "TDataMember.h"
#include "TMethod.h"
#include "TMethodArg.h"
#include "TRealData.h"
#include "TInterpreter.h"
#include "TRegexp.h"
#include "TEnv.h"
#include "TImage.h"
#include "TBrowser.h"
#include "TRemoteObject.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 "RConfigure.h"
+ Include dependency graph for TGFileBrowser.cxx:

Go to the source code of this file.

Functions

 ClassImp (TGFileBrowser) TGFileBrowser
 TGFileBrowser constructor. More...
 
static Bool_t IsObjectEditable (TClass *cl)
 Helper function checking if a class has a graphic properties editor. More...
 
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 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 rootdir [] = "/"
 
const char * filters []
 

Function Documentation

ClassImp ( TGFileBrowser  )

TGFileBrowser constructor.

Definition at line 99 of file TGFileBrowser.cxx.

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 283 of file TGFileBrowser.cxx.

Referenced by TGFileBrowser::Add(), and TGFileBrowser::AddKey().

static Bool_t IsObjectEditable ( TClass cl)
static

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

Definition at line 265 of file TGFileBrowser.cxx.

Referenced by TGFileBrowser::Clicked(), and TGFileBrowser::Update().

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 1144 of file TGFileBrowser.cxx.

Referenced by TGFileBrowser::DoubleClicked().

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 1182 of file TGFileBrowser.cxx.

Referenced by TGFileBrowser::DoubleClicked().

Variable Documentation

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

Definition at line 59 of file TGFileBrowser.cxx.

Referenced by TGFileBrowser::ApplyFilter().

const char rootdir[] = "/"