Changeset 24594 in osm for applications/editors
- Timestamp:
- 2010-12-05T14:24:47+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24592 r24594 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 import oseam.panels.*; 4 6 5 7 import java.awt.Color; … … 9 11 import java.awt.event.ActionEvent; 10 12 import java.awt.event.ActionListener; 13 import java.awt.event.ComponentListener; 11 14 import java.awt.event.FocusAdapter; 12 15 import java.awt.event.FocusEvent; 13 16 import java.awt.event.ItemEvent; 14 17 import java.awt.event.ItemListener; 18 import java.beans.PropertyChangeListener; 15 19 import java.util.Collection; 16 20 import java.util.Iterator; … … 36 40 import org.openstreetmap.josm.data.osm.Node; 37 41 import org.openstreetmap.josm.data.osm.OsmPrimitive; 42 import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener; 43 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 38 44 39 45 import oseam.Messages; … … 49 55 private JRadioButton specButton = null; 50 56 private JRadioButton lightButton = null; 57 private PanelChan panelChan = null; 51 58 52 59 public OSeaMAction() { … … 63 70 Main.pref.put("color.background", "#606060"); 64 71 72 panelChan= new PanelChan(); 73 panelChan.setBounds(new Rectangle(110, 0, 290, 160)); 74 panelChan.setVisible(false); 65 75 } 66 76 … … 75 85 oseamPanel.add(getSpecButton(), null); 76 86 oseamPanel.add(getLightButton(), null); 87 oseamPanel.add(panelChan, null); 77 88 typeButtons = new ButtonGroup(); 78 89 typeButtons.add(chanButton); … … 82 93 ActionListener alType = new ActionListener() { 83 94 public void actionPerformed(java.awt.event.ActionEvent e) { 84 chanButton.setEnabled(!chanButton.isSelected()); 95 if (chanButton.isSelected()) { 96 chanButton.setEnabled(false); 97 panelChan.setVisible(true); 98 } else { 99 chanButton.setEnabled(true); 100 panelChan.setVisible(false); 101 } 85 102 hazButton.setEnabled(!hazButton.isSelected()); 86 103 specButton.setEnabled(!specButton.isSelected()); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r24556 r24594 9 9 LightsButton=/images/LightsButton.png 10 10 LightsTip=Lights marks 11 PortButton=/images/PortButton.png 12 PortTip=Port hand marks 13 StbdButton=/images/StbdButton.png 14 StbdTip=Starboard hand marks 15 PrefPortButton=/images/PrefPortButton.png 16 PrefPortTip=Preferred Port hand marks 17 PrefStbdButton=/images/PrefStbdButton.png 18 PrefStbdTip=Preferred Starboard hand marks 19 SafeWaterButton=/images/SafeWaterButton.png 20 SafeWaterTip=Safe Water marks -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties
r24556 r24594 9 9 LightsButton=/images/LightsButton_de.png 10 10 LightsTip=Lights marks 11 PortButton=/images/PortButton_de.png 12 PortTip=Port hand marks 13 StbdButton=/images/StbdButton_de.png 14 StbdTip=Starboard hand marks 15 PrefPortButton=/images/PrefPortButton_de.png 16 PrefPortTip=Preferred Port hand marks 17 PrefStbdButton=/images/PrefStbdButton_de.png 18 PrefStbdTip=Preferred Starboard hand marks 19 SafeWaterButton=/images/SafeWaterButton_de.png 20 SafeWaterTip=Safe Water marks -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r24556 r24594 9 9 LightsButton=/images/LightsButton.png 10 10 LightsTip=Lights marks 11 PortButton=/images/PortButton.png 12 PortTip=Port hand marks 13 StbdButton=/images/StbdButton.png 14 StbdTip=Starboard hand marks 15 PrefPortButton=/images/PrefPortButton.png 16 PrefPortTip=Preferred Port hand marks 17 PrefStbdButton=/images/PrefStbdButton.png 18 PrefStbdTip=Preferred Starboard hand marks 19 SafeWaterButton=/images/SafeWaterButton.png 20 SafeWaterTip=Safe Water marks
Note:
See TracChangeset
for help on using the changeset viewer.