Qalculate / qalculate-gtk

Qalculate! GTK+ UI
https://qalculate.github.io/
GNU General Public License v2.0
945 stars 68 forks source link

Multiple result base #490

Open TheNicker opened 1 year ago

TheNicker commented 1 year ago

Currently the result base is only one of many to choose from: hex,dec,oct,bin, etc.. It would be very convenient to view a number in multiple bases simultaneously like windows calc when in programmer mode

image
hanna-kn commented 1 year ago
Screenshot_20230822_162202 Screenshot_20230822_162558 Screenshot_20230822_162708
TheNicker commented 1 year ago

Hi @hanna-kn , First, thank you for this software, it helped me in my recent project.

I can see that you showcased the Qt version, and I also noticed that except libqalculate, the Qt and GTK versions are completely different.

I was using the GTK version, so by pressing CTRL+B, I got the number conversion window. However it is sepereated from the main window and doesn't update on-the-fly as in the Qt version

I have no problem running both the Qt and the GTK version under gnome, though ideally only one flavour should be used. It seems like the GTK version is more popular and richer in features, so it'll be helpful to get the full featured multi result-base into it.

hanna-kn commented 1 year ago

I mainly intended to show the multiple number bases displayed above the programming keypad (Ctrl+P), in the first screenshot. The number bases view in the Qt version is nicer, but I've not been able to design anything similar which fits the main window of the GTK version.

TheNicker commented 1 year ago

I'm trying to understand the issue. Is it a GTK technical issue or visual design decision that needs to take place, or else?

hanna-kn commented 1 year ago

It is primarily a visual design issue.

TheNicker commented 1 year ago

In these scenarios, personally I prefer functionality over aesthetics.

It's OK if it's not perfect, worst case it can be opted out by default

hanna-kn commented 1 year ago

In these scenarios, personally I prefer functionality over aesthetics.

The programming keypad in qalculate-gtk provides the same functionality, if calculate-as-you-type is activated, but the visual design of the bases dock window in qalculate-qt improves the usability.

TheNicker commented 1 year ago

The programming keypad in qalculate-gtk provides the same functionality

Last time I checked, "Number Bases" window doesn't update while typing even if "caluclate as you type" is activated. It needs to be reopened or refreshed by CTRL+B

hanna-kn commented 1 year ago

The programming keypad in qalculate-gtk provides the same functionality

Last time I checked, "Number Bases" window doesn't update while typing even if "caluclate as you type" is activated. It needs to be reopened or refreshed by CTRL+B

That is true, the number bases window does not update automatically when the main expression entry or result is updated (the number bases window were mainly intended for separate use).

I'm however referring to the alternative "programming" keypad in the main window, opened with Ctrl+P or the left-most button at the top of the keypad.

(I accidentally clicked the "Close with comment" button)