Re: ... suggestions for enhancment

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue May 26 1998 - 16:05:14 MEST


Hi Valeriy,

   both your suggestions have been implemented.

Cheers, Fons.


Valeriy Onuchin wrote:
> 
> Hello Rooters!
> 
> 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

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET