Modify

Opened 3 years ago

Last modified 3 years ago

#12804 new enhancement

Remove playHeadMarker static reference

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

Description (last modified by michael2402)

The MapView uses a playHeadMarker.

There is a special case handling for the MarkerLayer class in addLayers().

I would like to:
Step 1:

  • Convert the PlayHeadMarker to be a temporary layer
  • Remove MapView#playHeadMarker
  • Remove PlayHeadMarker#playHead
  • Move the whole addMouseListener code to hookUpMapView()

Step 2:
Remove the need for a mouse listener:

  • Allow layers and the MapMode to intercept mouse events (MouseListener + MouseMotionListener) by implementing a new interface.

We currently have 12 uses of Main.mapView.addMouseListener. We can replace all of them by this change. This will also prevent us from having layers that do not unregister their events (like NoteLayer)
(no timeframe yet)

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by stoecker

Sounds good to me.

comment:2 Changed 3 years ago by Don-vip

Milestone: 16.05

+1

comment:3 Changed 3 years ago by michael2402

Milestone: 16.0516.06

comment:4 Changed 3 years ago by michael2402

Description: modified (diff)
Milestone: 16.06

I moved this further back in the pipeline because I don't see a way to do this nicely with the current infrastructure. I don't see a point in simply moving the global reference out of the map view to somewhere else - the current design does not stop the MapView from being used twice.

I would like to wait until we decide on what to do with swing data transfer. If I have enough time for it I'll ad it to the main map view.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain michael2402.
as The resolution will be set.
to The owner will be changed from michael2402 to the specified user.
The owner will change to michael2402
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from michael2402 to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.