Subject: Re: should the View know about the Frame?
From: Mike Nordell (tamlin@algonet.se)
Date: Mon Jan 29 2001 - 20:49:43 CST
Sam TH wrote:
>A little design question: should the view know what frame it is
>associated with?
This is no "little" design question. No! View should know *nothing* about
its surrounding environment. As far the view is concerned it should know
about the document (which is "const" from the Views POV) and a something to
paint on (GR_Graphics). It must of course also know a few other things (like
its own size) but it should know *nothing* about its container.
> This could be implemented on the fv_View end with just a pointer and a
> couple of accessor functions. However, would the burden on the frame
> to keep this correct be a problem?
Ehh, I'm surely missing somithing here when I read "This could be
implemented on the fv_View end". What "This"? If I understood that I'd
surely be able to give an educated (and correct) answer to the question re.
the frame.
The View should ultimately be what its name implies, not something that also
handles input *of any kind*. We can do this the correct way or the Q'n'D'
way. The latter is what we currently have, and I suppose your question has
something to do with this design since this is one of the things that are
currently hurting us.
/Mike - please don't cc
This archive was generated by hypermail 2b25 : Mon Jan 29 2001 - 20:51:59 CST