ROOT logo
// @(#)root/base:$Id: TSystemFile.h 20877 2007-11-19 11:17:07Z rdm $
// Author: Rene Brun   26/06/96

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TSystemFile
#define ROOT_TSystemFile


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TSystemFile                                                          //
//                                                                      //
// Describes an Operating System file for the browser.                  //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


#ifndef ROOT_TNamed
#include "TNamed.h"
#endif

class TBrowser;

class TSystemFile : public TNamed {
private:
   TString fIconName;   // icon name

public:
   TSystemFile();
   TSystemFile(const char *filename, const char *dirname);
   virtual ~TSystemFile();
   virtual void     Browse(TBrowser *b);
   virtual void     Rename(const char *name);      // *MENU*
   virtual void     Delete();                      // *MENU*
   virtual void     Copy(const char *to);          // *MENU*
   virtual void     Move(const char *to);          // *MENU*
   virtual void     Edit();                        // *MENU*

   virtual Bool_t   IsDirectory(const char *dir = 0) const;
   virtual void     SetIconName(const char *name) { fIconName = name; }
   const char      *GetIconName() const { return fIconName.Data(); }

   // dummy methods from TObject
   virtual void     Inspect() const;
   virtual void     Dump() const;

   void        DrawClass() const { }
   TObject    *DrawClone(Option_t *) const { return 0; }
   void        SetDrawOption(Option_t *) { }
   void        SetName(const char *name) { TNamed::SetName(name); }
   void        SetTitle(const char *title) { TNamed::SetTitle(title); }
   void        Delete(Option_t *) { }
   void        Copy(TObject & ) const { }

   ClassDef(TSystemFile,0)  //A system file
};

#endif

 TSystemFile.h:1
 TSystemFile.h:2
 TSystemFile.h:3
 TSystemFile.h:4
 TSystemFile.h:5
 TSystemFile.h:6
 TSystemFile.h:7
 TSystemFile.h:8
 TSystemFile.h:9
 TSystemFile.h:10
 TSystemFile.h:11
 TSystemFile.h:12
 TSystemFile.h:13
 TSystemFile.h:14
 TSystemFile.h:15
 TSystemFile.h:16
 TSystemFile.h:17
 TSystemFile.h:18
 TSystemFile.h:19
 TSystemFile.h:20
 TSystemFile.h:21
 TSystemFile.h:22
 TSystemFile.h:23
 TSystemFile.h:24
 TSystemFile.h:25
 TSystemFile.h:26
 TSystemFile.h:27
 TSystemFile.h:28
 TSystemFile.h:29
 TSystemFile.h:30
 TSystemFile.h:31
 TSystemFile.h:32
 TSystemFile.h:33
 TSystemFile.h:34
 TSystemFile.h:35
 TSystemFile.h:36
 TSystemFile.h:37
 TSystemFile.h:38
 TSystemFile.h:39
 TSystemFile.h:40
 TSystemFile.h:41
 TSystemFile.h:42
 TSystemFile.h:43
 TSystemFile.h:44
 TSystemFile.h:45
 TSystemFile.h:46
 TSystemFile.h:47
 TSystemFile.h:48
 TSystemFile.h:49
 TSystemFile.h:50
 TSystemFile.h:51
 TSystemFile.h:52
 TSystemFile.h:53
 TSystemFile.h:54
 TSystemFile.h:55
 TSystemFile.h:56
 TSystemFile.h:57
 TSystemFile.h:58
 TSystemFile.h:59
 TSystemFile.h:60
 TSystemFile.h:61
 TSystemFile.h:62
 TSystemFile.h:63
 TSystemFile.h:64
 TSystemFile.h:65
 TSystemFile.h:66