66 TBrowser(
const char *
name,
void *obj,
TClass *cl,
const char *objname=
"",
const char *title=
"ROOT Foreign Browser",
Option_t *opt=
"");
111 const char *cmd =
nullptr,
Int_t pos = 1,
Int_t subpos = -1) {
112 return (
fImp) ?
fImp->ExecPlugin(
name, fname, cmd, pos, subpos) : -1;
115 if (
fImp)
fImp->SetStatusText(txt, col);
118 if (
fImp)
fImp->StartEmbedding(pos, subpos);
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
ABC describing GUI independent browser implementation protocol.
Called whenever timer times out.
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.
TBrowserImp * fImp
!Window system specific browser implementation
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
TObject * fLastSelectedObject
!The last TObject selected by user
void SetRefreshFlag(Bool_t flag)
virtual ~TBrowser()
Delete the browser.
void StartEmbedding(Int_t pos, Int_t subpos)
TContextMenu * fContextMenu
!Context menu pointer
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
!Browser's timer
virtual void Create(TObject *obj=nullptr)
Create the browser, called by the ctors.
void Refresh()
Refresh browser contents.
TBrowser(const TBrowser &)=delete
void SetSelected(TObject *clickedObject)
Assign the last selected object.
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.
Mother of all ROOT objects.
TObject()
TObject constructor.