Changeset 31961 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-01-07T19:28:29+01:00 (9 years ago)
Author:
holgermappt
Message:

Enabled photo property editor. Added thumbnail request.

Location:
applications/editors/josm/plugins/photoadjust
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust/build.xml

    r31926 r31961  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="9270"/>
     7    <property name="plugin.main.version" value="9277"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustPlugin.java

    r31922 r31961  
    3636        super(info);
    3737        GeoImageLayer.registerMenuAddition(new UntaggedGeoImageLayerAction());
    38         //new PhotoPropertyEditor();
     38        new PhotoPropertyEditor();
    3939        worker = new PhotoAdjustWorker();
    4040        initAdapters();
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java

    r31921 r31961  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.BorderLayout;
    76import java.awt.Color;
    8 import java.awt.Component;
    97import java.awt.GridBagLayout;
    108import java.awt.event.ActionEvent;
     
    1917import javax.swing.JPanel;
    2018import javax.swing.JSeparator;
    21 import javax.swing.JTextArea;
    2219import javax.swing.UIManager;
    2320import javax.swing.event.DocumentEvent;
     
    3330import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry;
    3431import org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog;
    35 import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    3632import org.openstreetmap.josm.gui.widgets.JosmTextField;
    3733import org.openstreetmap.josm.tools.GBC;
     
    139135        private final ImageEntry image;
    140136        private final GeoImageLayer layer;
    141         private static final Color BG_COLOR_ERROR = new Color(255,224,224);
     137        private static final Color BG_COLOR_ERROR = new Color(255, 224, 224);
    142138
    143139        public PropertyEditorDialog(String title, final ImageEntry image,
     
    148144            setButtonIcons(new String[] {"ok", "cancel"});
    149145            final JPanel content = new JPanel(new GridBagLayout());
    150             //content.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     146            //content.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    151147            if (image.hasThumbnail() || image.getFile() != null) {
    152148                final JLabel header = new JLabel(image.getFile() != null
    153149                                                 ? image.getFile().getName()
    154150                                                 : "");
    155                 //if (!image.hasThumbnail()) {
    156                 //    image.loadThumbnail();
    157                 //}
     151                if (!image.hasThumbnail()) {
     152                    image.loadThumbnail();
     153                }
    158154                if (image.hasThumbnail()) {
    159155                    header.setIcon(new ImageIcon(image.getThumbnail()));
Note: See TracChangeset for help on using the changeset viewer.