Changes between Initial Version and Version 1 of Ticket #13510, comment 6


Ignore:
Timestamp:
2016-09-02T22:02:56+02:00 (9 years ago)
Author:
michael2402

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13510, comment 6

    initial v1  
    1 There are two options for that:
    2 - Register a `LayerAvailabilityListener` if we want to know if any layer is present or not (like here)
     1There are several options for that:
     2- Register a `LayerAvailabilityListener` if we want to know if any layer is present or not (I prefer this one)
    33- Register a `ActiveLayerChangeListener` if the option depends on the active layer (which may be `null`).
     4- Use `isLastLayer()` on the `LayerRemoveEvent` to see if the last layer was removed. (quick, dirty)
    45
    5 The nice way would be to have a unified way for all menus to be disabled if all items are disabled. Then the menu items can simply be disabled. This is what I did in my main menu branch.
     6The nice way would be to have a unified way for all menus to be disabled if all items are disabled. Then the menu items can simply be disabled. This is what I did in my main menu branch. We could bind the zoom actions directly to the map view and add them whenever the map view is added to the view, remove them otherwise.