GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4BrowserItem.h
Go to the documentation of this file.
1// $Id$
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
19class TIterator;
22
23class 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 void Browse(TBrowser *b) override;
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 Bool_t IsFolder() const override { return fIsFolder; }
54
55 const char *GetIconName() const override { return fIconName.Data(); }
56 void SetIconName(const char *name) { fIconName = name; }
57
58 void ProduceFullName(TString &fullname);
59 TString GetFullName();
60
61 const char *ClassName() const override { return GetItemClass(); }
62 void Delete(Option_t *option = "") override;
63 void SetName(const char *name) override;
64 void SetTitle(const char *title = "") override;
65 void ls(Option_t *option = "*") const override;
66
67 void SaveAs(const char *filename = "", Option_t *option = "") const override; // *MENU*
68
69 void DrawClass() const override;
70 TObject *DrawClone(Option_t *option = "") const override;
71 void Dump() const override;
72 void Inspect() const override;
73 void SetDrawOption(Option_t *option = "") override;
74 protected:
75
76 void SetMonitorFlag(Bool_t on);
77
79 TIterator *fIter{nullptr};
80 TString fItemClass;
81 TString fIconName;
82 Bool_t fIsFolder{kFALSE};
83
86
88};
89
90#endif
void Dump() const override
Bool_t IsFolder() const override
void Browse(TBrowser *b) override
void Inspect() const override
void SetIsFolder(Bool_t b)
TGo4BrowserItem * nextChild()
void SetTitle(const char *title="") override
virtual void SetMonitorOff()
const char * GetItemClass() const
virtual void SetMonitorOn()
void SetBrowser(TGo4BrowserProxy *br, TGo4RootBrowserProxy *br2)
void ProduceFullName(TString &fullname)
void SetMonitorFlag(Bool_t on)
void Delete(Option_t *option="") override
virtual void CopyToWorkspace()
TIterator * fIter
void deleteChild(TGo4BrowserItem *item)
TGo4BrowserItem * fParent
virtual void DrawItem()
void ls(Option_t *option="*") const override
virtual void StartAnalysis()
void SetItemClass(const char *name)
const char * GetIconName() const override
virtual void ToggleMonitoring(Int_t sec)
TGo4BrowserItem * GetParent() const
void SetIconName(const char *name)
void SaveAs(const char *filename="", Option_t *option="") const override
virtual void StopAnalysis()
virtual void DeleteItem()
void SetDrawOption(Option_t *option="") override
TGo4BrowserProxy * fBrowser
TObject * DrawClone(Option_t *option="") const override
ClassDefOverride(TGo4BrowserItem, 1)
virtual ~TGo4BrowserItem()
void SetName(const char *name) override
TGo4RootBrowserProxy * fRootBrowser
TGo4BrowserItem * firstChild()
void DrawClass() const override
const char * ClassName() const override