Subject: Re: Thoughts on the Clip Art Dialog.
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Sun Jun 17 2001 - 10:13:11 CDT
Quoting Martin Sevior <msevior@mccubbin.ph.unimelb.edu.au>:
>
> Hi Folks,
> I've been thinking about how to do the clip art dialog. The gnome
> version is almost purely platform specific. To do a gtk version I think
> I'll need to considerabally extend the XP preview class to enable
> previews with scroll bars. This will be quite some work and of course
> will
> require other platform maintainers to implement some platform specfic
> code.
>
> Another possibility would be to extend the current AbiPreview class to
> enable preview modes with scrollbars. The idea would be to use AbiWord
> itself to layout the images and text and to use to already existing code
> to handle XP scrolls. This will probabally be slower to the user than a
> pure preview. On the hand I think it will be easier to implement and
> will
> provide useful code we could reuse elsewhere.
>
> I favour this route. I anticipate getting this done by the end of the
> week. It will not be trivial.
>
> Other opinions?
Hi Martin,
Wow, you're taking the high-road here ;-) What I was thinking for the GTK+
platform itself, which has its similarities for other platforms:
Create a GtkTable inside of a GtkScrollWindow. Each cell of the GtkTable gets
its own GtkDrawingArea (created by our createDrawingArea() function). We create
a GR_Graphics for each GtkDrawingArea and scale/embed the pictures there.
To populate the dialog, I'm thinking of something like the following:
dir = opendir();
file = readdir();
// insert file in table
Much simpler, yes?
Take care,
Dom
This archive was generated by hypermail 2b25 : Sun Jun 17 2001 - 10:13:33 CDT