Changeset 31314 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2015-06-29T11:43:14+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterChooseSigns.java
r31312 r31314 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Dimension; 5 6 import java.awt.event.ActionEvent; 6 7 import java.awt.event.ActionListener; … … 22 23 public final JCheckBox intersection = new JCheckBox(); 23 24 public final JCheckBox direction = new JCheckBox(); 25 public final JCheckBox uneven = new JCheckBox(); 24 26 25 27 private static MapillaryFilterChooseSigns INSTANCE; … … 33 35 intersection.setSelected(true); 34 36 direction.setSelected(true); 37 uneven.setSelected(true); 35 38 36 39 // Max speed sign … … 92 95 directionPanel.add(direction); 93 96 this.add(directionPanel); 97 98 // Uneven road 99 JPanel unevenPanel = new JPanel(); 100 JLabel unevenLabel = new JLabel(tr("Uneven road")); 101 unevenLabel.setIcon(new ImageProvider("signs/uneaven.png").get()); 102 unevenPanel.add(unevenLabel); 103 unevenPanel.add(uneven); 104 this.add(unevenPanel); 105 106 this.setPreferredSize(new Dimension(600, 150)); 94 107 } 95 108 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java
r31313 r31314 67 67 "priority_stop", "other_give_way", "mandatory_roundabout", 68 68 "other_no_entry", "danger_intersection", "mandatory_go", 69 "mandatory_keep" }; 69 "mandatory_keep", "danger_priority_next_intersection", 70 "danger_uneven_road" }; 70 71 private final JCheckBox[] SIGN_CHECKBOXES = { signFilter.maxspeed, 71 72 signFilter.stop, signFilter.giveWay, signFilter.roundabout, 72 73 signFilter.access, signFilter.intersection, signFilter.direction, 73 signFilter.direction }; 74 signFilter.direction, signFilter.intersection, signFilter.uneven }; 74 75 75 76 public MapillaryFilterDialog() { … … 85 86 signChooserPanel.add(signChooser); 86 87 87 JPanel comboPanel = new JPanel();88 comboPanel.setLayout(new FlowLayout(FlowLayout.LEFT));89 comboPanel.add(new JLabel("From"));88 JPanel fromPanel = new JPanel(); 89 fromPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); 90 fromPanel.add(new JLabel("From")); 90 91 time = new JComboBox<>(TIME_LIST); 91 comboPanel.add(time);92 fromPanel.add(time); 92 93 93 94 JPanel userSearchPanel = new JPanel(); 94 95 userSearchPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); 95 user = new JTextField(1 5);96 user = new JTextField(10); 96 97 user.addActionListener(new UpdateAction()); 97 98 userSearchPanel.add(new JLabel("User")); … … 104 105 panel.add(imported); 105 106 panel.add(onlySigns); 106 panel.add( comboPanel);107 panel.add(fromPanel); 107 108 panel.add(userSearchPanel); 108 109 panel.add(signChooserPanel); … … 283 284 JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION); 284 285 JDialog dlg = pane.createDialog(Main.parent, tr("Choose signs")); 285 dlg.setMinimumSize(new Dimension(400, 150));286 286 dlg.setVisible(true); 287 287 if ((int) pane.getValue() == JOptionPane.OK_OPTION)
Note:
See TracChangeset
for help on using the changeset viewer.