| Summary: | Feature request: count the result on the fly | ||
|---|---|---|---|
| Product: | [Applications] kcalc | Reporter: | Eugene Savitsky <eugene.savitsky> |
| Component: | general | Assignee: | Gabriel Barrantes <gabriel.barrantes.dev> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | carl, gabriel.barrantes.dev |
| Priority: | NOR | ||
| Version First Reported In: | 24.01.95 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/neon/snap-packaging/kcalc6/-/commit/5118570f6f8785ff8f7b471938bbf7b4784a79ce | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Step-by-step different situations | ||
|
Description
Eugene Savitsky
2024-01-31 16:31:04 UTC
(In reply to ezh from comment #0) > In bug 470371 was the feature editing the formula added. > > Now when you edit the formula you have to press Enter to see the changed > result. > > I would suggest the counting would automatically go without pressing Enter, > on the fly. > When you enter 3+3 the result immediately shows 6, when you change to 3+33 > the result immediately shows 36. This would actually be a simple change, however I think it would be better to just clear the result while editing the input, seems more consistent... Because if an invalid input is reached while editing, then the result will disappear and then appear once the input becomes valid again. (In reply to Gabriel Barrantes from comment #1) > This would actually be a simple change, however I think it would be better > to just clear the result while editing the input, seems more consistent... > Because if an invalid input is reached while editing, then the result will > disappear and then appear once the input becomes valid again. I'm using for 24 years this Windows calculator. It changes the result on the fly: you add a value and it would immediately counted in the result, no need to press anything else. If you get an error (dividing to 0), then to result is shown, if you press enter, then you will get the "error" message. Created attachment 167602 [details]
Step-by-step different situations
Step-by-step different situations with Advanced Calculator (a year 1999 Windows program).
I may share it if needed, it is a freeware.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/84 (In reply to ezh from comment #3) > Created attachment 167602 [details] > Step-by-step different situations > > Step-by-step different situations with Advanced Calculator (a year 1999 > Windows program). > I may share it if needed, it is a freeware. Feel free to give it a try and provide any relevant feedback. How can I do that? I'm not a programmer, nor a power user on Linux. In Neon Unstable I do not see the change. KCalc Version 24.04.70 Git commit 5118570f6f8785ff8f7b471938bbf7b4784a79ce by Gabriel Barrantes. Committed on 07/05/2024 at 14:45. Pushed by carlschwan into branch 'master'. Show result while editing input Show result while editing input without the need to press the equal button, if the input reaches an invalid state (non computable) during editing, result will be cleared or not depending on the error, inputs that fail to be parsed like "1+#" trigger a result clear, inputs that yield a math error like "1/0" also clear the result, however intermediate inputs like "1+2+" will keep the "3" in the result display. If the user attempts to commit an invalid input using the equal button, an error message will appear as previously implemented. Changing the base mode or the trigonometric mode also triggers a result recalculation and update. A backspace signal clears the result display if the input reaches an invalid state regardless of the error type. Results are not committed to history unless the equal button is pressed. Change default result display to be empty instead of "0", it will also be empty if the input goes back to empty. M +57 -14 kcalc.cpp M +4 -1 kcalc.h M +30 -16 kcalc_core.cpp M +12 -3 kcalc_core.h M +10 -3 kcalc_display.cpp https://invent.kde.org/utilities/kcalc/-/commit/5118570f6f8785ff8f7b471938bbf7b4784a79ce Git commit 5118570f6f8785ff8f7b471938bbf7b4784a79ce by Gabriel Barrantes. Committed on 07/05/2024 at 14:45. Pushed by carlosdem into branch 'master'. Show result while editing input Show result while editing input without the need to press the equal button, if the input reaches an invalid state (non computable) during editing, result will be cleared or not depending on the error, inputs that fail to be parsed like "1+#" trigger a result clear, inputs that yield a math error like "1/0" also clear the result, however intermediate inputs like "1+2+" will keep the "3" in the result display. If the user attempts to commit an invalid input using the equal button, an error message will appear as previously implemented. Changing the base mode or the trigonometric mode also triggers a result recalculation and update. A backspace signal clears the result display if the input reaches an invalid state regardless of the error type. Results are not committed to history unless the equal button is pressed. Change default result display to be empty instead of "0", it will also be empty if the input goes back to empty. M +57 -14 kcalc.cpp M +4 -1 kcalc.h M +30 -16 kcalc_core.cpp M +12 -3 kcalc_core.h M +10 -3 kcalc_display.cpp https://invent.kde.org/neon/snap-packaging/kcalc6/-/commit/5118570f6f8785ff8f7b471938bbf7b4784a79ce |