RPCalc is a recent discovery for me. As originally written, it runs as a
standalone program, and requires Qt5. You don't need to use the installer
package for Windows. Just download the Linux tarball, decompress it, and
navigate to the "source" directory. The file to run is - surprise! -
rpcalc.py. It seems to do everything I want from an RPN calculator, except
that copying the stack bottom is awkward.
To adapt it for Leo, one change was to combine all the source files into
one Leo @file tree. Another was to change the imports to use leoQt, which
makes it easier to adapt to Qt5 vs Qt6, and anyway is essential if the
program is to run in a Leo frame. I'm still finding little things that
aren't working for both Qt5 and Qt6 - mostly enums and flags - but I'm
making progress. But overall, most of the functionality works and the thing
is usable as it stands. I'll post an updated outline soon, and after some
more work it should be ready to appear in the Leo repo.
On Sunday, April 30, 2023 at 11:55:06 AM UTC-4 jkn wrote:
I have wondered about suggesting something like this for a while, so thank
you Thomas. My 'main' editor has a simple HP calculator built into it and
it was an easy step to consider one for Leo.
I didn't know about RPNCalc (I have some Android RPN apps on my phone, as
well as a real HP-35s), but it sounds like a good choice.
I've used HP RPN calculators since way back in HP-45 days. I liked
the HP-25C even better, and finally ended up using an HP-15C. Mine still
works though it's slightly misplaced just now. On my computer I've been
using Free42, which seems to me to be a good balance between readability,
complexity, and capability. Now it looks like RPCalc will be taking over
from Free42.
I will take a look at this shortly - thanks.
J^n
On Sunday, April 30, 2023 at 12:03:14 PM UTC+1 Edward K. Ream wrote:
On Sat, Apr 29, 2023 at 12:42 PM Thomas Passin <[email protected]> wrote:
I have adapted the open-source *RPCalc* calculator to run in a tab in the
Leo log frame. This calculator is a Reverse Polish Notation (RPN) style
calculator, which IMHO is much better than the algebraic-entry type. It
is the type of calculator that Hewlett-Packard made famous.
Thanks for this work, Thomas. The calculator appears as expected for me.
PR #3301 <https://github.com/leo-editor/leo-editor/pull/3301> is a draft
containing the files you mention. It's a good start. The PR lists three
problems.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/df848cb3-0e2f-430c-be0e-32eb3959bd43n%40googlegroups.com.