Changeset 30950 in osm
- Timestamp:
- 2015-02-09T00:11:30+01:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAction.java
r30944 r30950 2 2 * 3 3 */ 4 package org.openstreetmap.josm.plugins. sumoconvert;4 package org.openstreetmap.josm.plugins.mapillary; 5 5 6 6 import static org.openstreetmap.josm.tools.I18n.tr; … … 18 18 19 19 /** 20 * @author ignacio_palermo20 * @author Polyglot 21 21 * 22 22 */ 23 public class SumoExportAction extends JosmAction {23 public class MapillaryAction extends JosmAction { 24 24 25 public SumoExportAction(){26 super(tr(" OSM Export"), "images/dialogs/logo-sumo.png",27 tr(" Export traffic data to SUMO network file."),28 Shortcut.registerShortcut("menu: sumoexport", tr("Menu: {0}", tr("SUMO Export")),29 KeyEvent.VK_ G, Shortcut.ALT_CTRL), false);25 public MapillaryAction(){ 26 super(tr("Mapillary"), "images/icon24.png", 27 tr("Create Mapillary layer."), 28 Shortcut.registerShortcut("menu:Mapillary", tr("Menu: {0}", tr("Mapillary")), 29 KeyEvent.VK_M, Shortcut.ALT_CTRL), false); 30 30 } 31 31 … … 35 35 @Override 36 36 public void actionPerformed(ActionEvent arg0) { 37 SumoExportDialog dialog = new SumoExportDialog();37 MapillaryDialog dialog = new MapillaryDialog(); 38 38 JOptionPane pane = new JOptionPane(dialog, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION); 39 39 JDialog dlg = pane.createDialog(Main.parent, tr("Export")); … … 41 41 dlg.setVisible(true); 42 42 if(((Integer)pane.getValue()) == JOptionPane.OK_OPTION){ 43 ExportTask task = new ExportTask();44 Main.worker.execute(task);43 // MapillaryTask task = new MapillaryTask(); 44 // Main.worker.execute(task); 45 45 } 46 46 dlg.dispose(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryDialog.java
r30944 r30950 2 2 * 3 3 */ 4 package org.openstreetmap.josm.plugins. sumoconvert;4 package org.openstreetmap.josm.plugins.mapillary; 5 5 6 6 import static org.openstreetmap.josm.tools.I18n.tr; … … 28 28 /** 29 29 * Main export dialog 30 * @author ignacio_palermo30 * @author Polyglot 31 31 * 32 32 */ 33 public class SumoExportDialog extends JPanel {33 public class MapillaryDialog extends JPanel { 34 34 // the JOptionPane that contains this dialog. required for the closeDialog() method. 35 35 private JOptionPane optionPane; … … 38 38 39 39 40 public SumoExportDialog() {40 public MapillaryDialog() { 41 41 GridBagConstraints c = new GridBagConstraints(); 42 42 JButton refreshBtn, configBtn; … … 88 88 JOptionPane.showMessageDialog(Main.parent, tr("Connection Error.") + " " + ex.toString()); 89 89 } 90 System.out.println("configur eing the device finised");90 System.out.println("configuring the device finished"); 91 91 } 92 92 }); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r30944 r30950 1 package org.openstreetmap.josm.plugins. sumoconvert;1 package org.openstreetmap.josm.plugins.mapillary; 2 2 3 3 import java.util.ArrayList; … … 9 9 import org.openstreetmap.josm.plugins.Plugin; 10 10 import org.openstreetmap.josm.plugins.PluginInformation; 11 import org.openstreetmap.josm.plugins.turnrestrictions.list.TurnRestrictionsListDialog;12 import org.openstreetmap.josm.plugins.turnrestrictions.preferences.PreferenceEditor;13 import org.openstreetmap.josm.plugins.turnrestrictions.*;14 11 15 12 /** 16 * This is the main class for the sumoconvertplugin.13 * This is the main class for the mapillary plugin. 17 14 * 18 15 */ 19 public class SumoConvertPlugin extends Plugin{ 20 21 private final ArrayList<Relation> turnrestrictions = new ArrayList<Relation>(); 22 private SumoExportAction exportAction; 16 public class MapillaryPlugin extends Plugin{ 23 17 24 public SumoConvertPlugin(PluginInformation info) {18 public MapillaryPlugin(PluginInformation info) { 25 19 super(info); 26 exportAction = new SumoExportAction();27 Main.main.menu.toolsMenu.add(exportAction);28 System.out.println(getPluginDir());29 20 } 30 21 … … 36 27 if (oldFrame == null && newFrame != null) { // map frame added 37 28 38 //TurnRestrictionsListDialog dialog = new TurnRestrictionsListDialog();39 //add the dialog40 //newFrame.addToggleDialog(dialog);41 //CreateOrEditTurnRestrictionAction.getInstance();42 29 } 43 30 } 44 45 @Override46 public PreferenceSetting getPreferenceSetting() {47 return new PreferenceEditor();48 }49 31 }
Note:
See TracChangeset
for help on using the changeset viewer.