66 TBrowser(
const char *
name,
void *obj,
TClass *cl,
const char *objname=
"",
const char *title=
"ROOT Foreign Browser",
Option_t *opt=
"");
109 const char *cmd =
nullptr,
Int_t pos = 1,
Int_t subpos = -1) {
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
ABC describing GUI independent browser implementation protocol.
virtual Option_t * GetDrawOption() const
virtual void StartEmbedding(Int_t, Int_t)
virtual void SetStatusText(const char *, Int_t)
virtual void BrowseObj(TObject *)
virtual Longptr_t ExecPlugin(const char *, const char *, const char *, Int_t, Int_t)
virtual void SetDrawOption(Option_t *="")
virtual void StopEmbedding(const char *)
Called whenever timer times out.
Using a TBrowser one can browse all ROOT objects.
void RecursiveRemove(TObject *obj) override
Recursively remove obj from browser.
Longptr_t ExecPlugin(const char *name=nullptr, const char *fname=nullptr, const char *cmd=nullptr, Int_t pos=1, Int_t subpos=-1)
void CheckObjectItem(TObject *obj, Bool_t check=kFALSE)
Change status of checkbox for this item.
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
TObject * fLastSelectedObject
void SetRefreshFlag(Bool_t flag)
virtual ~TBrowser()
Delete the browser.
void StartEmbedding(Int_t pos, Int_t subpos)
TContextMenu * fContextMenu
Browser's timer.
virtual void Destructor()
Actual browser destructor.
TContextMenu * GetContextMenu() const
void StopEmbedding(const char *name="")
void RemoveCheckBox(TObject *obj)
Remove checkbox for this item.
TBrowserTimer * fTimer
Window system specific browser implementation.
virtual void Create(TObject *obj=nullptr)
Create the browser, called by the ctors.
void Refresh()
Refresh browser contents.
TBrowser(const TBrowser &)=delete
The last TObject selected by user.
void SetSelected(TObject *clickedObject)
Assign the last selected object.
Bool_t fNeedRefresh
Context menu pointer.
TObject * GetSelected() const
Bool_t GetRefreshFlag() const
void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root....
TBrowserImp * GetBrowserImp() const
Option_t * GetDrawOption() const override
Get option used by the graphics system to draw this object.
void AddCheckBox(TObject *obj, Bool_t check=kFALSE)
Add checkbox for this item.
TBrowser & operator=(const TBrowser &)=delete
void BrowseObject(TObject *obj)
void SetStatusText(const char *txt, Int_t col)
void Add(TObject *obj, const char *name=nullptr, Int_t check=-1)
Add object with name to browser.
void SetBrowserImp(TBrowserImp *i)
TClass instances represent classes, structs and namespaces in the ROOT type system.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.