Open ulmangt opened 12 years ago
GlimpseLayout implementing GlimpsePainter causes the potential for bugs because GlimpseLayout provides both addPainter and addLayout methods.
A GlimpseLayout should never really be passed as an argument to addPainter (because it won't take part in the layout). But it's currently allowed.
Suggested solution:
GlimpseLayout should have a single: method:
add( GlimpsePainter )
while reacts accordingly if the runtime type of the GlimpsePainter is GlimpseLayout.
addGlimpseLayout and addGlimpsePainter would either stick around for compatibility sake, or be removed.
GlimpseLayout implementing GlimpsePainter causes the potential for bugs because GlimpseLayout provides both addPainter and addLayout methods.
A GlimpseLayout should never really be passed as an argument to addPainter (because it won't take part in the layout). But it's currently allowed.
Suggested solution:
GlimpseLayout should have a single: method:
add( GlimpsePainter )
while reacts accordingly if the runtime type of the GlimpsePainter is GlimpseLayout.
addGlimpseLayout and addGlimpsePainter would either stick around for compatibility sake, or be removed.