Changeset 25695 in osm for applications/editors/josm
- Timestamp:
- 2011-03-24T21:17:28+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/relcontext
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/relcontext/TODO
r25693 r25695 1 1 - Solve width problem for narrows buttons when "fix" and "download" appear simultaneously 2 - Check all strings to be properly formulated, search for similar ones in josm core and plugins3 2 - Draw icons for multipoly settings menu 4 3 -
applications/editors/josm/plugins/relcontext/src/relcontext/ChosenRelationComponent.java
r25688 r25695 33 33 34 34 private final static String[] TYPE_KEYS = new String[] { 35 "natural", "landuse", "place", "waterway", "leisure", "amenity", "restriction", "public_transport" 35 "natural", "landuse", "place", "waterway", "leisure", "amenity", "restriction", "public_transport", "route", "enforcement" 36 36 }; 37 37 38 38 private final static String[] NAMING_TAGS = new String[] { 39 "name", "place_name", "ref", " note"39 "name", "place_name", "ref", "destination", "note" 40 40 }; 41 41 -
applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java
r25693 r25695 3 3 import org.openstreetmap.josm.command.SequenceCommand; 4 4 import org.openstreetmap.josm.command.Command; 5 import java.io.IOException;6 5 import java.io.BufferedReader; 7 6 import java.io.InputStream; 8 import java.io.Reader;9 7 import java.io.InputStreamReader; 10 8 import java.awt.Point; … … 46 44 import org.openstreetmap.josm.tools.Shortcut; 47 45 import org.openstreetmap.josm.tools.GBC; 48 import org.openstreetmap.josm.command.ChangeCommand;49 46 import org.openstreetmap.josm.command.ChangeRelationMemberRoleCommand; 50 47 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox; -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/ClearChosenRelationAction.java
r25682 r25695 17 17 // putValue(Action.NAME, "X"); 18 18 putValue(Action.SMALL_ICON, ImageProvider.get("relcontext", "clear")); 19 putValue(Action.SHORT_DESCRIPTION, tr("Clear chosen relation"));19 putValue(Action.SHORT_DESCRIPTION, tr("Clear the chosen relation")); 20 20 this.rel = rel; 21 21 rel.addChosenRelationListener(this); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateMultipolygonAction.java
r25693 r25695 287 287 panel.add(new JLabel(tr("Admin level")), GBC.std()); 288 288 panel.add(Box.createHorizontalStrut(10), GBC.std()); 289 panel.add(admin, GBC.eol().fill(GBC.HORIZONTAL) );289 panel.add(admin, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5)); 290 290 291 291 final JTextField name = new JTextField(); … … 301 301 } 302 302 }; 303 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create relation"));303 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create a new relation")); 304 304 dlg.setModalityType(ModalityType.DOCUMENT_MODAL); 305 305 -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateRelationAction.java
r25692 r25695 32 32 */ 33 33 public class CreateRelationAction extends JosmAction { 34 private static final String ACTION_NAME = "Create relation";35 34 private static final String PREF_LASTTYPE = "reltoolbox.createrelation.lasttype"; 36 35 protected ChosenRelation chRel; … … 87 86 private String askForType() { 88 87 JPanel panel = new JPanel(new GridBagLayout()); 89 panel.add(new JLabel(tr("Choose type for the newrelation:")), GBC.eol().insets(0, 0, 0, 5));88 panel.add(new JLabel(tr("Choose a type for the relation:")), GBC.eol().insets(0, 0, 0, 5)); 90 89 91 90 final AutoCompletingComboBox keys = new AutoCompletingComboBox(); … … 105 104 } 106 105 }; 107 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create relation"));106 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create a new relation")); 108 107 dlg.setModalityType(ModalityType.DOCUMENT_MODAL); 109 108 -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/DeleteChosenRelationAction.java
r25670 r25695 15 15 16 16 public DeleteChosenRelationAction( ChosenRelation rel ) { 17 super(tr("Delete relation"));17 super(tr("Delete the chosen relation")); 18 18 putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete")); 19 19 this.rel = rel; -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/DownloadChosenRelationAction.java
r25682 r25695 29 29 // putValue(NAME, "D"); 30 30 putValue(SMALL_ICON, ImageProvider.get("relcontext", "download")); 31 putValue(SHORT_DESCRIPTION, tr("Download all incomplete members forchosen relation"));31 putValue(SHORT_DESCRIPTION, tr("Download incomplete members for the chosen relation")); 32 32 this.rel = rel; 33 33 rel.addChosenRelationListener(this); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/DownloadParentsAction.java
r25682 r25695 29 29 30 30 public DownloadParentsAction( ChosenRelation rel ) { 31 super(tr("Download allreferrers"));31 super(tr("Download referrers")); 32 32 putValue(SMALL_ICON, ImageProvider.get("downloadreferrers")); 33 putValue(SHORT_DESCRIPTION, tr("Download referrers for the relation and its members"));33 putValue(SHORT_DESCRIPTION, tr("Download referrers for the the chosen relation and its members")); 34 34 this.rel = rel; 35 35 rel.addChosenRelationListener(this); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/EditChosenRelationAction.java
r25682 r25695 23 23 // putValue(NAME, "E"); 24 24 putValue(SMALL_ICON, ImageProvider.get("dialogs/mappaint", "pencil")); 25 putValue(SHORT_DESCRIPTION, tr("Open relation editor for chosen relation"));25 putValue(SHORT_DESCRIPTION, tr("Open relation editor for the chosen relation")); 26 26 this.rel = rel; 27 27 rel.addChosenRelationListener(this); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/FindRelationAction.java
r25682 r25695 48 48 } 49 49 }; 50 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Find relation"));50 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Find a relation")); 51 51 dlg.setModalityType(ModalityType.DOCUMENT_MODAL); 52 52 -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/RelationHelpAction.java
r25680 r25695 22 22 public RelationHelpAction( ChosenRelation rel ) { 23 23 super(); 24 putValue(NAME, tr(" Relation wiki page"));24 putValue(NAME, tr("Open relation wiki page")); 25 25 putValue(SHORT_DESCRIPTION, tr("Launch browser with wiki help for selected object")); 26 26 putValue(SMALL_ICON, ImageProvider.get("dialogs", "search")); … … 28 28 rel.addChosenRelationListener(this); 29 29 setEnabled(false); 30 } 31 32 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) { 33 setEnabled(newRelation != null); 30 34 } 31 35 … … 97 101 } 98 102 } 99 100 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {101 setEnabled(newRelation != null);102 }103 103 }
Note:
See TracChangeset
for help on using the changeset viewer.