|
Boost : |
Subject: Re: [boost] Thoughts for a GUI (Primitives) Library
From: Gwenio (urulokiurae_at_[hidden])
Date: 2010-10-15 15:27:58
Question regarding the design of the event handler: should there be one
generic class that is designed to hold event handling data or should event
handlers derive from an abstract base class?
>From the view point of the implementation, all event handlers need to be the
same. Having an abstract base class for event handlers would make if easier
to meet the various requirements people have, as they can define their own.
So the question is what reasons are there to make using an abstract base
class a bad design choice, if any? And what are the drawbacks to using it if
they exist?
Also, if handlers are derived for an abstract class, should controls be
associated with both a handler and some object that stores date or should
those two things be one and the same?
Once these questions are answered, it will be time to focus on specific
requirements and the implementation of the library.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk