Opened 5 years ago

Last modified 2 years ago

#13001 closed enhancement

[Patch] Add MainPanel — at Version 1

Reported by: michael2402 Owned by: team
Priority: normal Milestone: 16.06
Component: Core Version:
Keywords: gsoc-core Cc: Don-vip, bastiK, stoecker

Description (last modified by michael2402)

This is one more patch that restructures the Main class and pulls logic out of it.

A new class MainPanel is added to manage the MapFrame state and display the start panel. addLayer and removeLayer are now completely handled by the layer manager. I left the two special addLayer(layer, bounds) methods in main since they do not yet have a good replacement. The layer methods in main have been deprecated since they only proxy all calls to the layer manager now.

The layer manager got a new resetState() method. It can currently not handle failing removeLayer listeners, this is why the tests might still be in an unclean state. I'll work on that next week.

I tested this patch with several plugins but since the map view is now constructed after the layer was added to the layer list there might be problems with that. The MainPanel listener is registered before any plugin listeners so from their point there should be no difference. But you never know.

Change History (2)

Changed 5 years ago by michael2402

comment:1 Changed 5 years ago by michael2402

Description: modified (diff)
Note: See TracTickets for help on using tickets.