Ignore:
Timestamp:
2010-12-05T14:24:47+01:00 (14 years ago)
Author:
malcolmh
Message:

save

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  
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4
     5import oseam.panels.*;
    46
    57import java.awt.Color;
     
    911import java.awt.event.ActionEvent;
    1012import java.awt.event.ActionListener;
     13import java.awt.event.ComponentListener;
    1114import java.awt.event.FocusAdapter;
    1215import java.awt.event.FocusEvent;
    1316import java.awt.event.ItemEvent;
    1417import java.awt.event.ItemListener;
     18import java.beans.PropertyChangeListener;
    1519import java.util.Collection;
    1620import java.util.Iterator;
     
    3640import org.openstreetmap.josm.data.osm.Node;
    3741import org.openstreetmap.josm.data.osm.OsmPrimitive;
     42import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;
     43import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    3844
    3945import oseam.Messages;
     
    4955        private JRadioButton specButton = null;
    5056        private JRadioButton lightButton = null;
     57        private PanelChan panelChan = null;
    5158
    5259        public OSeaMAction() {
     
    6370                        Main.pref.put("color.background", "#606060");
    6471
     72                panelChan= new PanelChan();
     73                panelChan.setBounds(new Rectangle(110, 0, 290, 160));
     74                panelChan.setVisible(false);
    6575        }
    6676
     
    7585                        oseamPanel.add(getSpecButton(), null);
    7686                        oseamPanel.add(getLightButton(), null);
     87                        oseamPanel.add(panelChan, null);
    7788                        typeButtons = new ButtonGroup();
    7889                        typeButtons.add(chanButton);
     
    8293                        ActionListener alType = new ActionListener() {
    8394                                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                                        }
    85102                                        hazButton.setEnabled(!hazButton.isSelected());
    86103                                        specButton.setEnabled(!specButton.isSelected());
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties

    r24556 r24594  
    99LightsButton=/images/LightsButton.png
    1010LightsTip=Lights marks
     11PortButton=/images/PortButton.png
     12PortTip=Port hand marks
     13StbdButton=/images/StbdButton.png
     14StbdTip=Starboard hand marks
     15PrefPortButton=/images/PrefPortButton.png
     16PrefPortTip=Preferred Port hand marks
     17PrefStbdButton=/images/PrefStbdButton.png
     18PrefStbdTip=Preferred Starboard hand marks
     19SafeWaterButton=/images/SafeWaterButton.png
     20SafeWaterTip=Safe Water marks
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties

    r24556 r24594  
    99LightsButton=/images/LightsButton_de.png
    1010LightsTip=Lights marks
     11PortButton=/images/PortButton_de.png
     12PortTip=Port hand marks
     13StbdButton=/images/StbdButton_de.png
     14StbdTip=Starboard hand marks
     15PrefPortButton=/images/PrefPortButton_de.png
     16PrefPortTip=Preferred Port hand marks
     17PrefStbdButton=/images/PrefStbdButton_de.png
     18PrefStbdTip=Preferred Starboard hand marks
     19SafeWaterButton=/images/SafeWaterButton_de.png
     20SafeWaterTip=Safe Water marks
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties

    r24556 r24594  
    99LightsButton=/images/LightsButton.png
    1010LightsTip=Lights marks
     11PortButton=/images/PortButton.png
     12PortTip=Port hand marks
     13StbdButton=/images/StbdButton.png
     14StbdTip=Starboard hand marks
     15PrefPortButton=/images/PrefPortButton.png
     16PrefPortTip=Preferred Port hand marks
     17PrefStbdButton=/images/PrefStbdButton.png
     18PrefStbdTip=Preferred Starboard hand marks
     19SafeWaterButton=/images/SafeWaterButton.png
     20SafeWaterTip=Safe Water marks
Note: See TracChangeset for help on using the changeset viewer.