From kde-kimageshop Sat Oct 04 12:58:47 2003 From: Boudewijn Rempt Date: Sat, 04 Oct 2003 12:58:47 +0000 To: kde-kimageshop Subject: Re: krita tools X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=106527239816529 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============91294567058380327==" --===============91294567058380327== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_IQsf/ypRPSxWHgs"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_IQsf/ypRPSxWHgs Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Saturday 04 October 2003 13:59, Patrick Julien wrote: > > All right, I'll be waiting. > Well, this morning I implemented the first bit of support for QTabletEvent,= =20 and took me along a tour of the Krita innards, so I'm a bit more confident= =20 now.=20 I still need to expand Krita to know that it can have three different acti= ve=20 tools now, of course, instead of just one: mouse, stylus and eraser, but=20 that's not that urgent, and it's just administrative code coupled with a bi= t=20 of ui. I've also started on a KisToolPaint base class analogous to KisToolNonPaint= ,=20 with a silly test class as a first client. And here I run into a bit of KDE= =20 arcana that I don't know how to handle; perhaps I should CC to kde-devel, i= f=20 you cannot say out of hand what I'm doing wrong. The goal is to have a mouse-press event paint something to the image, so I= =20 implemented the following, analogous to similar code in=20 KisToolRectangularSelect: void KisToolTest::mousePress(QMouseEvent *e) { KisImageSP img =3D m_view -> currentImg(); if (img) { KisPaintDeviceSP parent =3D=3D img -> activeDevice(); if (parent) { // use parent to paint something, no matter what m_doc -> addCommand(new TestCmd(img)); } } } Compiling this results in the following error: Making all in tools make[1]: Entering directory `/data/src/kde.HEAD/koffice/krita/tools' if /bin/sh ../../libtool --silent --mode=3Dcompile --tag=3DCXX g++ -DHAVE_C= ONFIG_H=20 =2DI. -I. -I../.. -I./../core -I./../ui -I../../lib/kofficeui=20 =2DI../../lib/kofficeui -I../../lib/kofficecore -I../../lib/kofficecore=20 =2DI../../lib/store -I../../lib/store -I../../lib/kwmf -I../../lib/kwmf=20 =2DI../../lib/kopainter -I../../lib/kopainter -I./../core/strategy/=20 =2DI/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include =20 =2DDQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wun= def=20 =2DWall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=3D500=20 =2DD_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2=20 =2DWformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-n= ew=20 =2Dfno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL=20 =2DDQT_NO_COMPAT -DQT_NO_TRANSLATION -MT kis_tool_test.lo -MD -MP -MF=20 ".deps/kis_tool_test.Tpo" \ -c -o kis_tool_test.lo `test -f 'kis_tool_test.cc' || echo=20 './'`kis_tool_test.cc; \ then mv ".deps/kis_tool_test.Tpo" ".deps/kis_tool_test.Plo"; \ else rm -f ".deps/kis_tool_test.Tpo"; exit 1; \ fi In file included from /opt/kde3/include/kdebug.h:195, from kis_tool_test.cc:198: /opt/kde3/include/ksharedptr.h: In destructor `KSharedPtr::~KSharedPtr() [with T =3D KisPaintDevice]': /opt/kde3/include/ksharedptr.h:143: instantiated from=20 `KSharedPtr::operator T*() const [with T =3D KisPaintDevice]' /opt/kde3/include/kdebug.h:195: instantiated from here /opt/kde3/include/ksharedptr.h:122: error: `_KShared_unref' undeclared (fir= st use this function) /opt/kde3/include/ksharedptr.h:122: error: (Each undeclared identifier is reported only once for each function it appears in.) kis_tool_test.cc: In member function `virtual void KisToolTest::mousePress(QMouseEvent*)': kis_tool_test.cc:79: warning: unused parameter `QMouseEvent*e' make[1]: *** [kis_tool_test.lo] Error 1 make[1]: Leaving directory `/data/src/kde.HEAD/koffice/krita/tools' make: *** [all-recursive] Error 1 Have you got any idea, or had I better ask on kde-devel? =2D-=20 Boudewijn Rempt | http://www.valdyas.org/index2.html --Boundary-02=_IQsf/ypRPSxWHgs Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/fsQIdaCcgCmN5d8RAt1uAKDOX0O/2uXaqBXI6sG7VGuoSLj6FACgv5IV sNufg8A1njygDe0M57LfElY= =fEGm -----END PGP SIGNATURE----- --Boundary-02=_IQsf/ypRPSxWHgs-- --===============91294567058380327== 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 --===============91294567058380327==--