--===============0386105052== Content-type: multipart/signed; boundary=nextPart82776648.9t3zfvgb2k; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit --nextPart82776648.9t3zfvgb2k Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 05 May 2009, Volker Krause wrote: > On Tuesday 05 May 2009 01:16:23 Ingo Kl=F6cker wrote: > > On Tuesday 05 May 2009, Thomas McGuire wrote: > > > Hi, > > > > > > now that KPIMTextEdit is basically complete, I wanted to support > > > images in signatures. > > > The signature editor is in kpimidentities, so kpimidentities > > > needs to link to kpimtextedit so that the signature editor there > > > can support images. > > > > > > Problem is, kpimtextedit already links to kpimidentities, because > > > it has some functions to insert signatures into the text edit. > > > > Why do those functions exist in kpimtextedit? Wouldn't it be > > sufficient to have a method insertSignature() which is called by > > somebody (e.g. KMail) who can link against both libraries? > > right, getting rid of these looks like the best way to solve this. > Can't we move those to kpimidentities instead? > > > > So there is a link cycle between kpimtextedit and kpimidentities, > > > and CMake won't let me do that. > > > > > > Any idea how to resolve that? One idea would be to move all of > > > kpimtextedit (two classes at the moment) to kpimidentities and > > > get rid of the kpimtextedit library altogether. > > > The downside of this is that a text edit doesn't really fit > > > there. > > > > Exactly. > > > > > Does anybody see a better way out of this situation? > > > If not I'll move the classes soon. > > > > I object. Creating yet another libkdepim or libkpimutils (*sigh*) > > is a no-go. Putting everything and the kitchensink in one library > > is no solution for bugs in the class and/or library design. The > > solution is to fix the design. > > I agree. > > > One solution would be to split kpimidentities into a backend > > library kpimidentities-core (ideally using only non-GUI libraries) > > providing access to the PIM identities and a second library > > kpimidentities-ui providing the UI components for editting the PIM > > identities. I suppose this would allow kpimtextedit to link against > > kpimidentities-core and kpimidentities-ui to link against > > kpimtextedit. (The names of the libraries are just suggestions.) > > I'm not sure if such a split would be BC. Probably needs some kind of > kdepimidentities dummy lib that links to both new ones. Hmm, yeah. BC. Totally forgot about that. To bad that the good old days=20 when we didn't have to think about BC in kdepim are gone. Not! :-) > > A similar solution, but with the benefit that it doesn't increase > > the number of libraries, would be to merge kpimidentities-ui and > > kpimtextedit into kpimui. Then kpimidentities-core could keep the > > name kpimidentities. I think I prefer this solution. > > kpimui sounds dangerously like yet another libkdepim though... Yes. Kind of. Although it would be reserved for UI related classes (just=20 like kdeui). Now we do have a new very small library called=20 kpimtextedit with just a few classes. I don't really like=20 libkdepim-style libraries, but I also don't really like having 1001=20 small libraries. *shrug* Regards, Ingo --nextPart82776648.9t3zfvgb2k Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkoAuuAACgkQGnR+RTDgudgMagCePM5gChg96dWM75hkEXo9Kh5f DG4An1AlGJgiHj7kodK7Bn80ZiUzKc3w =+F7n -----END PGP SIGNATURE----- --nextPart82776648.9t3zfvgb2k-- --===============0386105052== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/ --===============0386105052==--