00001 // @(#)root/base:$Id: TSystemFile.h 20877 2007-11-19 11:17:07Z rdm $ 00002 // Author: Rene Brun 26/06/96 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TSystemFile 00013 #define ROOT_TSystemFile 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TSystemFile // 00019 // // 00020 // Describes an Operating System file for the browser. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 00025 #ifndef ROOT_TNamed 00026 #include "TNamed.h" 00027 #endif 00028 00029 class TBrowser; 00030 00031 class TSystemFile : public TNamed { 00032 private: 00033 TString fIconName; // icon name 00034 00035 public: 00036 TSystemFile(); 00037 TSystemFile(const char *filename, const char *dirname); 00038 virtual ~TSystemFile(); 00039 virtual void Browse(TBrowser *b); 00040 virtual void Rename(const char *name); // *MENU* 00041 virtual void Delete(); // *MENU* 00042 virtual void Copy(const char *to); // *MENU* 00043 virtual void Move(const char *to); // *MENU* 00044 virtual void Edit(); // *MENU* 00045 00046 virtual Bool_t IsDirectory(const char *dir = 0) const; 00047 virtual void SetIconName(const char *name) { fIconName = name; } 00048 const char *GetIconName() const { return fIconName.Data(); } 00049 00050 // dummy methods from TObject 00051 virtual void Inspect() const; 00052 virtual void Dump() const; 00053 00054 void DrawClass() const { } 00055 TObject *DrawClone(Option_t *) const { return 0; } 00056 void SetDrawOption(Option_t *) { } 00057 void SetName(const char *name) { TNamed::SetName(name); } 00058 void SetTitle(const char *title) { TNamed::SetTitle(title); } 00059 void Delete(Option_t *) { } 00060 void Copy(TObject & ) const { } 00061 00062 ClassDef(TSystemFile,0) //A system file 00063 }; 00064 00065 #endif 00066