Ignore:
Timestamp:
2009-08-02T23:15:26+02:00 (15 years ago)
Author:
Gubaer
Message:

update: rewrite of layer dialog
new: allows multiple selection of layers in the dialog
new: move up, move down, toggle visibility, and delete on multiple layers
new: merge from an arbitrary layer into another layer, not only from the first into the second
new: new action for merging of the currently selected primitives on an arbitrary layer
new: make "active" layer explicit (special icon); activating a layer automatically moves it in the first position
refactoring: public fields 'name' and 'visible' on Layer are @deprecated. Use the setter/getters instead, Layer now emits PropertyChangeEvents if name or visibility are changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GeoImageLayer.java

    r1865 r1890  
    266266            MapFrame frame = Main.map;
    267267            if (frame != null) {
    268               frame.mapView.repaint();
     268                frame.mapView.repaint();
    269269            }
    270270        }
     
    276276        private final GpxLayer gpxLayer;
    277277        public Loader(Collection<File> files, GpxLayer gpxLayer) {
    278             super(tr("Images for {0}", gpxLayer.name));
     278            super(tr("Images for {0}", gpxLayer.getName()));
    279279            this.files = files;
    280280            this.gpxLayer = gpxLayer;
     
    412412                    return;
    413413                mousePressed  = true;
    414                 if (visible) {
     414                if (isVisible()) {
    415415                    Main.map.mapView.repaint();
    416416                }
     
    420420                    return;
    421421                mousePressed = false;
    422                 if (!visible)
     422                if (!isVisible())
    423423                    return;
    424424                for (int i = data.size(); i > 0; --i) {
     
    699699        });
    700700        return new Component[]{
    701                 new JMenuItem(new LayerListDialog.ShowHideLayerAction(this)),
    702                 new JMenuItem(new LayerListDialog.DeleteLayerAction(this)),
     701                new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
     702                new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    703703                new JSeparator(),
    704704                sync,
Note: See TracChangeset for help on using the changeset viewer.