37 class TBrowser :
public TNamed {
40 TObject *fLastSelectedObject;
42 TBrowser(
const TBrowser&) =
delete;
43 TBrowser& operator=(
const TBrowser&) =
delete;
47 TBrowserTimer *fTimer;
48 TContextMenu *fContextMenu;
56 TBrowser(
const char *name=
"Browser",
const char *title=
"ROOT Object Browser", TBrowserImp *extimp=0, Option_t *opt=
"");
57 TBrowser(
const char *name,
const char *title, UInt_t width, UInt_t height, TBrowserImp *extimp=0, Option_t *opt=
"");
58 TBrowser(
const char *name,
const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, TBrowserImp *extimp=0, Option_t *opt=
"");
60 TBrowser(
const char *name, TObject *obj,
const char *title=
"ROOT Object Browser", Option_t *opt=
"");
61 TBrowser(
const char *name, TObject *obj,
const char *title, UInt_t width, UInt_t height, Option_t *opt=
"");
62 TBrowser(
const char *name, TObject *obj,
const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt=
"");
64 TBrowser(
const char *name,
void *obj, TClass *cl,
const char *objname=
"",
const char *title=
"ROOT Foreign Browser", Option_t *opt=
"");
65 TBrowser(
const char *name,
void *obj, TClass *cl,
const char *objname,
const char *title, UInt_t width, UInt_t height, Option_t *opt=
"");
66 TBrowser(
const char *name,
void *obj, TClass *cl,
const char *objname,
const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt=
"");
81 void Add(TObject *obj,
const char *name = 0, Int_t check = -1);
82 void Add(
void *obj, TClass *cl,
const char *name = 0, Int_t check = -1);
84 void AddCheckBox(TObject *obj, Bool_t check = kFALSE);
85 void CheckObjectItem(TObject *obj, Bool_t check = kFALSE);
86 void RemoveCheckBox(TObject *obj);
88 virtual void Create(TObject *obj = 0);
89 virtual void Destructor();
90 void BrowseObject(TObject *obj) {
if (fImp) fImp->BrowseObj(obj); }
91 void ExecuteDefaultAction(TObject *obj);
92 TBrowserImp *GetBrowserImp()
const {
return fImp; }
93 void SetBrowserImp(TBrowserImp *i) { fImp = i; }
94 TContextMenu *GetContextMenu()
const {
return fContextMenu; }
95 Bool_t GetRefreshFlag()
const {
return fNeedRefresh; }
96 TObject *GetSelected()
const {
return fLastSelectedObject; }
97 void SetRefreshFlag(Bool_t flag) { fNeedRefresh = flag; }
98 void Iconify() {
if (fImp) fImp->Iconify(); }
99 virtual void RecursiveRemove(TObject *obj);
101 void SetSelected(TObject *clickedObject);
102 void Show() {
if (fImp) fImp->Show(); }
103 void SetDrawOption(Option_t *option=
"") {
if (fImp) fImp->SetDrawOption(option); }
104 Option_t *GetDrawOption()
const {
return (fImp) ? fImp->GetDrawOption() : 0; }
106 Long_t ExecPlugin(
const char *name = 0,
const char *fname = 0,
107 const char *cmd = 0, Int_t pos = 1, Int_t subpos = -1) {
108 return (fImp) ? fImp->ExecPlugin(name, fname, cmd, pos, subpos) : -1;
110 void SetStatusText(
const char *txt, Int_t col) {
111 if (fImp) fImp->SetStatusText(txt, col);
113 void StartEmbedding(Int_t pos, Int_t subpos) {
114 if (fImp) fImp->StartEmbedding(pos, subpos);
116 void StopEmbedding(
const char *name =
"") {
if (fImp) fImp->StopEmbedding(name); }