GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4BrowserItem.h
Go to the documentation of this file.
1 // $Id: TGo4BrowserItem.h 2627 2019-10-01 08:02:45Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4BROWSERITEM_H
15 #define TGO4BROWSERITEM_H
16 
17 #include "TFolder.h"
18 
19 class TIterator;
20 class TGo4BrowserProxy;
22 
23 class TGo4BrowserItem : public TFolder {
24  public:
26  TGo4BrowserItem(const char* name, const char* title);
27  TGo4BrowserItem(TGo4BrowserItem* parent, TGo4BrowserItem* previtem, const char* name, const char* title);
28  virtual ~TGo4BrowserItem();
29 
30  virtual void Browse(TBrowser* b);
31  virtual void DrawItem(); // *MENU*
32  virtual void CopyToWorkspace(); // *MENU*
33  virtual void DeleteItem(); // *MENU*
34  virtual void SetMonitorOn(); // *MENU*
35  virtual void SetMonitorOff(); // *MENU*
36  virtual void ToggleMonitoring(Int_t sec); // *MENU*
37  virtual void StartAnalysis(); // *MENU*
38  virtual void StopAnalysis(); // *MENU*
39 
40  TGo4BrowserItem* GetParent() const { return fParent; }
41 
43 
46  void deleteChild(TGo4BrowserItem* item);
47  void deleteChilds();
48 
49  void SetItemClass(const char* name) { fItemClass = name; }
50  const char* GetItemClass() const { return fItemClass.Data(); }
51 
52  void SetIsFolder(Bool_t b) { fIsFolder = b; }
53  virtual Bool_t IsFolder() const { return fIsFolder; }
54 
55  virtual const char* GetIconName() const { return fIconName.Data(); }
56  void SetIconName(const char* name) { fIconName = name; }
57 
58  void ProduceFullName(TString& fullname);
59  TString GetFullName();
60 
61  virtual const char* ClassName() const { return GetItemClass(); }
62  virtual void Delete(Option_t* option = "");
63  virtual void SetName(const char* name);
64  virtual void SetTitle(const char* title = "");
65  virtual void ls(Option_t* option = "*") const;
66 
67 #if ROOT_VERSION_CODE < ROOT_VERSION(5,13,6)
68  virtual void SaveAs(const char* filename = "");
69 #else
70  virtual void SaveAs(const char* filename = "", Option_t *option = "") const; // *MENU*
71 #endif
72 
73  virtual void DrawClass() const;
74  virtual TObject* DrawClone(Option_t* option = "") const;
75  virtual void Dump() const;
76  virtual void Inspect() const;
77  virtual void SetDrawOption(Option_t* option = "");
78  protected:
79 
80  void SetMonitorFlag(Bool_t on);
81 
83  TIterator* fIter;
84  TString fItemClass;
85  TString fIconName;
86  Bool_t fIsFolder;
87 
90 
92 };
93 
94 #endif
void deleteChild(TGo4BrowserItem *item)
TGo4BrowserItem * GetParent() const
virtual void DrawItem()
virtual void SetTitle(const char *title="")
TIterator * fIter
virtual void Browse(TBrowser *b)
virtual ~TGo4BrowserItem()
TGo4BrowserProxy * fBrowser
TGo4RootBrowserProxy * fRootBrowser
const char * GetItemClass() const
void SetItemClass(const char *name)
virtual void SetName(const char *name)
virtual void ls(Option_t *option="*") const
virtual void SaveAs(const char *filename="", Option_t *option="") const
virtual void StartAnalysis()
virtual Bool_t IsFolder() const
virtual const char * ClassName() const
virtual void DrawClass() const
virtual void Inspect() const
virtual void ToggleMonitoring(Int_t sec)
void SetMonitorFlag(Bool_t on)
virtual void StopAnalysis()
TGo4BrowserItem * fParent
virtual const char * GetIconName() const
virtual void Delete(Option_t *option="")
virtual void SetMonitorOff()
void SetIsFolder(Bool_t b)
TGo4BrowserItem * nextChild()
ClassDef(TGo4BrowserItem, 1)
virtual void SetMonitorOn()
virtual void Dump() const
void SetIconName(const char *name)
virtual void CopyToWorkspace()
virtual void SetDrawOption(Option_t *option="")
void SetBrowser(TGo4BrowserProxy *br, TGo4RootBrowserProxy *br2)
virtual TObject * DrawClone(Option_t *option="") const
virtual void DeleteItem()
void ProduceFullName(TString &fullname)
TGo4BrowserItem * firstChild()