Changeset 31961 in osm for applications
- Timestamp:
- 2016-01-07T19:28:29+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/photoadjust
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/build.xml
r31926 r31961 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="927 0"/>7 <property name="plugin.main.version" value="9277"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustPlugin.java
r31922 r31961 36 36 super(info); 37 37 GeoImageLayer.registerMenuAddition(new UntaggedGeoImageLayerAction()); 38 //new PhotoPropertyEditor();38 new PhotoPropertyEditor(); 39 39 worker = new PhotoAdjustWorker(); 40 40 initAdapters(); -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java
r31921 r31961 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.BorderLayout;7 6 import java.awt.Color; 8 import java.awt.Component;9 7 import java.awt.GridBagLayout; 10 8 import java.awt.event.ActionEvent; … … 19 17 import javax.swing.JPanel; 20 18 import javax.swing.JSeparator; 21 import javax.swing.JTextArea;22 19 import javax.swing.UIManager; 23 20 import javax.swing.event.DocumentEvent; … … 33 30 import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry; 34 31 import org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog; 35 import org.openstreetmap.josm.gui.widgets.HtmlPanel;36 32 import org.openstreetmap.josm.gui.widgets.JosmTextField; 37 33 import org.openstreetmap.josm.tools.GBC; … … 139 135 private final ImageEntry image; 140 136 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); 142 138 143 139 public PropertyEditorDialog(String title, final ImageEntry image, … … 148 144 setButtonIcons(new String[] {"ok", "cancel"}); 149 145 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)); 151 147 if (image.hasThumbnail() || image.getFile() != null) { 152 148 final JLabel header = new JLabel(image.getFile() != null 153 149 ? image.getFile().getName() 154 150 : ""); 155 //if (!image.hasThumbnail()) {156 //image.loadThumbnail();157 //}151 if (!image.hasThumbnail()) { 152 image.loadThumbnail(); 153 } 158 154 if (image.hasThumbnail()) { 159 155 header.setIcon(new ImageIcon(image.getThumbnail()));
Note:
See TracChangeset
for help on using the changeset viewer.