I have 2 suggestions for enhancment
1. I need to have different icons in my TBrowser
for different objects of the same class.
Corrections described below could make it possible:
- introduce new method to TObject
virtual const Text_t* GetIconName() { return 0;}
- corerect TRootIconBox::AddObjItem(const char *name, TObject *obj,
TClass *cl)
(see TRootBrowser source)
replacing the string
GetObjPictures(&pic, &spic, obj, cl->GetName())
by
GetObjPictures(&pic, &spic, obj, obj->GetIconName() ?
obj->GetIconName() : cl->GetName())
2. THtml class of ROOT is great! but
it would be nicer to have methods
void WriteHtmlHeader(ofstream& out, Char_t* title)
void WriteHtmlFooter(ofstream& out, Char_t* dir, Char_t* lastUpdate,
Char_t* author, Char_t* copyright)
as public and virtual
Good luck to everybody! Valery