Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TSystemFile.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   26/06/96
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TSystemFile
0013 #define ROOT_TSystemFile
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TSystemFile                                                          //
0019 //                                                                      //
0020 // Describes an Operating System file for the browser.                  //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 
0025 #include "TNamed.h"
0026 
0027 class TBrowser;
0028 
0029 class TSystemFile : public TNamed {
0030 private:
0031    TString fIconName;   // icon name
0032 
0033 public:
0034    TSystemFile();
0035    TSystemFile(const char *filename, const char *dirname);
0036    virtual ~TSystemFile();
0037    virtual void     Rename(const char *name);      // *MENU*
0038    virtual void     Delete();                      // *MENU*
0039    virtual void     Copy(const char *to);          // *MENU*
0040    virtual void     Move(const char *to);          // *MENU*
0041    virtual void     Edit();                        // *MENU*
0042 
0043    virtual Bool_t   IsDirectory(const char *dir = nullptr) const;
0044    virtual void     SetIconName(const char *name) { fIconName = name; }
0045    const char      *GetIconName() const override { return fIconName.Data(); }
0046 
0047    void         Browse(TBrowser *b) override;
0048 
0049    // dummy methods from TObject
0050    void        Inspect() const override;
0051    void        Dump() const  override;
0052 
0053    void        DrawClass() const override { }
0054    TObject    *DrawClone(Option_t *) const override { return nullptr; }
0055    void        SetDrawOption(Option_t *) override { }
0056    void        SetName(const char *name) override { TNamed::SetName(name); }
0057    void        SetTitle(const char *title)  override { TNamed::SetTitle(title); }
0058    void        Delete(Option_t *) override { }
0059    void        Copy(TObject &) const override { }
0060 
0061    ClassDefOverride(TSystemFile,0)  //A system file
0062 };
0063 
0064 #endif
0065