Ignore:
Timestamp:
2011-06-02T00:07:32+02:00 (14 years ago)
Author:
malcolmh
Message:

save

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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java

    r24931 r26086  
    1212        private OSeaMAction dlg;
    1313        public PanelCol panelCol = null;
     14        public PanelChr panelChr = null;
    1415
    1516        public PanelLit(OSeaMAction dia) {
     
    1718                panelCol = new PanelCol(dlg, Ent.LIGHT);
    1819                panelCol.setBounds(new Rectangle(0, 0, 34, 160));
     20                panelCol.blackButton.setVisible(false);
     21                panelChr = new PanelChr(dlg);
     22                panelChr.setBounds(new Rectangle(36, 0, 68, 160));
    1923                this.setLayout(null);
    2024                this.add(panelCol, null);
    21                 panelCol.blackButton.setVisible(false);
     25                this.add(panelChr, null);
    2226        }
    2327
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r26076 r26086  
    450450        public void setsectorIndex(int sector) {
    451451                sectorIndex = sector;
     452        }
     453
     454        public enum Chr {
     455                UNKNOWN, FIXED, FLASH, LONGFLASH, QUICK, VERYQUICK, ULTRAQUICK,
     456                ISOPHASED, OCCULTING, MORSE, ALTERNATING, INTERRUPTEDQUICK, INTERRUPTEDVERYQUICK, INTERRUPTEDULTRAQUICK
     457        }
     458
     459        public static final EnumMap<Chr, String> characters = new EnumMap<Chr, String>(Chr.class);
     460        static {
     461                characters.put(Chr.UNKNOWN, "");
     462                characters.put(Chr.FIXED, "F");
     463                characters.put(Chr.FLASH, "Fl");
     464                characters.put(Chr.LONGFLASH, "LFl");
     465                characters.put(Chr.QUICK, "Q");
     466                characters.put(Chr.VERYQUICK, "VQ");
     467                characters.put(Chr.ULTRAQUICK, "UQ");
     468                characters.put(Chr.ISOPHASED, "Iso");
     469                characters.put(Chr.OCCULTING, "Oc");
     470                characters.put(Chr.MORSE, "Mo");
     471                characters.put(Chr.ALTERNATING, "Al");
     472                characters.put(Chr.INTERRUPTEDQUICK, "IQ");
     473                characters.put(Chr.INTERRUPTEDVERYQUICK, "IVQ");
     474                characters.put(Chr.INTERRUPTEDULTRAQUICK, "IUQ");
    452475        }
    453476
Note: See TracChangeset for help on using the changeset viewer.