sanchahar / speedcrunch

Automatically exported from code.google.com/p/speedcrunch
1 stars 0 forks source link

Random access to a past result #403

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. evaluate an expression
2. double click the result in the history window
3. in 0.10.1 the result was clicked would be pasted to the expression field. in 
0.11, that no longer works.

What is the expected output? What do you see instead?
expected behavior is to be able to click a result and have to copy/pasted into 
the expression field to be used in further computation.

What version of the product are you using? On what operating system?

Misbehavior observed on 0.11. Expected behavior on 0.10.1. Using Windows 
version.

Please provide any additional information below.

Original issue reported on code.google.com by Daniel.L...@gmail.com on 23 May 2012 at 1:01

GoogleCodeExporter commented 8 years ago
Hi Daniel. It's working fine for me with Qt 4.8.1 on Linux. What is your 
configuration?

Original comment by helder.p...@gmail.com on 24 May 2012 at 4:31

GoogleCodeExporter commented 8 years ago
I'm seeing expected behavior using SpeedCrunch 0.10.1, Windows Portable 
version. QT = 4.4.0

I'm seeing unexpected behavior using SpeedCrunch 0.11-alpha, Windows Portable 
version. QT = 4.5.2

File with screenshots attached.

Original comment by Daniel.L...@gmail.com on 24 May 2012 at 2:12

Attachments:

GoogleCodeExporter commented 8 years ago
I've also attached the default configuration (.ini) files that are created by 
both versions.

Original comment by Daniel.L...@gmail.com on 24 May 2012 at 2:16

Attachments:

GoogleCodeExporter commented 8 years ago
Oh, I see what you're talking about now. I thought you were referring to the 
History dockable window. The feature you mentioned is now broken because people 
requested a means of copying  from the result display (which now works). The 
consequence is that double-click will now select a "word" instead of inserting 
an expression into the editor. I don't think this is worth doing something 
about because you can still have the same functionality by using the history 
dock (or ultimately by copying and pasting from the display). Unless there's a 
very good reason to workaround this, I'll close this issue. On a final note - 
we support Qt 4.6 an up only.

Original comment by helder.p...@gmail.com on 24 May 2012 at 10:49

GoogleCodeExporter commented 8 years ago
Thanks for the explanation. I now understand the reasoning behind the change.

My use case for the old behavior is this:

I use SpeedCrunch on a pen-based tablet. I can tap buttons with the pen, tap 
the equals key, and then see the result in the result display window. Often 
times I'll want to use that result in the next computation so just double 
tapping it inserted it back into the expression window where I could then 
operate on it easily.

Thanks for mentioning the history dock (I didn't even know that existed)--but 
using that as you suggested is functionally a bit different. For example:

expression editor: 4 * 4 =
    --> result window: "= 16"
    --> history dock: "4*4"

So now if I wanted to operate on the 16 I can:

1) copy/paste from the result display as you suggest (doesn't really work well 
with a pen-based tablet)
2) double-tap the "4*4" in the history dock. However, that inserts "4*4" into 
the expression editor, not "16". Not a huge deal for small numbers, but if the 
previous expression was more complex, the new expression could get unwieldy 
(not to mention having to use parens in certain places to get the order of 
operations you want). For a long chain of computations, the current expression 
just keeps growing and growing.

So that's the use case. If there is a way to support both behaviors that would 
be great. Not sure what the best solution would be. One idea is to have an 
option in the settings that determines the behavior when someone double clicks 
on an entry in the history dock. Choices could be:

1) "Copy expression to expression editor"
2) "Copy result to expression editor"

It would be neat if those choices were available somehow in the history dock 
itself--I can imagine cases where the user might want to do both easily.

Original comment by Daniel.L...@gmail.com on 25 May 2012 at 12:09

GoogleCodeExporter commented 8 years ago
And I realize there is an "ans" key to get the very last result but I think in 
general, being able to select an arbitrary expression or result from the 
history dock would be useful.

Original comment by Daniel.L...@gmail.com on 25 May 2012 at 2:55

GoogleCodeExporter commented 8 years ago
Daniel, I understand your use case. However, SpeedCrunch was definitely not 
designed for mobile devices. IT is heavily based on desktop widgets. A complete 
UI redesign would be necessary (and on my TODO list for a long time). I think 
having the results readily available on the history dock, side by side with 
their associated expressions, would be the best solution (avoiding the 
introduction of yet another setting).

Original comment by helder.p...@gmail.com on 2 Jun 2012 at 5:40

GoogleCodeExporter commented 8 years ago
Great, thank you Helder.

Original comment by Daniel.L...@gmail.com on 4 Jun 2012 at 2:06