Bill Baxter wrote:
> I was thinking about drawing a component for an app, and how to deal
> with communication between the host app and the drawing component, and
> dealing with undo/redo, and with giving the component toolbars etc,
> when it occurred to me that the STC text control [*] solves a very
> similar problem, it just provides an interface to a rich text document
> model rather than a drawing document model.  All the issues that it
> has to deal with are pretty much the same.  It might be a good idea to
> copy its API.

I've never used STC at all, so thanks for the suggestion. I should take 
a look at it.

I've been thinking about this some, and one issue I have is that I"m not 
sure what role FloatCanvas itself should play. I've really always 
thought of it as the Viewer part of any potential app. I think various 
different uses are going to require fairly different types of documents, 
so we really don't want the whole document model built in to 
FloatCanvas. However, FloatCanvas should "play well" with those various 
document models.

As an example, I think STC is really designed not for all types of text 
documents, but really code in particular, and I don't think it plays all 
that well with other types of docs.

I haven't really built anything yet that really had "documents", but 
I've figured that when I do, I'll create Graphics objects that are used 
in the document that are subclassed from FloatCanvas DrawObjects.

>  Anyway I could use something like a
> drop-in figure editing component.  Maybe that's what OGL is though?

It depends on what type of figures your talking about. My impression of 
OGL is that it is designed for boxes-connected-by-lines type drawings.

> Then there's wxArt2D too, but I don't think there are py bindings for
> that.

Nope. and I understand that it uses a lot of Virtual method which makes 
wrapping it a pain.

> I never paid much attention to OGL because it was all aliasy.
> But maybe now with the new GCDC it's gotten a facelift?

Only if someone as adapted the code. And FloatCanvas is using the same 
old aliasy DCs too. (though see recent messages here from HR Gerber, 
he's been playing with the new GraphicsContext, with some nice results.

Anyway, I'd love someone to build a nice figure editor with FloatCanvas, 
hint, hint.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to