Ignore:
Timestamp:
2010-09-15T15:17:48+02:00 (14 years ago)
Author:
malcolmh
Message:

new symbols

Location:
applications/editors/josm/plugins/toms/src
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java

    r23166 r23176  
    450450                                        return;
    451451                                } else if (str.equals("yellow")) { //$NON-NLS-1$
    452                                         buoy = new BuoySaw(this, node);
     452                                        buoy = new BuoySpec(this, node);
    453453                                        return;
    454454                                }
  • applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java

    r23174 r23176  
    100100        public final static int ISOL_FLOAT = 5;
    101101        public final static int SPEC_PILLAR = 1;
    102         public final static int SPEC_SPAR = 2;
    103         public final static int SPEC_SPHERE = 3;
    104         public final static int SPEC_BARREL = 4;
    105         public final static int SPEC_FLOAT = 5;
    106         public final static int SPEC_BEACON = 6;
    107         public final static int SPEC_TOWER = 7;
     102        public final static int SPEC_CAN = 2;
     103        public final static int SPEC_CONE = 3;
     104        public final static int SPEC_SPAR = 4;
     105        public final static int SPEC_BEACON = 5;
     106        public final static int SPEC_TOWER = 6;
     107        public final static int SPEC_FLOAT = 7;
     108        public final static int SPEC_SPHERE = 8;
     109        public final static int SPEC_BARREL = 9;
    108110       
    109111        /**
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23174 r23176  
    413413                }
    414414                setSectorIndex(0);
     415                dlg.cbM01Sector.setSelectedIndex(0);
    415416                dlg.cM01Fired.setSelected(isFired());
    416417                dlg.rbM01Fired1.setSelected(!isSectored());
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java

    r23174 r23176  
    3232                dlg.cbM01StyleOfMark.addItem(Messages.getString("SmpDialogAction.212")); //$NON-NLS-1$
    3333                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.01")); //$NON-NLS-1$
     34                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.02")); //$NON-NLS-1$
     35                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.03")); //$NON-NLS-1$
    3436                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.04")); //$NON-NLS-1$
     37                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.05")); //$NON-NLS-1$
     38                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.06")); //$NON-NLS-1$
     39                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.07")); //$NON-NLS-1$
    3540                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.08")); //$NON-NLS-1$
    3641                dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.09")); //$NON-NLS-1$
    37                 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.07")); //$NON-NLS-1$
    38                 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.05")); //$NON-NLS-1$
    39                 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.06")); //$NON-NLS-1$
    4042                dlg.cbM01StyleOfMark.setVisible(true);
    4143                dlg.lM01StyleOfMark.setVisible(true);
     
    7173                        if (str.equals("pillar")) //$NON-NLS-1$
    7274                                setStyleIndex(SPEC_PILLAR);
     75                        else if (str.equals("can")) //$NON-NLS-1$
     76                                setStyleIndex(SPEC_CAN);
     77                        else if (str.equals("conical")) //$NON-NLS-1$
     78                                setStyleIndex(SPEC_CONE);
    7379                        else if (str.equals("spar")) //$NON-NLS-1$
    7480                                setStyleIndex(SPEC_SPAR);
     
    7985                }
    8086
     87                if (keys.containsKey("seamark:beacon_special_purpose:shape")) { //$NON-NLS-1$
     88                        str = keys.get("seamark:beacon_special_purpose:shape"); //$NON-NLS-1$
     89                if (str.equals("tower")) //$NON-NLS-1$
     90                        setStyleIndex(SPEC_TOWER);
     91                else
     92                        setStyleIndex(SPEC_BEACON);
     93                }
     94
     95                if (keys.containsKey("seamark:light_float:colour")) {
     96                        setStyleIndex(SPEC_FLOAT);
     97                }
     98               
    8199                if ((keys.containsKey("seamark:type") && keys.get("seamark:type").equals( //$NON-NLS-1$ //$NON-NLS-2$
    82100                                "beacon_special_purpose")) //$NON-NLS-1$
Note: See TracChangeset for help on using the changeset viewer.