Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TGO4BROWSERITEM_H
00015 #define TGO4BROWSERITEM_H
00016
00017 #include "RVersion.h"
00018
00019 #include "TFolder.h"
00020
00021 class TIterator;
00022 class TGo4BrowserProxy;
00023 class TGo4RootBrowserProxy;
00024
00025 class TGo4BrowserItem : public TFolder {
00026 public:
00027 TGo4BrowserItem();
00028 TGo4BrowserItem(const char* name, const char* title);
00029 TGo4BrowserItem(TGo4BrowserItem* parent, TGo4BrowserItem* previtem, const char* name, const char* title);
00030 virtual ~TGo4BrowserItem();
00031
00032 virtual void Browse(TBrowser* b);
00033 virtual void DrawItem();
00034 virtual void CopyToWorkspace();
00035 virtual void DeleteItem();
00036 virtual void SetMonitorOn();
00037 virtual void SetMonitorOff();
00038 virtual void ToggleMonitoring(Int_t sec);
00039 virtual void StartAnalysis();
00040 virtual void StopAnalysis();
00041
00042 TGo4BrowserItem* GetParent() const { return fParent; }
00043
00044 void SetBrowser(TGo4BrowserProxy* br, TGo4RootBrowserProxy* br2);
00045
00046 TGo4BrowserItem* firstChild();
00047 TGo4BrowserItem* nextChild();
00048 void deleteChild(TGo4BrowserItem* item);
00049 void deleteChilds();
00050
00051 void SetItemClass(const char* name) { fItemClass = name; }
00052 const char* GetItemClass() const { return fItemClass.Data(); }
00053
00054 void SetIsFolder(Bool_t b) { fIsFolder = b; }
00055 virtual Bool_t IsFolder() const { return fIsFolder; }
00056
00057 virtual const char* GetIconName() const { return fIconName.Data(); }
00058 void SetIconName(const char* name) { fIconName = name; }
00059
00060 void ProduceFullName(TString& fullname);
00061 TString GetFullName();
00062
00063 virtual const char* ClassName() const { return GetItemClass(); }
00064 virtual void Delete(Option_t* option = "");
00065 virtual void SetName(const char* name);
00066 virtual void SetTitle(const char* title = "");
00067 virtual void ls(Option_t* option = "*") const;
00068
00069 #ifdef WIN32
00070
00071 virtual void SaveAs(const char* filename = "", Option_t *option = "");
00072
00073 #else
00074
00075 #if ROOT_VERSION_CODE < ROOT_VERSION(5,13,6)
00076 virtual void SaveAs(const char* filename = "");
00077 #else
00078 virtual void SaveAs(const char* filename = "", Option_t *option = "");
00079 #endif
00080 #endif
00081 virtual void DrawClass() const;
00082 virtual TObject* DrawClone(Option_t* option = "") const;
00083 virtual void Dump() const;
00084 virtual void Inspect() const;
00085 virtual void SetDrawOption(Option_t* option = "");
00086 protected:
00087
00088 void SetMonitorFlag(Bool_t on);
00089
00090 TGo4BrowserItem* fParent;
00091 TIterator* fIter;
00092 TString fItemClass;
00093 TString fIconName;
00094 Bool_t fIsFolder;
00095
00096 TGo4BrowserProxy* fBrowser;
00097 TGo4RootBrowserProxy* fRootBrowser;
00098
00099 ClassDef(TGo4BrowserItem,1);
00100 };
00101
00102 #endif