Blank the labels and tree decorations when suspending whizzing features

Issue #498 new
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Don't leave stale and invalid visual associations in the main window and keep label and tree behavior consistent in all contexts.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

As of pull request #115...

  1. Open small_133x133.cdt
  2. Either:
    1. Adjust window size and/or zoom level in order to activate whizzing features in both the columns & rows and make sure trees are visible
    2. Adjust window size and/or zoom level in order to activate fitted label behavior in both the columns & rows and make sure trees are visible
  3. Hover over the matrix (or labels) and either:
    1. Type command-e
    2. Type command-c
    3. Right-click a label and
      1. Hover off the contextual menu (but don't leave the label area)
      2. Tap the down arrow key once to highlight "Label settings..." in the contextual menu
      3. Hit the return key

There is currently no way to produce the described behavior with the colors dialog.

CURRENT BEHAVIOR

Whizzing labels and tree decorations freeze on the screen, leaving invalid visual associations. Without performing any of step 3, labels and tree decorations "blank" after the cursor leaves the matrix, labels, and trees areas - leaving no invalid visual associations.

labels-not-hidden.png

In the context of fitted labels, the red bold hover highlight remains in place

EXPECTED BEHAVIOR

When updates to whizzing features are suspended (as is the case with pull request #115: upon the activation of a dialog), the same behavior as what happens when (without the dialog) the cursor leaves the matrix, labels, and trees areas should occur. I.e. When whizzing activities are suspended, the labels should be blanked (and replaced with the zoom hint) and the tree decorations (red bold hover highlight and moving blue background) should disappear.

When fitted labels are present, also the same behavior as what happens when (without the dialog) the cursor leaves the matrix, labels, and trees areas should occur. I.e. When red bold highlight updates are suspended, the bold red highlight should be blanked (and normal label text drawn) and the tree decorations (red bold hover highlight) should disappear.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

When the label/tree updating activities are suspended, set the hover index to -1 and do an explicit last update to reset the labels and tree decorations until updating is resumed.

Incidentally, this suggested behavior is expected to change with the implementation of a new feature designed to allow whizzing updates in specific contexts even when a dialog is present (see comments in pull request #115).

FILES AFFECTED (where the changes will be implemented) - developers only

LabelView TRView

LEVEL OF EFFORT - developers only

minor

COMMENTS

See comments in pull request #115.

Comments (3)

  1. Log in to comment