From kde-kimageshop Mon Oct 20 13:53:01 2014 From: Dmitry Kazakov Date: Mon, 20 Oct 2014 13:53:01 +0000 To: kde-kimageshop Subject: Re: [calligra/krita-chili-kazakov] krita: Ported the Transform Tool onto primary/secondary actions f Message-Id: X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=141381319112633 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============7542430164578881938==" --===============7542430164578881938== Content-Type: multipart/alternative; boundary=089e013d0fe479ff770505db08a0 --089e013d0fe479ff770505db08a0 Content-Type: text/plain; charset=UTF-8 Well, right now to reimplement some trivial action one should push about 9 method through the entire hierarchy of tools/strategies. Each one accepts a enum that should be parsed using some 'switch' or 'if' construction. It is really hard to maintain and design. And, yes, boost::function approach will not solve the problem entirely. We really need to invent something sane here... On Mon, Oct 20, 2014 at 5:01 PM, Boudewijn Rempt wrote: > On Friday 17 October 2014 Oct 11:29:41 Dmitry Kazakov wrote: > > > Probably, we should use some boost::function-based action assignment > here. > > Well, probably not... Let's try to come up with something that isn't > totally alient to people used to the way Qt does stuff, and still simple > enough :-). > > -- > Boudewijn Rempt > http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl > > _______________________________________________ > Krita mailing list > kimageshop@kde.org > https://mail.kde.org/mailman/listinfo/kimageshop > -- Dmitry Kazakov --089e013d0fe479ff770505db08a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well, right now to reimplement some trivial action one sho= uld push about 9 method through the entire hierarchy of tools/strategies. E= ach one accepts a enum that should be parsed using some 'switch' or= 'if' construction. It is really hard to maintain and design. And, = yes, boost::function approach will not solve the problem entirely. We reall= y need to invent something sane here...

On Mon, Oct 20, 2014 at 5:01 PM, Boudewijn = Rempt <boud@valdyas.org> wrote:
On Friday 17 October 2014 Oct 11:29:41 Dmitry Kazakov= wrote:

> Probably, we should use some boost::function-based action assignment h= ere.

Well, probably not... Let's try to come up with something that i= sn't totally alient to people used to the way Qt does stuff, and still = simple enough :-).

--
Boudewijn Rempt
http://www.valdyas.org= , http://www.krita.o= rg, http://w= ww.boudewijnrempt.nl

_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop



--
Dmitry Ka= zakov
--089e013d0fe479ff770505db08a0-- --===============7542430164578881938== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Krita mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============7542430164578881938==--