Changeset 27441 in osm


Ignore:
Timestamp:
2012-01-14T10:03:12+01:00 (13 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties

    r27423 r27441  
    301301SBM=SBM Buoy
    302302
     303CoastguardStation=Coastguard Station
     304PilotBoarding=Pilot Boarding
     305CruisingVessel=Cruising Vessel
     306Helicopter=Helicopter
     307FromShore=From Shore
     308RescueStation=Rescue Station
     309RadioStation=Radio Station
     310RadarStation=Radar Station
     311
    303312NotDecimal=Not a valid decimal string
    304313TooBig=Maximum value exceeded
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java

    r27439 r27441  
    7777                                int idx = pilotCats.get(cat);
    7878                                if (dlg.node != null && (idx == pilotCatBox.getSelectedIndex())) {
     79                                        dlg.panelMain.mark.setCategory(cat);
     80                                        dlg.panelMain.mark.testValid();
     81                                }
     82                        }
     83                }
     84        };
     85        public JComboBox rescueCatBox;
     86        public EnumMap<Cat, Integer> rescueCats = new EnumMap<Cat, Integer>(Cat.class);
     87        private ActionListener alRescueCatBox = new ActionListener() {
     88                public void actionPerformed(java.awt.event.ActionEvent e) {
     89                        for (Cat cat : rescueCats.keySet()) {
     90                                int idx = rescueCats.get(cat);
     91                                if (dlg.node != null && (idx == rescueCatBox.getSelectedIndex())) {
    7992                                        dlg.panelMain.mark.setCategory(cat);
    8093                                        dlg.panelMain.mark.testValid();
     
    158171                add(getObjButton(trafficButton, 68, 35, 34, 32, "SSTraffic", Obj.SISTAT));
    159172                add(getObjButton(warningButton, 102, 35, 34, 32, "SSWarning", Obj.SISTAW));
    160                 add(getObjButton(coastguardButton, 0, 70, 34, 32, "Coastguard", Obj.CGUSTA));
     173                add(getObjButton(coastguardButton, 0, 70, 34, 32, "CoastguardStation", Obj.CGUSTA));
    161174                add(getObjButton(pilotButton, 34, 70, 34, 32, "PilotBoarding", Obj.PILBOP));
    162175                add(getObjButton(rescueButton, 68, 70, 34, 32, "RescueStation", Obj.RSCSTA));
Note: See TracChangeset for help on using the changeset viewer.