Changeset 9795 in josm for trunk/src/org
- Timestamp:
- 2016-02-14T12:18:35+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r9447 r9795 61 61 private final String mode; 62 62 63 protected transient ZoomChangeAdapter zoomChangeAdapter;64 protected transient MapFrameAdapter mapFrameAdapter;65 63 /** Time of last zoom to bounds action */ 66 64 protected long lastZoomTime = -1; … … 358 356 // make this action listen to zoom and mapframe change events 359 357 // 360 MapView.addZoomChangeListener( zoomChangeAdapter =new ZoomChangeAdapter());361 Main.addMapFrameListener( mapFrameAdapter =new MapFrameAdapter());358 MapView.addZoomChangeListener(new ZoomChangeAdapter()); 359 Main.addMapFrameListener(new MapFrameAdapter()); 362 360 initEnabledState(); 363 361 } -
trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
r9243 r9795 2 2 package org.openstreetmap.josm.gui; 3 3 4 import java.awt.event.MouseAdapter;5 import java.awt.event.MouseEvent;6 4 import java.beans.PropertyChangeEvent; 7 5 import java.beans.PropertyChangeListener; … … 24 22 public class IconToggleButton extends JToggleButton implements HideableButton, PropertyChangeListener, Destroyable, ExpertModeChangeListener { 25 23 26 public boolean groupbutton;27 24 private transient ShowHideButtonListener listener; 28 25 private boolean hideIfDisabled; … … 53 50 54 51 action.addPropertyChangeListener(this); 55 56 addMouseListener(new MouseAdapter() {57 @Override public void mousePressed(MouseEvent e) {58 groupbutton = e.getX() > getWidth()/2 && e.getY() > getHeight()/2;59 }60 });61 52 62 53 ExpertToggleAction.addExpertModeChangeListener(this); … … 133 124 } 134 125 135 /* 136 * This fu ction should be called for plugins that want to enable auto-hiding126 /** 127 * This function should be called for plugins that want to enable auto-hiding 137 128 * custom buttons when they are disabled (because of incorrect layer, for example) 129 * @param b hide if disabled 138 130 */ 139 131 public void setAutoHideDisabledButton(boolean b) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r9660 r9795 701 701 setLocationRelativeTo(Main.parent); 702 702 } 703 s etTitle(titleBar.getTitle());703 super.setTitle(titleBar.getTitle()); 704 704 HelpUtil.setHelpContext(getRootPane(), helpTopic()); 705 705 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r9748 r9795 521 521 protected AutoCompletingComboBox keys; 522 522 protected AutoCompletingComboBox values; 523 protected Component componentUnderMouse;524 523 525 524 AbstractTagsDialog(Component parent, String title, String[] buttonTexts) {
Note:
See TracChangeset
for help on using the changeset viewer.