GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4BrowserItem.h
Go to the documentation of this file.
1 // $Id: TGo4BrowserItem.h 478 2009-10-29 12:26:09Z 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 für 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 "RVersion.h"
18 
19 #include "TFolder.h"
20 
21 class TIterator;
22 class TGo4BrowserProxy;
24 
25 class TGo4BrowserItem : public TFolder {
26  public:
28  TGo4BrowserItem(const char* name, const char* title);
29  TGo4BrowserItem(TGo4BrowserItem* parent, TGo4BrowserItem* previtem, const char* name, const char* title);
30  virtual ~TGo4BrowserItem();
31 
32  virtual void Browse(TBrowser* b);
33  virtual void DrawItem(); // *MENU*
34  virtual void CopyToWorkspace(); // *MENU*
35  virtual void DeleteItem(); // *MENU*
36  virtual void SetMonitorOn(); // *MENU*
37  virtual void SetMonitorOff(); // *MENU*
38  virtual void ToggleMonitoring(Int_t sec); // *MENU*
39  virtual void StartAnalysis(); // *MENU*
40  virtual void StopAnalysis(); // *MENU*
41 
42  TGo4BrowserItem* GetParent() const { return fParent; }
43 
45 
48  void deleteChild(TGo4BrowserItem* item);
49  void deleteChilds();
50 
51  void SetItemClass(const char* name) { fItemClass = name; }
52  const char* GetItemClass() const { return fItemClass.Data(); }
53 
54  void SetIsFolder(Bool_t b) { fIsFolder = b; }
55  virtual Bool_t IsFolder() const { return fIsFolder; }
56 
57  virtual const char* GetIconName() const { return fIconName.Data(); }
58  void SetIconName(const char* name) { fIconName = name; }
59 
60  void ProduceFullName(TString& fullname);
61  TString GetFullName();
62 
63  virtual const char* ClassName() const { return GetItemClass(); }
64  virtual void Delete(Option_t* option = "");
65  virtual void SetName(const char* name);
66  virtual void SetTitle(const char* title = "");
67  virtual void ls(Option_t* option = "*") const;
68 
69 #ifdef WIN32
70 
71  virtual void SaveAs(const char* filename = "", Option_t *option = "");
72 
73 #else
74 
75 #if ROOT_VERSION_CODE < ROOT_VERSION(5,13,6)
76  virtual void SaveAs(const char* filename = "");
77 #else
78  virtual void SaveAs(const char* filename = "", Option_t *option = "");
79 #endif
80 #endif
81  virtual void DrawClass() const;
82  virtual TObject* DrawClone(Option_t* option = "") const;
83  virtual void Dump() const;
84  virtual void Inspect() const;
85  virtual void SetDrawOption(Option_t* option = "");
86  protected:
87 
88  void SetMonitorFlag(Bool_t on);
89 
91  TIterator* fIter;
92  TString fItemClass;
93  TString fIconName;
94  Bool_t fIsFolder;
95 
98 
100 };
101 
102 #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 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()
virtual void SaveAs(const char *filename="", Option_t *option="")
void ProduceFullName(TString &fullname)
TGo4BrowserItem * firstChild()