Changeset 11925 in osm for applications/editors
- Timestamp:
- 2008-11-14T12:11:30+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/lakewalker
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/build.xml
r11924 r11925 74 74 <target name="install" depends="dist"> 75 75 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 76 <copy todir="${josm.plugins.dir}/Lakewalker">77 <fileset dir="Lakewalker">78 <filename name = "*.py"/>79 </fileset>80 </copy>81 76 <mkdir dir="${josm.plugins.dir}/Lakewalker/IR1"></mkdir> 82 77 <mkdir dir="${josm.plugins.dir}/Lakewalker/IR2"></mkdir> -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerPreferences.java
r10920 r11925 17 17 public static final String[] WMSLAYERS = new String[] {"IR1", "IR2", "IR3"}; 18 18 19 public static final String PREF_PYTHON = "lakewalker.python";20 19 public static final String PREF_MAX_SEG = "lakewalker.max_segs_in_way"; 21 20 public static final String PREF_MAX_NODES = "lakewalker.max_nodes"; … … 31 30 public static final String PREF_WMS = "lakewalker.wms"; 32 31 33 protected StringConfigurer pythonConfig = new StringConfigurer();34 protected JLabel pythonLabel = new JLabel(tr("Python executable"));35 32 protected IntConfigurer maxSegsConfig = new IntConfigurer(); 36 33 protected JLabel maxSegsLabel = new JLabel(tr("Maximum number of segments per way")); … … 59 56 60 57 public void addGui(PreferenceDialog gui) { 61 pythonConfig.setToolTipText(tr("Path to python executable."));62 58 maxSegsConfig.setToolTipText(tr("Maximum number of segments allowed in each generated way. Default 250.")); 63 59 maxNodesConfig.setToolTipText(tr("Maximum number of nodes to generate before bailing out (before simplifying lines). Default 50000.")); … … 73 69 wmsConfig.setToolTipText(tr("Which WMS layer to use for tracing against. Default is IR1.")); 74 70 75 String description = tr("An interlude to the Lakewalker Python module to trace water bodies on Landsat imagery.<br><br>Version: {0}", LakewalkerPlugin.VERSION);71 String description = tr("An plugin to trace water bodies on Landsat imagery."); 76 72 JPanel prefPanel = gui.createPreferenceTab("lakewalker.png", I18n.tr("Lakewalker Plugin Preferences"), description); 77 73 buildPreferences(prefPanel); 78 74 79 pythonConfig.setValue(Main.pref.get(PREF_PYTHON, "python.exe"));80 75 maxSegsConfig.setValue(Main.pref.getInteger(PREF_MAX_SEG, 500)); 81 76 maxNodesConfig.setValue(Main.pref.getInteger(PREF_MAX_NODES, 50000)); … … 96 91 GBC dataConstraints = GBC.eol().insets(0,5,0,0).fill(GBC.HORIZONTAL); 97 92 98 prefPanel.add(pythonLabel, labelConstraints);99 prefPanel.add(pythonConfig.getControls(), dataConstraints);100 93 prefPanel.add(maxSegsLabel, labelConstraints); 101 94 prefPanel.add(maxSegsConfig.getControls(), dataConstraints); … … 128 121 */ 129 122 public void ok() { 130 Main.pref.put(PREF_PYTHON, pythonConfig.getValueString());131 123 Main.pref.put(PREF_MAX_SEG, maxSegsConfig.getValueString()); 132 124 Main.pref.put(PREF_MAX_NODES, maxNodesConfig.getValueString());
Note:
See TracChangeset
for help on using the changeset viewer.