Random access to a past result

Issue #403 duplicate
Former user created an issue

Originally reported on Google Code with ID 403 ``` 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.

```

Reported by `Daniel.LaFlamme` on 2012-05-23 13:01:39

Comments (9)

  1. Former user Account Deleted

    ``` Hi Daniel. It's working fine for me with Qt 4.8.1 on Linux. What is your configuration? ```

    Reported by `helder.pereira.correia` on 2012-05-24 04:31:41

  2. Former user Account Deleted

    ``` 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. ```

    Reported by `Daniel.LaFlamme` on 2012-05-24 14:12:15

    <hr>

  3. Former user Account Deleted

    ``` I've also attached the default configuration (.ini) files that are created by both versions. ```

    Reported by `Daniel.LaFlamme` on 2012-05-24 14:16:38

    <hr>

  4. Former user Account Deleted

    ``` 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. ```

    Reported by `helder.pereira.correia` on 2012-05-24 22:49:05

  5. Former user Account Deleted

    ``` 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. ```

    Reported by `Daniel.LaFlamme` on 2012-05-25 00:09:21

  6. Former user Account Deleted

    ``` 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. ```

    Reported by `Daniel.LaFlamme` on 2012-05-25 14:55:26

  7. Former user Account Deleted

    ``` 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). ```

    Reported by `helder.pereira.correia` on 2012-06-02 05:40:43

  8. Former user Account Deleted

    ``` Great, thank you Helder. ```

    Reported by `Daniel.LaFlamme` on 2012-06-04 02:06:13

  9. Log in to comment