Modify

Opened 9 months ago

Closed 9 months ago

#7972 closed enhancement (fixed)

Background downloads

Reported by: anonymous Owned by: Gnonthgol
Priority: normal Component: Plugin continuousDownload
Version: tested Keywords:
Cc:

Description

Would be nice to have these downloads in the background, so that the editing isn't interupted for each move of the screen.

Also it would be nice to tuggle this feature on and off, as well as allowing it do download gpx tracks

Attachments (0)

Change History (8)

comment:1 follow-up: Changed 9 months ago by Gnonthgol

  • Status changed from new to assigned

That is on my todo list, but I am waiting for a more permanent solution then just not showing the progress bar. A more quiet place for the progress bar then a modal window would be better for a lot of tasks in josm.

It is possible to toggle the continuous download on and off. There is a button in the file menu, and you can also add it to the toolbar if you want (that one will not show any indication if it is on or off).

The ability to download gpx tracks is also a limitation of the core. There is no way to get a list of what areas the tracks are already downloaded like you can with osm data. This would be a nice feature but is not possible today.

comment:2 in reply to: ↑ 1 Changed 9 months ago by Don-vip

Replying to Gnonthgol:

A more quiet place for the progress bar then a modal window would be better for a lot of tasks in josm.

I agree, we have several enhancement requests for this. A new system to handle background tasks and non-modal notifications in JOSM would be great.

comment:3 follow-ups: Changed 9 months ago by anonymous

Continuous Download could be integrated in the core, and thus get access to gpx downloads too

comment:4 in reply to: ↑ 3 Changed 9 months ago by stoecker

Replying to anonymous:

Continuous Download could be integrated in the core, and thus get access to gpx downloads too

This is nothing I want to see in core. If people start to use such features on large scale, then we will create a lot of server loads and get troubles.

Improved progress bar somewhere in status line is another topic.

comment:5 in reply to: ↑ 3 Changed 9 months ago by Gnonthgol

Replying to anonymous:

Continuous Download could be integrated in the core, and thus get access to gpx downloads too

The plugins have access to everything in the core, except changing the code. The problem is that now the information of what areas you have downloaded the gpx tracks in are discarded (unlike what areas you have downloaded the osm data in). That information is not possible to recover, even for core features. To fix this you have to change a lot of core code.

As for integrating the plugin in the core that is a discussion for another time. Potlatch 1 and 2 does have this feature in its core and they use a variation of the same algorithm.

comment:6 follow-up: Changed 9 months ago by bastiK

A progress monitor in the status bar is already implemented, see MapStatus.BackgroundProgressMonitor.

comment:7 in reply to: ↑ 6 Changed 9 months ago by Gnonthgol

Replying to bastiK:

A progress monitor in the status bar is already implemented, see MapStatus.BackgroundProgressMonitor.

Yes, there is an implementation of it. But it is not possible to use that since it does not implement a ProgressMonitor. So all the functions that takes an ProgressMonitor can not take a BackgroundProgressMonitor.

comment:8 Changed 9 months ago by Gnonthgol

  • Resolution set to fixed
  • Status changed from assigned to closed

I have now released a version that have the ability to use the NullProgressMonitor. This have the disadvantage of not showing you any progress and not being able to cancel the download.

This obtion is off by default. To enable it you have to go into settings in expert mode and tick a box.

I will accept patches that does this better.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.