From kde-kimageshop Thu Jan 22 13:11:16 2004 From: Patrick Julien Date: Thu, 22 Jan 2004 13:11:16 +0000 To: kde-kimageshop Subject: Re: Loading pipe brushes Message-Id: <200401220811.17156.freak () codepimps ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=107477709223336 On January 20, 2004 06:05 pm, Boudewijn Rempt wrote: > I've done almost all the infrastructure for loading Gimp pipe brushes, > except the actual loading -- I say, this is one silly file format -- a > rather stupid header, one line with the name, and the next line with number > of real brushes embedded in the file (in string format, so apparently needs > strtol), a space, and a set of instructions called 'parasite' in Gimp > parlance. And then the brushes, with no indication of what starts where or > how many bytes each brush takes catted together. > > Currently, the KisImagePipeBrush class is a subclass of KisResource, but > that should probably be KisBrush, so both types of brushes can go into the > same container. I think it would be best to have KisImagePipeBrush contain > a list of brushes, and then I might need to add another constructor to > KisBrush, not with a filename, but with a pointer to the start of the > QValueVector that contains the brush's bytes. Use a reference to a std::vector, save yourself some trouble. > > All this aint much fun... Why didn't they use a file format with a bit of > structure! > > I'm not checking in right now -- nothing is broken, but then again, no > functionality has actually been added. _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop