Calculator

Matteo Agostinelli matteo at agostinelli.me
Thu Apr 1 14:15:58 CEST 2010


Hi,

I am currently working on improving the calculator runner, by adding an 
optional dependency on libqalculate. If the library is found, the calculator 
runner will be built against libqalculate and it will support "advanced" 
operations (such as currency conversion, unit conversion, equation solving, 
...). Otherwise it will fall back to the existing code that uses QtScript. I 
have tested the runner for some weeks now and it is stable.

I would like to hear some opinions about these points:
- currently there are two calculator plasmoids, with and without libqalculate 
support (btw I am the author of the qalculate one). I think that we could use 
a similar approach here as with the runner, i.e. have a unified calculator 
plasmoid that optionally depends on libqalculate.

- a Qalculate backend for Cantor is currently in playground (not developed by 
me). It is already quite stable and I think It would be nice to have it 
included in SC 4.5.

- one problem is that the runner, applet and Cantor backend have some 
duplicate code (e.g. evaluation options, support for QString, ...). As Aaron 
suggested some time ago, maybe it is worth it to add a wrapper library for 
libqalculate use in KDE (something like libkdeqalculate, feel free to suggest 
a nicer name ;). Where should this library be placed? Would 
kdebase/workspace/libs be an appropriate place?

Of course I volunteer to take care of these tasks before 4.5 freeze ;)

Thanks for your attention,
Matteo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100401/3b2b8e9c/attachment.sig 


More information about the Plasma-devel mailing list