Modify

Opened 6 years ago

Last modified 17 months ago

#59 new enhancement

(patch needs rework) Dialog menu

Reported by: anonymous Owned by: team
Priority: minor Component: Core
Version: Keywords: sidebar menu
Cc:

Description (last modified by stoecker)

Move toggle buttons for layer, object property, etc. dialogs to a new top level menu called "Dialogs" (same as in Gimp). They are not used very often and we can use the space for other things.

Attachments (2)

wip1.patch (48.2 KB) - added by xeen 21 months ago.
wip1.png (40.7 KB) - added by xeen 21 months ago.

Download all attachments as: .zip

Change History (24)

comment:1 Changed 6 years ago by ramack

  • Priority changed from major to minor

I don't know how useful this actually is - what do you need the space for? But just for the fun of it here is a hacked version of josm: http://n.ethz.ch/~rmack/josm/ticket59.jar and a patch
http://n.ethz.ch/~rmack/josm/ticket59_dialogs_menu.patch for all of those who want to see how it could look.

comment:2 Changed 5 years ago by stoecker

comment:3 Changed 4 years ago by stoecker

  • Owner changed from imi to framm

comment:4 Changed 3 years ago by stoecker

Ticket #4390 has been marked as a duplicate of this ticket.

comment:3 Changed 2 years ago by stoecker

Ticket #5875 has been marked as a duplicate of this ticket.

comment:4 Changed 2 years ago by bastiK

  • Owner changed from framm to team

comment:5 Changed 2 years ago by vsandre

Are there any plans to introduce this?

comment:6 follow-up: Changed 2 years ago by bastiK

i'd say we aren't opposed to the idea

comment:7 in reply to: ↑ 6 ; follow-up: Changed 2 years ago by skyper

Replying to bastiK:

i'd say we aren't opposed to the idea

I think it would be nice to be able to configure the left panel, or maybe even a window/box somewhere.

  • I do not know all shortcuts but some
  • I do not use all toggle buttons because I do not need some action and I do never close some.

Few toggle buttons I use quite often, but maybe I would just learn the shortcuts, if the buttons would disapear.

comment:8 in reply to: ↑ 7 Changed 2 years ago by anonymous

  • Keywords sidebar menu added

Replying to skyper:

I think it would be nice to be able to configure the left panel, or maybe even a window/box somewhere.

This is one of the advantages of a separate menu. Because you still able to reach all sidebar elements but with an additional click. Elements of high priority could be send to the tool bar and will be reached within on click, too.

http://josm.openstreetmap.de/raw-attachment/ticket/5875/josm-sidebar.jpg

comment:9 follow-up: Changed 2 years ago by bastiK

Nice "screenshot". Also, the lower left corner isn't exactly the best place for buttons that toggle dialogs to the right. Removing these toggle buttons completely would maybe be a too radical step, but this panel could be moved somewhere else, so the distinction between mapmode (select, add, zoom, ...) and dialog toggle is more clear to a new user. (The thin line, that separates the 2 types of buttons is sometimes not noticed.) Any suggestions how this could look like?

comment:10 in reply to: ↑ 9 Changed 2 years ago by vsandre

Replying to bastiK:

Any suggestions how this could look like?

This Windows menu is very common in other software products (especially painting programs).

If you want to see some buttons add them to the tool bar.
If you want this buttons on the right of the toolbar add a variable space element (see firefox).

Changed 21 months ago by xeen

Changed 21 months ago by xeen

comment:11 Changed 21 months ago by vsandre

Replying to xeen

Nice Patch!!! Please remove the toggle buttons from the left, too.

comment:12 follow-up: Changed 21 months ago by stoecker

Two suggestions:

  • Allow to configure the display of buttons in left menu (defaults to true)
  • When I do a right click into the title line of a ToggleDialog it would be nice when a popup with the toggle dialog selection appears. This would reduce (for advanced users only) the distance between dialog and dialog enable/disable.

If you want this buttons on the right of the toolbar add a variable space element (see firefox).

We have no variable spacer for now and I don't find it in your patch.

Could you modify the patch in a way, that the permanent MapFrame initialisation is not required (i.e. by turning of ToolBar support for now). I think this should be done step-by-step and not too many changes at once. Or do you already have a solution which does not required the MapView init?

comment:13 in reply to: ↑ 12 ; follow-up: Changed 21 months ago by xeen

  • Allow to configure the display of buttons in left menu (defaults to true)

good idea

  • When I do a right click into the title line of a ToggleDialog it would be nice when a popup with the toggle dialog selection appears. This would reduce (for advanced users only) the distance between dialog and dialog enable/disable.

I don’t get it. Do you mean the window manager dependend context menu with e.g. move, close, maximize, minimize?

We have no variable spacer for now and I don't find it in your patch.

Yep, didn't include it, although I believe it’s useful outside of the scope of this bug, too. It can be implemented independently of this, though.

I think this should be done step-by-step and not too many changes at once.
Or do you already have a solution which does not required the MapView init?

I have been busy lately, so I could not work on it as much as I’d like. Also, since I still believe initializing the MapView right away makes many things simpler and there were no concrete concerns apart from that stuff might break I decided I won’t work around the issue. My current plan is to move MapView initialization, fix all issues I find and update the plugins if necessary. I’ll add the menu/toolbarbuttons when the former is commited to the main branch and has stabilized.

comment:14 in reply to: ↑ 13 ; follow-up: Changed 21 months ago by stoecker

Replying to xeen:

  • When I do a right click into the title line of a ToggleDialog it would be nice when a popup with the toggle dialog selection appears. This would reduce (for advanced users only) the distance between dialog and dialog enable/disable.

I don’t get it. Do you mean the window manager dependend context menu with e.g. move, close, maximize, minimize?

No. The title lines of the toggle dialogs in right hand menu. A right-click-popup could show a menu, which contains all toggle-dialogs.

I think this should be done step-by-step and not too many changes at once.
Or do you already have a solution which does not required the MapView init?

I have been busy lately, so I could not work on it as much as I’d like. Also, since I still believe initializing the MapView right away makes many things simpler and there were no concrete concerns apart from that stuff might break I decided I won’t work around the issue. My current plan is to move MapView initialization, fix all issues I find and update the plugins if necessary. I’ll add the menu/toolbarbuttons when the former is commited to the main branch and has stabilized.

Is still don't see a reason for such a radical change. It should be possible to have a JosmAction, which is disabled when no MapFrame is active (like many other actions are, e.g. like UploadAction).

comment:15 in reply to: ↑ 14 Changed 21 months ago by xeen

It should be possible to have a JosmAction, which is disabled when no MapFrame is active (like many other actions are, e.g. like UploadAction).

It’s about (un)registering those actions. Without map frame JOSM doesn’t even know they exist. So in order to not move the map frame init the following needs to be done:

  • move toggle dialog creation somewhere earlier
  • update toggle dialogs so they don’t assume the map frame/map view is there on creation
  • implement map frame destroyed/created listener for all toggle dialogs

Especially the last point is a deal breaker for me, since it complicates the code for no good reason. Looking at what the map frame class does, it’s pretty much: toggle dialogs + map view + left hand toolbar + some utility features. If the dialogs are moved “up” not much remains and the left hand toolbar should probably be handled the same way as the top toolbar to make moving items between them saner to implement.

Long story short, why not ditch MapFrame altogether?

comment:16 Changed 20 months ago by simon04

I am looking forward to seeing the Windows menu to go live :). Unfortunately, there hasn't been an update for 2 weeks.

Is there a way to help the development? Is there a consensus concerning MapFrame?

comment:17 Changed 19 months ago by stoecker

  • Description modified (diff)
  • Summary changed from Dialog menu to [patch needs rework] Dialog menu

Can't we implement this step-by-step leaving the critical parts to the end? I hate to waste already spend efforts.

comment:18 Changed 18 months ago by stoecker

In [4590/josm]:

see #59 - patch by xeen - apply parts of the new Windows menu stuff

comment:19 Changed 18 months ago by akks

By the way, doesn`t we need another menu for all available MapModes?

comment:20 Changed 17 months ago by stoecker

  • Summary changed from [patch needs rework] Dialog menu to (patch needs rework) Dialog menu

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team. Next status will be 'new'.
Next status will be 'needinfo'.The owner will change to anonymous
as duplicate The resolution will be set to duplicate. Next status will be 'closed'.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.