- Timestamp:
- 2010-02-27T23:24:25+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r2990 r3057 11 11 import java.awt.FlowLayout; 12 12 import java.awt.Font; 13 import java.awt.GridBagConstraints; 13 14 import java.awt.GridBagLayout; 14 15 import java.awt.Toolkit; … … 25 26 26 27 import javax.swing.AbstractAction; 27 import javax.swing.BorderFactory;28 28 import javax.swing.JCheckBox; 29 29 import javax.swing.JComponent; … … 88 88 89 89 public JPanel buildMainPanel() { 90 // generic constraints used by different components 91 GridBagConstraints gridBagConstraints; 92 90 93 JPanel pnl = new JPanel(); 91 94 pnl.setLayout(new GridBagLayout()); 92 pnl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));93 95 94 96 // adding the download tasks 95 pnl.add(new JLabel(tr("Data Sources and Types")), GBC. eol().insets(0,5,0,0));97 pnl.add(new JLabel(tr("Data Sources and Types:")), GBC.std().insets(5,5,1,5)); 96 98 cbDownloadOsmData = new JCheckBox(tr("OpenStreetMap data"), true); 97 99 cbDownloadOsmData.setToolTipText(tr("Select to download OSM data in the selected download area.")); 98 pnl.add(cbDownloadOsmData, GBC. eol().insets(20,0,0,0));100 pnl.add(cbDownloadOsmData, GBC.std().insets(1,5,1,5)); 99 101 cbDownloadGpxData = new JCheckBox(tr("Raw GPS data")); 100 102 cbDownloadGpxData.setToolTipText(tr("Select to download GPS traces in the selected download area.")); 101 pnl.add(cbDownloadGpxData, GBC.eol().insets( 20,0,0,0));103 pnl.add(cbDownloadGpxData, GBC.eol().insets(5,5,1,5)); 102 104 103 105 // predefined download selections … … 118 120 } 119 121 120 cbNewLayer = new JCheckBox(tr("Download as new layer"));121 cbNewLayer.setToolTipText(tr("<html>Select to download data into a new data layer.<br>"122 +"Unselect to download into the currently active data layer.</html>"));123 pnl.add(cbNewLayer, GBC.eol().insets(0,5,0,0));124 125 pnl. add(new JLabel(tr("Download Area")), GBC.eol().insets(0,5,0,0));126 122 pnl.add(tpDownloadAreaSelectors, GBC.eol().fill()); 127 123 … … 134 130 Font labelFont = sizeCheck.getFont(); 135 131 sizeCheck.setFont(labelFont.deriveFont(Font.PLAIN, labelFont.getSize())); 136 pnl.add(sizeCheck, GBC.eop().insets(0,5,5,10)); 132 133 cbNewLayer = new JCheckBox(tr("Download as new layer")); 134 cbNewLayer.setToolTipText(tr("<html>Select to download data into a new data layer.<br>" 135 +"Unselect to download into the currently active data layer.</html>")); 136 137 pnl.add(cbNewLayer, GBC.std().anchor(GBC.WEST).insets(5,5,5,5)); 138 pnl.add(sizeCheck, GBC.eol().anchor(GBC.EAST).insets(5,5,5,5)); 139 137 140 return pnl; 138 141 } -
trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java
r2689 r3057 14 14 import java.util.Vector; 15 15 16 import javax.swing.JLabel;17 16 import javax.swing.JPanel; 18 17 … … 117 116 slipyyMapTabPanel.setLayout(new BorderLayout()); 118 117 slipyyMapTabPanel.add(this, BorderLayout.CENTER); 119 String labelText = tr("<b>Zoom:</b> Mousewheel, double click or Ctrl + Up/Down "120 + "<b>Move map:</b> Hold right mousebutton and move mouse or use cursor keys. <b>Select:</b> Hold left mousebutton and draw a frame.");121 slipyyMapTabPanel.add(new JLabel("<html>" + labelText + "</html>"), BorderLayout.SOUTH);122 118 iGui.addDownloadAreaSelector(slipyyMapTabPanel, tr("Slippy map")); 123 119 new OsmMapControl(this, slipyyMapTabPanel, iSizeButton, iSourceButton); -
trunk/src/org/openstreetmap/josm/tools/GBC.java
r1169 r3057 97 97 98 98 /** 99 * Specifies how to distribute extra horizontal space. 100 * @param weidhtx Weight in horizontal direction 101 * @param weighty Weight in vertical direction 102 * @return This constraint for chaining. 103 */ 104 public GBC weight(int weightx, int weighty) { 105 this.weightx = weightx; 106 this.weighty = weighty; 107 return this; 108 } 109 110 /** 99 111 * This is a helper to easily create a glue with a minimum default value. 100 112 * @param x If higher than 0, this will be a horizontal glue with x as minimum
Note:
See TracChangeset
for help on using the changeset viewer.