Tools

Patrick Julien freak at codepimps.org
Thu Nov 6 14:36:31 CET 2003


On November 6, 2003 01:17 am, Boudewijn Rempt wrote:
> On Thursday 06 November 2003 01:52, Patrick Julien wrote:
> > I'm moving forward with the architecture changes since I don't think it
> > actually prevents such a model from working.  It's relatively
> > straightforward to only pick up the color change if and only if you are
> > the current tool.
>
> Well, I'm looking forward to seeing the code -- by the way, is there some
> way to distribute a kispainter transaction over several kispainter
> modifications, i.e. have begintransaction in mousepress, and endtransaction
> in mouserelease?

Yes, you just use your own custom macro command.  So instead of 

	gc.beginTransaction("My paint action");
	// Use gc to paint here
	gc.endTransaction();

You provide a KMacroCommand

	gc.beginTransaction(&macro); // or m_macro or whatever
	// Use gc to paint here
	gc.endTransaction();

You can then pass macro to has many gc as you want.


>
> > I would love to see what this widget and how productive people would be
> > with it.  In any case, to recap, I'm moving forward but I think this
> > palette idea is still relevant and this doesn't preclude it's inclusion
> > when it's get written, in fact, I would love to see it.
>
> I'll probably start working on something like that when the brush I'm
> working on right now is a bit more what intended.

BTW, I'm almost done with the code, however, I've broken all the tools 
again :)  They need to be ported.




More information about the kimageshop mailing list