Changeset 79 in josm for src/org/openstreetmap/josm/gui/PreferenceDialog.java
- Timestamp:
- 2006-04-03T22:25:02+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/PreferenceDialog.java
r78 r79 68 68 pwd = null; 69 69 Main.pref.put("osm-server.password", pwd); 70 Main.pref.put("wmsServerBaseUrl", wmsServerBaseUrl.getText()); 70 71 Main.pref.put("csvImportString", csvImportString.getText()); 71 72 Main.pref.put("drawRawGpsLines", drawRawGpsLines.isSelected()); … … 106 107 * ComboBox with all look and feels. 107 108 */ 108 109 private JComboBox lafCombo = new JComboBox(UIManager.getInstalledLookAndFeels()); 109 110 /** 110 111 * Combobox with all projections available 111 112 */ 112 113 private JComboBox projectionCombo = new JComboBox(Projection.allProjections); 113 114 /** 114 115 * The main tab panel. … … 119 120 * Editfield for the Base url to the REST API from OSM. 120 121 */ 121 122 private JTextField osmDataServer = new JTextField(20); 122 123 /** 123 124 * Editfield for the username to the OSM account. 124 125 */ 125 126 private JTextField osmDataUsername = new JTextField(20); 126 127 /** 127 128 * Passwordfield for the userpassword of the REST API. 128 129 */ 129 JPasswordField osmDataPassword = new JPasswordField(20); 130 private JPasswordField osmDataPassword = new JPasswordField(20); 131 /** 132 * Base url of the WMS server. Holds everything except the bbox= argument. 133 */ 134 private JTextField wmsServerBaseUrl = new JTextField(20); 130 135 /** 131 136 * Comma seperated import string specifier or <code>null</code> if the first 132 137 * data line should be interpreted as one. 133 138 */ 134 139 private JTextField csvImportString = new JTextField(20); 135 140 /** 136 141 * The checkbox stating whether nodes should be merged together. 137 142 */ 138 143 private JCheckBox drawRawGpsLines = new JCheckBox("Draw lines between raw gps points."); 139 144 /** 140 145 * The checkbox stating whether raw gps lines should be forced. 141 146 */ 142 143 144 147 private JCheckBox forceRawGpsLines = new JCheckBox("Force lines if no line segments imported."); 148 149 private JTable colors; 145 150 146 151 … … 199 204 osmDataUsername.setText(Main.pref.get("osm-server.username")); 200 205 osmDataPassword.setText(Main.pref.get("osm-server.password")); 201 csvImportString.setText(Main.pref.get("csvImportString")); 206 wmsServerBaseUrl.setText(Main.pref.get("wmsServerBaseUrl", "http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&width=512&height=512&layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg&")); 207 csvImportString.setText(Main.pref.get("csvImportString")); 202 208 drawRawGpsLines.setSelected(Main.pref.getBoolean("drawRawGpsLines")); 203 209 forceRawGpsLines.setToolTipText("Force drawing of lines if the imported data contain no line information."); … … 258 264 osmDataUsername.setToolTipText("Login name (email) to the OSM account."); 259 265 osmDataPassword.setToolTipText("Login password to the OSM account. Leave blank to not store any password."); 266 wmsServerBaseUrl.setToolTipText("The base URL to the server retrieving WMS background pictures from."); 260 267 csvImportString.setToolTipText("<html>Import string specification. lat/lon and time are imported.<br>" + 261 268 "<b>lat</b>: The latitude coordinate<br>" + … … 297 304 warning.setFont(warning.getFont().deriveFont(Font.ITALIC)); 298 305 con.add(warning, GBC.eop().fill(GBC.HORIZONTAL)); 306 con.add(new JLabel("WMS server base url (everything except bbox-parameter)"), GBC.eol()); 307 con.add(wmsServerBaseUrl, GBC.eop().fill(GBC.HORIZONTAL)); 308 con.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); 299 309 con.add(new JLabel("CSV import specification (empty: read from first line in data)"), GBC.eol()); 300 310 con.add(csvImportString, GBC.eop().fill(GBC.HORIZONTAL));
Note:
See TracChangeset
for help on using the changeset viewer.