[ROOT] Signals from the TBrowser.

From: Clark McGrew (clark.mcgrew@sunysb.edu)
Date: Mon Dec 30 2002 - 17:58:49 MET


Hello,

I hope I haven't missed this in the manual, or examples page.  I'm
building an event browser and would like to leverage the TBrowser
class.  But, I need some sort of signal or callback to indicate that an
object has been selected.  Does the browser a generic object selected
signal, for instance Emit("ObjectBrowsed(TObject* obj)", theObject)?

For my own objects, I can generate a signal by placing an Emit in the
Browse method; however, I would also like to know when a TFile is opened
from the menu or selected so that I can check if it contains event
information.  I could get a similar effect by adding a mime action for
my files, but I think that means picking a "magic" file name and looses
the ability of opening them from the browser menu.  Is there a signal
that I can connect which will tell me when a file is opened from the
browser?

Thanks,
Clark
-- 
Clark McGrew	                State University of New York, Stony Brook
(clark.mcgrew@sunysb.edu)	631-632-8299 (office)



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET