Modify

Opened 17 years ago

Closed 17 years ago

#2187 closed defect (fixed)

[PATCH] Useless space in RelationEditor

Reported by: stoecker Owned by: xeen
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

For unknown reason there is too much free space above the OK/Cancel buttons in relation editor.

Attachments (1)

RelEditorFix.zip (3.4 KB ) - added by xeen 17 years ago.
Depends on Patch in #2122 (changes to ExtendedDialog)

Download all attachments as: .zip

Change History (5)

comment:1 by stoecker, 17 years ago

Also the Buttons in RelationEditor should use SideButton and correct shortcut calls instead of own createButton function.

comment:2 by xeen, 17 years ago

Owner: changed from framm to xeen

My guess the additional space comes from adding an "empty" JOptionPane instead of adding buttons properly. I'll see if I can tune ExtendedDialog a bit so it's better inheritable.

by xeen, 17 years ago

Attachment: RelEditorFix.zip added

Depends on Patch in #2122 (changes to ExtendedDialog)

comment:3 by xeen, 17 years ago

Summary: Useless space in RelationEditor[PATCH] Useless space in RelationEditor

This patch makes RelationEditor use ExtendedDialog (therefore this depends on the patch in #2122 because it makes ExtendedDialog inherit-friendly) and SideButtons.

It refactors the code a bit to make the constructor easier to extend/read.

This patch introduces new FIXMEs:

  • Remember last window position and size (won't work on this)
  • Shortcuts only configurable after Relation Editor has been opened at least once (or they are already customized and saved in prefs)
  • RelEditor currently uses GROUP_LAYER because "dialog" is the closest match. It's a separate window and thus should be independent of the shortcuts in main JOSM. I decided it's not worth to hack something for the relation editor since this is a general issue (i.e. shortcut class should have methods to add/save/etc custom groups).

comment:4 by stoecker, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in r1431.

You need to use GROUP_MNEMONIC, as buttons and menus do not support anything else than <ALT>+<.>.

Point two is valid for all other fields as well.

I added point 1 as another report.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain xeen.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.