Changeset 24577 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-04T15:44:22+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/images/ChanButton.svg
r24545 r24577 10 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 11 11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 12 width=" 50"13 height=" 50"12 width="100" 13 height="40" 14 14 id="svg2" 15 15 version="1.1" 16 16 inkscape:version="0.47 r22583" 17 sodipodi:docname="Chan.svg"> 17 sodipodi:docname="ChanButton.svg" 18 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/images/ChanButton.png" 19 inkscape:export-xdpi="90" 20 inkscape:export-ydpi="90"> 18 21 <defs 19 22 id="defs4"> … … 33 36 inkscape:pageopacity="0.0" 34 37 inkscape:pageshadow="2" 35 inkscape:zoom="1 6.8"36 inkscape:cx=" 17.483568"38 inkscape:zoom="11.879394" 39 inkscape:cx="47.703965" 37 40 inkscape:cy="24.637413" 38 41 inkscape:document-units="px" … … 62 65 <dc:type 63 66 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> 64 <dc:title />67 <dc:title></dc:title> 65 68 </cc:Work> 66 69 </rdf:RDF> … … 70 73 inkscape:groupmode="layer" 71 74 id="layer1" 72 transform="translate(0,-10 02.3622)"75 transform="translate(0,-1012.3622)" 73 76 style="display:inline"> 74 77 <rect … … 105 108 </g> 106 109 <g 107 transform="translate(0,-10 02.3622)"110 transform="translate(0,-1012.3622)" 108 111 id="g2900" 109 112 inkscape:groupmode="layer" 110 113 inkscape:label="Text EN" 111 style="display: none">114 style="display:inline"> 112 115 <text 113 116 inkscape:export-ydpi="90" … … 116 119 sodipodi:linespacing="100%" 117 120 id="text2908" 118 y="10 11.8579"119 x=" 25.189297"121 y="1036.0173" 122 x="75.191849" 120 123 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 121 124 xml:space="preserve"><tspan 122 y="10 11.8579"123 x=" 25.189297"125 y="1036.0173" 126 x="75.191849" 124 127 id="tspan2910" 125 128 sodipodi:role="line">Channel</tspan></text> 126 129 </g> 127 130 <g 128 style="display: inline"131 style="display:none" 129 132 inkscape:label="Text DE" 130 133 inkscape:groupmode="layer" 131 134 id="g2912" 132 transform="translate(0,-10 02.3622)">135 transform="translate(0,-1012.3622)"> 133 136 <text 134 137 xml:space="preserve" 135 138 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 136 x=" 24.951202"137 y="10 11.7985"139 x="75.037933" 140 y="1036.1263" 138 141 id="text2914" 139 142 sodipodi:linespacing="100%" … … 143 146 sodipodi:role="line" 144 147 id="tspan2916" 145 x=" 24.951202"146 y="10 11.7985">Deutsch</tspan></text>148 x="75.037933" 149 y="1036.1263">Deutsch</tspan></text> 147 150 </g> 148 151 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/images/HazButton.svg
r24545 r24577 10 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 11 11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 12 width=" 50"13 height=" 50"12 width="100" 13 height="40" 14 14 id="svg2" 15 15 version="1.1" 16 16 inkscape:version="0.47 r22583" 17 sodipodi:docname="Haz .svg"17 sodipodi:docname="HazButton.svg" 18 18 inkscape:export-filename="/Users/mherring/boatsw/oseam/openseamap/josm/icons/Chan.png" 19 19 inkscape:export-xdpi="90" … … 37 37 inkscape:pageopacity="0.0" 38 38 inkscape:pageshadow="2" 39 inkscape:zoom="1 6.8"40 inkscape:cx=" 17.662139"39 inkscape:zoom="11.879394" 40 inkscape:cx="51.249711" 41 41 inkscape:cy="26.914183" 42 42 inkscape:document-units="px" … … 74 74 inkscape:groupmode="layer" 75 75 id="layer1" 76 transform="translate(0,-10 02.3622)"76 transform="translate(0,-1012.3622)" 77 77 style="display:inline"> 78 78 <path … … 104 104 sodipodi:rx="4.6130953" 105 105 sodipodi:ry="4.5833335" 106 d="m 30.238095,18.154762 a 4.6130953,4.5833335 0 1 1 -9.22619,0 4.6130953,4.5833335 0 1 1 9.22619,0z"106 d="m 30.238095,18.154762 c 0,2.531305 -2.065353,4.583334 -4.613095,4.583334 -2.547742,0 -4.613095,-2.052029 -4.613095,-4.583334 0,-2.531305 2.065353,-4.583333 4.613095,-4.583333 2.547742,0 4.613095,2.052028 4.613095,4.583333 z" 107 107 transform="matrix(0.97349799,0,0,0.97981954,0.06898993,1004.5888)" /> 108 108 <path 109 109 transform="matrix(0.97349799,0,0,0.97981954,0.03922803,1014.4995)" 110 d="m 30.238095,18.154762 a 4.6130953,4.5833335 0 1 1 -9.22619,0 4.6130953,4.5833335 0 1 1 9.22619,0z"110 d="m 30.238095,18.154762 c 0,2.531305 -2.065353,4.583334 -4.613095,4.583334 -2.547742,0 -4.613095,-2.052029 -4.613095,-4.583334 0,-2.531305 2.065353,-4.583333 4.613095,-4.583333 2.547742,0 4.613095,2.052028 4.613095,4.583333 z" 111 111 sodipodi:ry="4.5833335" 112 112 sodipodi:rx="4.6130953" … … 118 118 </g> 119 119 <g 120 transform="translate(0,-10 02.3622)"120 transform="translate(0,-1012.3622)" 121 121 id="g3612" 122 122 inkscape:groupmode="layer" 123 123 inkscape:label="Text EN" 124 style="display: none">124 style="display:inline"> 125 125 <text 126 126 inkscape:export-ydpi="90" … … 129 129 sodipodi:linespacing="100%" 130 130 id="text3614" 131 y="10 11.6199"132 x=" 24.594061"131 y="1034.9376" 132 x="74.596611" 133 133 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 134 134 xml:space="preserve"><tspan 135 y="10 11.6199"136 x=" 24.594061"135 y="1034.9376" 136 x="74.596611" 137 137 id="tspan3616" 138 138 sodipodi:role="line">Danger</tspan></text> 139 139 </g> 140 140 <g 141 style="display: inline"141 style="display:none" 142 142 inkscape:label="Text DE" 143 143 inkscape:groupmode="layer" 144 144 id="g3636" 145 transform="translate(0,-10 02.3622)">145 transform="translate(0,-1012.3622)"> 146 146 <text 147 147 xml:space="preserve" 148 148 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d40000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 149 x=" 24.951204"150 y="10 11.977"149 x="74.953758" 150 y="1035.9681" 151 151 id="text3638" 152 152 sodipodi:linespacing="100%" … … 156 156 sodipodi:role="line" 157 157 id="tspan3640" 158 x=" 24.951204"159 y="10 11.977">Deutsch</tspan></text>158 x="74.953758" 159 y="1035.9681">Deutsch</tspan></text> 160 160 </g> 161 161 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/images/LightsButton.svg
r24545 r24577 10 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 11 11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 12 width=" 50"13 height=" 50"12 width="100" 13 height="40" 14 14 id="svg2" 15 15 version="1.1" 16 16 inkscape:version="0.47 r22583" 17 sodipodi:docname="Lights .svg"17 sodipodi:docname="LightsButton.svg" 18 18 inkscape:export-filename="/Users/mherring/boatsw/oseam/josm/plugins/smed/plugs/oseam/src/Lights.png" 19 19 inkscape:export-xdpi="90" … … 1115 1115 inkscape:pageshadow="2" 1116 1116 inkscape:zoom="11.879394" 1117 inkscape:cx=" 14.574065"1117 inkscape:cx="58.263162" 1118 1118 inkscape:cy="14.533528" 1119 1119 inkscape:document-units="px" … … 1151 1151 inkscape:groupmode="layer" 1152 1152 id="layer1" 1153 transform="translate(0,-10 02.3622)"1153 transform="translate(0,-1012.3622)" 1154 1154 style="display:inline"> 1155 1155 <g … … 1237 1237 </g> 1238 1238 <g 1239 transform="translate(0,-10 02.3622)"1239 transform="translate(0,-1012.3622)" 1240 1240 id="g3309" 1241 1241 inkscape:groupmode="layer" 1242 1242 inkscape:label="Text EN" 1243 style="display: none">1243 style="display:inline"> 1244 1244 <text 1245 1245 inkscape:export-ydpi="90" … … 1248 1248 sodipodi:linespacing="100%" 1249 1249 id="text3311" 1250 y="10 11.8578"1251 x=" 24.777712"1250 y="1034.9227" 1251 x="74.696091" 1252 1252 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d400d4;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 1253 1253 xml:space="preserve"><tspan 1254 y="10 11.8578"1255 x=" 24.777712"1254 y="1034.9227" 1255 x="74.696091" 1256 1256 id="tspan3313" 1257 1257 sodipodi:role="line">Lights</tspan></text> 1258 1258 </g> 1259 1259 <g 1260 style="display: inline"1260 style="display:none" 1261 1261 inkscape:label="Text DE" 1262 1262 inkscape:groupmode="layer" 1263 1263 id="g3341" 1264 transform="translate(0,-10 02.3622)">1264 transform="translate(0,-1012.3622)"> 1265 1265 <text 1266 1266 xml:space="preserve" 1267 1267 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#d400d4;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 1268 x=" 25.030249"1269 y="10 11.8579"1268 x="74.948616" 1269 y="1036.1016" 1270 1270 id="text3343" 1271 1271 sodipodi:linespacing="100%" … … 1275 1275 sodipodi:role="line" 1276 1276 id="tspan3345" 1277 x=" 25.030249"1278 y="10 11.8579">Deutsch</tspan></text>1277 x="74.948616" 1278 y="1036.1016">Deutsch</tspan></text> 1279 1279 </g> 1280 1280 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/images/SpecButton.svg
r24545 r24577 10 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 11 11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 12 width=" 50"13 height=" 50"12 width="100" 13 height="40" 14 14 id="svg2" 15 15 version="1.1" 16 16 inkscape:version="0.47 r22583" 17 sodipodi:docname="Spec .svg">17 sodipodi:docname="SpecButton.svg"> 18 18 <defs 19 19 id="defs4"> … … 33 33 inkscape:pageopacity="0.0" 34 34 inkscape:pageshadow="2" 35 inkscape:zoom="1 6.8"36 inkscape:cx=" 9.07896"35 inkscape:zoom="11.879394" 36 inkscape:cx="52.768058" 37 37 inkscape:cy="27.488438" 38 38 inkscape:document-units="px" 39 inkscape:current-layer="g37 25"39 inkscape:current-layer="g3709" 40 40 showgrid="true" 41 41 inkscape:showpageshadow="false" … … 70 70 inkscape:groupmode="layer" 71 71 id="layer1" 72 transform="translate(0,-10 02.3622)"72 transform="translate(0,-1012.3622)" 73 73 style="display:inline"> 74 74 <path … … 101 101 </g> 102 102 <g 103 transform="translate(0,-10 02.3622)"103 transform="translate(0,-1012.3622)" 104 104 id="g3709" 105 105 inkscape:groupmode="layer" 106 106 inkscape:label="Text EN" 107 style="display: none">107 style="display:inline"> 108 108 <text 109 109 inkscape:export-ydpi="90" … … 112 112 sodipodi:linespacing="100%" 113 113 id="text3711" 114 y="10 11.977"115 x=" 25.129772"114 y="1035.2106" 115 x="75.132324" 116 116 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#ffd400;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 117 117 xml:space="preserve"><tspan 118 y="10 11.977"119 x=" 25.129772"118 y="1035.2106" 119 x="75.132324" 120 120 id="tspan3713" 121 121 sodipodi:role="line">Special</tspan></text> 122 122 </g> 123 123 <g 124 style="display: inline"124 style="display:none" 125 125 inkscape:label="Text DE" 126 126 inkscape:groupmode="layer" 127 127 id="g3725" 128 transform="translate(0,-10 02.3622)">128 transform="translate(0,-1012.3622)"> 129 129 <text 130 130 xml:space="preserve" 131 131 style="font-size:10px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#ffd400;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" 132 x=" 25.129772"133 y="10 11.977"132 x="75.048141" 133 y="1036.1364" 134 134 id="text3727" 135 135 sodipodi:linespacing="100%" … … 139 139 sodipodi:role="line" 140 140 id="tspan3729" 141 x=" 25.129772"142 y="10 11.977">Deutsch</tspan></text>141 x="75.048141" 142 y="1036.1364">Deutsch</tspan></text> 143 143 </g> 144 144 </svg> -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24556 r24577 41 41 42 42 private JPanel oseamPanel = null; 43 private JButton chanButton = null; 44 private JButton hazButton = null; 45 private JButton specButton = null; 46 private JButton lightButton = null; 43 private ButtonGroup typeButtons = null; 44 private JRadioButton chanButton = null; 45 private JRadioButton hazButton = null; 46 private JRadioButton specButton = null; 47 private JRadioButton lightButton = null; 47 48 48 49 public OSeaMAction() { … … 66 67 oseamPanel.setLayout(null); 67 68 oseamPanel.setSize(new Dimension(400, 360)); 68 // System.out.println("file=" + Messages.getString("ChanButton"));69 69 oseamPanel.add(getChanButton(), null); 70 70 oseamPanel.add(getHazButton(), null); 71 71 oseamPanel.add(getSpecButton(), null); 72 72 oseamPanel.add(getLightButton(), null); 73 typeButtons = new ButtonGroup(); 74 typeButtons.add(chanButton); 75 typeButtons.add(hazButton); 76 typeButtons.add(specButton); 77 typeButtons.add(lightButton); 78 ActionListener alType = new ActionListener() { 79 public void actionPerformed(java.awt.event.ActionEvent e) { 80 //System.out.println("pressed: " + chanButton.isSelected() + " " + hazButton.isSelected() + " " + specButton.isSelected() + " " + lightButton.isSelected()); 81 } 82 }; 83 chanButton.addActionListener(alType); 84 hazButton.addActionListener(alType); 85 specButton.addActionListener(alType); 86 lightButton.addActionListener(alType); 73 87 } 74 88 return oseamPanel; 75 89 } 76 90 77 private J Button getChanButton() {91 private JRadioButton getChanButton() { 78 92 if (chanButton == null) { 79 chanButton = new JButton(); 80 chanButton.setBounds(new Rectangle(5, 5, 50, 50)); 81 chanButton.setText(""); 82 chanButton.setIcon(new ImageIcon(getClass().getResource( 93 chanButton = new JRadioButton(new ImageIcon(getClass().getResource( 83 94 Messages.getString("ChanButton")))); 95 chanButton.setBounds(new Rectangle(5, 0, 105, 40)); 96 chanButton.setBorderPainted(true); 84 97 chanButton.setToolTipText(Messages.getString("ChanTip")); 85 chanButton.addActionListener(new java.awt.event.ActionListener() {86 public void actionPerformed(java.awt.event.ActionEvent e) {87 /*88 * panelLimits.setVisible(false);89 * panelServices.setVisible(false);90 * panelEnv.setVisible(false);91 * panelRelations.setVisible(false);92 * panelGeneral.setVisible(true);93 */}94 });95 98 } 96 99 return chanButton; 97 100 } 98 101 99 private J Button getHazButton() {102 private JRadioButton getHazButton() { 100 103 if (hazButton == null) { 101 hazButton = new JButton(); 102 hazButton.setBounds(new Rectangle(60, 5, 50, 50)); 103 hazButton.setText(""); 104 hazButton.setIcon(new ImageIcon(getClass().getResource( 104 hazButton = new JRadioButton(new ImageIcon(getClass().getResource( 105 105 Messages.getString("HazButton")))); 106 hazButton.setBounds(new Rectangle(5, 40, 105, 40)); 107 hazButton.setBorderPainted(true); 106 108 hazButton.setToolTipText(Messages.getString("HazTip")); 107 hazButton.addActionListener(new java.awt.event.ActionListener() {108 public void actionPerformed(java.awt.event.ActionEvent e) {109 /*110 * panelLimits.setVisible(false);111 * panelServices.setVisible(false);112 * panelEnv.setVisible(false);113 * panelRelations.setVisible(false);114 * panelGeneral.setVisible(true);115 */}116 });117 109 } 118 110 return hazButton; 119 111 } 120 112 121 private J Button getSpecButton() {113 private JRadioButton getSpecButton() { 122 114 if (specButton == null) { 123 specButton = new JButton(); 124 specButton.setBounds(new Rectangle(115, 5, 50, 50)); 125 specButton.setText(""); 126 specButton.setIcon(new ImageIcon(getClass().getResource( 115 specButton = new JRadioButton(new ImageIcon(getClass().getResource( 127 116 Messages.getString("SpecButton")))); 117 specButton.setBounds(new Rectangle(5, 80, 105, 40)); 118 specButton.setBorderPainted(true); 128 119 specButton.setToolTipText(Messages.getString("SpecTip")); 129 specButton.addActionListener(new java.awt.event.ActionListener() {130 public void actionPerformed(java.awt.event.ActionEvent e) {131 /*132 * panelLimits.setVisible(false);133 * panelServices.setVisible(false);134 * panelEnv.setVisible(false);135 * panelRelations.setVisible(false);136 * panelGeneral.setVisible(true);137 */}138 });139 120 } 140 121 return specButton; 141 122 } 142 123 143 private J Button getLightButton() {124 private JRadioButton getLightButton() { 144 125 if (lightButton == null) { 145 lightButton = new JButton(); 146 lightButton.setBounds(new Rectangle(170, 5, 50, 50)); 147 lightButton.setText(""); 148 lightButton.setIcon(new ImageIcon(getClass().getResource( 126 lightButton = new JRadioButton(new ImageIcon(getClass().getResource( 149 127 Messages.getString("LightsButton")))); 128 lightButton.setBounds(new Rectangle(5, 120, 105, 40)); 129 lightButton.setBorderPainted(true); 150 130 lightButton.setToolTipText(Messages.getString("LightsTip")); 151 lightButton.addActionListener(new java.awt.event.ActionListener() {152 public void actionPerformed(java.awt.event.ActionEvent e) {153 /*154 * panelLimits.setVisible(false);155 * panelServices.setVisible(false);156 * panelEnv.setVisible(false);157 * panelRelations.setVisible(false);158 * panelGeneral.setVisible(true);159 */}160 });161 131 } 162 132 return lightButton;
Note:
See TracChangeset
for help on using the changeset viewer.