From: Bob Hanson <hansonr@st...> - 2006-09-27 14:26:58
developer notes (maybe I should do this more often?):
clipboard: I just added a "Paste" button on the application "Edit" menu.
echo: This was interesting. The problem was that you couldn't put echo
text to the screen prior to model loading or after a ZAP. This was
because viewer.modelManager.frame was set to null between files, and all
shapes, including echo, are children of Frame.
To enable text writing there has to always be a frame in place. So I
reconfigured the Frame constructor -- added a new, "no model" Frame
constructor, actually -- so that one no longer needs to have any data at
all from the JmolAdapter in order to have a modelManager.frame.
Interestingly, in doing this I found that Frame.adapter no longer needed
to be global, as it is just used temporarily anyway. I think the
initialization code in Frame is now much more straightforward.
There are going to be some ramifications of having that frame there that
need working out, because it's more than just the echo command that is
enabled now. I'll keep testing. But there's no doubt in my mind that
this is a good change -- just have to follow it up now.