Changeset 14730 in osm for applications/editors/josm/plugins/slippymap/src
- Timestamp:
- 2009-04-24T18:54:27+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java
r13921 r14730 31 31 private JSpinner maxZoomLvl = new JSpinner(); 32 32 private JSlider fadeBackground = new JSlider(0, 100); 33 33 34 34 public void addGui(PreferenceDialog gui) 35 35 { 36 36 //String description = tr("A plugin that adds to JOSM new layer. This layer could render external tiles."); 37 37 JPanel slippymapTab = gui.createPreferenceTab("slippymap.png", tr("SlippyMap"), tr("Settings for the SlippyMap plugin.")); 38 39 JPanel mapUrlPanel = new JPanel();40 38 String[] allMapUrls = SlippyMapPreferences.getAllMapUrls(); 41 39 tileSourceCombo = new JComboBox(allMapUrls); … … 43 41 String source = SlippyMapPreferences.getMapUrl(); 44 42 tileSourceCombo.setSelectedItem(source); 45 mapUrlPanel.add(new JLabel(tr("Tile Sources")), GBC.std());46 mapUrlPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL));47 mapUrlPanel.add(tileSourceCombo, GBC.eol().fill(GBC.HORIZONTAL));43 slippymapTab.add(new JLabel(tr("Tile Sources")), GBC.std()); 44 slippymapTab.add(GBC.glue(5, 0), GBC.std()); 45 slippymapTab.add(tileSourceCombo, GBC.eol().fill(GBC.HORIZONTAL)); 48 46 49 JPanel autozoomPanel = new JPanel(); 50 autozoomPanel.add(new JLabel(tr("Auto zoom: ")), GBC.std()); 51 autozoomPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 52 autozoomPanel.add(autozoomActive, GBC.eol().fill(GBC.HORIZONTAL)); 47 slippymapTab.add(new JLabel(tr("Auto zoom: ")), GBC.std()); 48 slippymapTab.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 49 slippymapTab.add(autozoomActive, GBC.eol().fill(GBC.HORIZONTAL)); 53 50 54 JPanel autoloadPanel = new JPanel(); 55 autoloadPanel.add(new JLabel(tr("Autoload Tiles: ")), GBC.std()); 56 autoloadPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 57 autoloadPanel.add(autoloadTiles, GBC.eol().fill(GBC.HORIZONTAL)); 51 slippymapTab.add(new JLabel(tr("Autoload Tiles: ")), GBC.std()); 52 slippymapTab.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 53 slippymapTab.add(autoloadTiles, GBC.eol().fill(GBC.HORIZONTAL)); 58 54 59 JPanel maxZoomLvlPanel = new JPanel(); 60 maxZoomLvlPanel.add(new JLabel(tr("Max zoom lvl: ")), GBC.std()); 61 maxZoomLvlPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 62 maxZoomLvlPanel.add(this.maxZoomLvl, GBC.eol().fill(GBC.HORIZONTAL)); 55 slippymapTab.add(new JLabel(tr("Max zoom lvl: ")), GBC.std()); 56 slippymapTab.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 57 slippymapTab.add(this.maxZoomLvl, GBC.eol().fill(GBC.HORIZONTAL)); 63 58 64 JPanel fadeBackgroundPanel = new JPanel(); 65 fadeBackgroundPanel.add(new JLabel(tr("Fade background: ")), GBC.std()); 66 fadeBackgroundPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 67 fadeBackgroundPanel.add(this.fadeBackground, GBC.eol().fill(GBC.HORIZONTAL)); 59 slippymapTab.add(new JLabel(tr("Fade background: ")), GBC.std()); 60 slippymapTab.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); 61 slippymapTab.add(this.fadeBackground, GBC.eol().fill(GBC.HORIZONTAL)); 68 62 69 slippymapTab.add(mapUrlPanel, GBC.eol().fill(GBC.HORIZONTAL));70 slippymapTab.add(autozoomPanel, GBC.eol().fill(GBC.HORIZONTAL));71 slippymapTab.add(autoloadPanel, GBC.eol().fill(GBC.HORIZONTAL));72 slippymapTab.add(maxZoomLvlPanel, GBC.eol().fill(GBC.HORIZONTAL));73 slippymapTab.add(fadeBackgroundPanel, GBC.eol().fill(GBC.HORIZONTAL));74 63 slippymapTab.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); 75 64 76 65 this.loadSettings(); 77 66 } 67 78 68 79 69 /**
Note:
See TracChangeset
for help on using the changeset viewer.