From kde-kimageshop Thu Oct 09 10:45:13 2003 From: Boudewijn Rempt Date: Thu, 09 Oct 2003 10:45:13 +0000 To: kde-kimageshop Subject: Re: Finishing a paint action. X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=106569639005377 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============72135998725894312==" --===============72135998725894312== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_5wTh/1uLUplZLyx"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_5wTh/1uLUplZLyx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 09 October 2003 12:32, Patrick Julien wrote: > > And the device->anchor()? > > Anchor is for actually freezing the coordinates of the device. I.e. > freezing a layer on the display. > But if I call fillRect and don't do that, I actually don't get to see anyth= ing on the display. Is there another way of showing the results of a KisPainter= =20 action? > That would be the gist of it, unfortunately it won't work if you're using > raw pixel copies like you're doing right now tho. The first tool I made, for testing purposes, used fillRect, which should wo= rk,=20 shouldn't it? And if I use KisPainter's bitBlt to push the raw pixel copies= =20 back, then undo/redo should work too, I guess. Only then I have to get the= =20 image data back into KisPixelData again. > > > Does the painter provide all undo/redo information? If so, what's the > > KnamedCommand subclass for that's present in every tool? > > Hmm, I don't actually remember, but the KCommand's returned from KisPaint= er > are only for tile modifications. There are commands for other, different > types of actions, for example renaming a layer. > > Also, the old tools we're doing all their commands and their undo support > individually. > Okay, so I can scratch all that. That code was still present in=20 kis_tool_selecetion_rectangular, so I thought it was necessary. =2D-=20 Boudewijn Rempt | http://www.valdyas.org/index2.html --Boundary-02=_5wTh/1uLUplZLyx Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/hTw5daCcgCmN5d8RAiTBAKDoGx+7ne2fgGa0XrPmg0mcR+mgKACgiMmB ZqmIFgW1t0LVARFOqH1xDsQ= =Z7RM -----END PGP SIGNATURE----- --Boundary-02=_5wTh/1uLUplZLyx-- --===============72135998725894312== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@mail.kde.org http://mail.kde.org/mailman/listinfo/kimageshop --===============72135998725894312==--