Re: Multiple documents



Hi,

That is pretty much the way I thought I would have to do it. However, I am experiencing some confusion about how to ensure that callbacks from the canvas end up resulting in changes on the correct image. I havent written any code for multiple documents yet, since I am still thinking about the design of the structures etc.

I also need to consider a way for multiple views of the same document to be updated whenever changes are made... I think the structs will have a lot of links in them so it is easy to pull out the ones needed in any given circumstance!

Is there any chance you could point me in the direction of your code so I can see how the callbacks are working? This is the area I am having difficulty with (probably because I am still new to GTK). I am making a pixel-based drawing program myself, but I dont intend it to compete with the GIMP - it would have more of a focus on image creation rather than image manipulation.

As far as the type of MDI I aim to use, it will be pretty-much like the GIMP in style - ie. no tabs and no WiW. Ideology aside, I find WiW claustrophopic and I am not 100% sure that tabs are suitable for images.

Best regards,

Chris.


From: Jim Parker <hopeye cfl rr com>
To: Chris Garrett <garrett91 hotmail com>
CC: gtk-app-devel-list gnome org
Subject: Re: Multiple documents
Date: Mon, 25 Aug 2003 15:00:19 -0400

G'Day !

I do not know if this is the best way, but I am using a linked list of struts, with each strut containing the information needed by each document (BTW I'm doing a vector drawing program).

Works well for small numbers of documents, never tested for large sets ...

cheers,
Jim Parker


On 2003.08.25 14:22 Chris Garrett wrote:
Hi all,

Is there a standard / recommended way to write an application that can open more than one document at a time, and that allows more than one view of each document (ala GIMP)?

If so, is there a nice, small, simple example I can look at to get started? The source code to the GIMP is too large for my tired brain at the moment :o(

BTW, I am using GTK2.2

Best regards,

Chris.

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]