[kplato] Some code for KPTProject::getDuration()
Thomas Zander
kplato@kde.org
Mon, 20 Aug 2001 19:41:37 +0200
--JP+T4n/bALQSJXh8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Aug 19, 2001 at 07:03:52PM +0100, John D Lamb wrote:
> Some comments:
>=20
> > Hmm? Doing a rm *.o and an make install takes a whopping 30 seconds
> > here, is it so slow for you?
>=20
> No. it's faster. I wanted some simple test code to show how getDuration
> could work and illustrate some of the potential problems.
>=20
> > Well anyway, it does not compile for me, so I was stuck reading code.
> > (the error: undefined reference to `cout' tells all ;)
>=20
> Curious: it compiles for me. I don't really believe you couldn't guess
> the right #include directive. The cout is there to test the code.
Hmm, I think you should know that I am not really a c++ programmer,=20
I know c and java. And learned some c++ tricks over the time ;)
> > Have you used QT? The reason I use it is because it solves all sorts of
> > problems the STL has, not the least being unicode.
>=20
> Actually, I don't see unicode as a problem because it's not used for
> calculating durations etc and so could be put in a derived class.=20
Naming the nodes seems important to me, but you might want to create a
wrapper class if you wish.
> It's
> QList and QDateTime that are more difficult to avoid. Although I'd
> prefer the calculations to be fully QT-free,=20
I don't mind making the core QT free, its just that I can't do it. I don't=
=20
have _any_ experience with STL, I never use the class string for example.
If you can provide the STL implementation of KPTDuration and friends,=20
i'm fine with it.
If it is to hard for you to do, then why not ignore the problem and pospone
it until someone wants to use the core classes.
I don't see the need for this, as its for a possible future new-gui. Then
I say, lets fix the thing in that possible future.
Again, if you want to do this in STL, I must warn you I have little experie=
nce
in that, but I will support that decision. I'll also try my best to master
the structures STL provides. (I'll borrow a book from a collegue or whateve=
r ;)
Your call.
--=20
Thomas Zander zander@earthling.n=
et
The only thing worse than failure is the fear of trying something new
--JP+T4n/bALQSJXh8
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7gUvRCojCW6H2z/QRAuptAJ941xbuhch27Q1bFRUhApsMQxyp/gCeKosr
gA5ZR5SuDd9OuO5VexCknRQ=
=neRg
-----END PGP SIGNATURE-----
--JP+T4n/bALQSJXh8--