Opened 5 years ago

Closed 5 years ago

#12925 closed enhancement (fixed)

Move main window management to new class

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)

Create a new Class MainFrame for the main window, move code from Main and MapView there.

This class should do:

  • The title management
  • Basic geometry setup
  • Automatically display the start screen as long as no layers are present.
  • Do all MapFrame handling

Long term goals:

  • Remove Main.gettingStarted
  • Do not destroy the MapFrame if all layers are removed - keep an empty layer list. This would remove many == null checks and prevent problems for missing checks.

We should get away from the concept that the UI will always be structured the way it is now.

Patches: #12927

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by michael2402

Description: modified (diff)

comment:2 Changed 5 years ago by Don-vip

Milestone: 16.06

comment:3 Changed 5 years ago by michael2402

Resolution: fixed
Status: newclosed

This has been implemented. The new MainPanel class handles map state and automatically displays the map as soon as layers are added to the main layer manager.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.