View Handling

Proposal:

Class Diagram

../_images/view_handling_class.png

Sequence Diagram

../_images/view_handling_sequence.png

General View and Navigation Interaction

The following table displays the expected results for a given frontend event.

Expected Results for Frontend Events

Event

Expected Result

Navigation item selected by user.

  1. If a current view exists the previous selection will be stored.

  2. The scene node gets updated.

  3. Scene node requests views if needed (views get input focus flag set to false).

  4. Model service gets notified about new current selection.

  5. Previous selection is set to the current selection.

Navigation item selected from code.

  1. If a current view exists the previous selection will be stored.

  2. The scene node gets updated.

  3. Model service gets notified about new current selection.

  4. Previous selection is set to the current selection.

Central view focused by user.

  1. Block navigation signals

  2. Restore selection according to views buffered selection.

  3. Unlock navigation signals and manually call selection changed slot.

  4. Update scene node information.

  5. Show corresponding modal menu tab.

  6. Notify model about selection change.

Central view focused from code.

  1. Update scene node information.

  2. Show corresponding modal menu tab.

  3. Notify model about selection change.

The add item action is sent whenever the user dropped a Graphics Item on the View.