Changeset 27314 in osm for applications/editors
- Timestamp:
- 2011-12-23T17:34:12+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r27230 r27314 133 133 break; 134 134 case C: 135 dlg.panelMain.mark.setTopPattern(Pat.H ORIZ);135 dlg.panelMain.mark.setTopPattern(Pat.HSTRP); 136 136 dlg.panelMain.mark.setTopColour(Col.RED); 137 137 dlg.panelMain.mark.addTopColour(Col.WHITE); … … 152 152 break; 153 153 case C: 154 dlg.panelMain.mark.setTopPattern(Pat.H ORIZ);154 dlg.panelMain.mark.setTopPattern(Pat.HSTRP); 155 155 dlg.panelMain.mark.setTopColour(Col.GREEN); 156 156 dlg.panelMain.mark.addTopColour(Col.WHITE); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r27230 r27314 73 73 dlg.panelMain.mark.addColour(ent, stackIdx, col); 74 74 break; 75 case SQUARE :75 case SQUARED: 76 76 if (stackCol.size() < 4) 77 77 dlg.panelMain.mark.addColour(ent, stackIdx, col); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r27230 r27314 24 24 private ActionListener alCat = new ActionListener() { 25 25 public void actionPerformed(java.awt.event.ActionEvent e) { 26 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);26 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 27 27 if (northButton.isSelected()) { 28 28 dlg.panelMain.mark.setCategory(Cat.CAM_NORTH); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r27230 r27314 142 142 addLCItem(Messages.getString("FlareStack"), Cat.LMK_FLRS); 143 143 addLCItem(Messages.getString("Monument"), Cat.LMK_MNMT); 144 addLCItem(Messages.getString("RadioMast"), Cat.LMK_RADM);145 144 addLCItem(Messages.getString("WindMotor"), Cat.LMK_WNDM); 146 145 addLCItem(Messages.getString("WindSock"), Cat.LMK_WNDS); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMore.java
r27230 r27314 109 109 dlg.panelMain.mark.addObjColour(Col.GREEN); 110 110 dlg.panelMain.mark.addObjColour(Col.RED); 111 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);111 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 112 112 break; 113 113 case LAM_STBD: … … 119 119 dlg.panelMain.mark.addObjColour(Col.RED); 120 120 dlg.panelMain.mark.addObjColour(Col.GREEN); 121 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);121 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 122 122 break; 123 123 } … … 137 137 dlg.panelMain.mark.addObjColour(Col.RED); 138 138 dlg.panelMain.mark.addObjColour(Col.GREEN); 139 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);139 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 140 140 break; 141 141 case LAM_STBD: … … 147 147 dlg.panelMain.mark.addObjColour(Col.GREEN); 148 148 dlg.panelMain.mark.addObjColour(Col.RED); 149 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);149 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 150 150 break; 151 151 } … … 156 156 if (regionCButton.isSelected()) { 157 157 dlg.panelMain.mark.setRegion(Reg.C); 158 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);158 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 159 159 switch (dlg.panelMain.mark.getCategory()) { 160 160 case LAM_PORT: -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPat.java
r27230 r27314 40 40 panelCol.trimStack(1); 41 41 break; 42 case H ORIZ:43 case V ERT:42 case HSTRP: 43 case VSTRP: 44 44 case DIAG: 45 45 break; 46 case SQUARE :46 case SQUARED: 47 47 panelCol.trimStack(4); 48 48 break; … … 63 63 add(panelCol); 64 64 add(getPatButton(noneButton, 76, 0, 27, 27, "NoPat", Pat.NOPAT)); 65 add(getPatButton(horizButton, 76, 26, 27, 27, "HorizPat", Pat.H ORIZ));66 add(getPatButton(vertButton, 76, 52, 27, 27, "VertPat", Pat.V ERT));65 add(getPatButton(horizButton, 76, 26, 27, 27, "HorizPat", Pat.HSTRP)); 66 add(getPatButton(vertButton, 76, 52, 27, 27, "VertPat", Pat.VSTRP)); 67 67 add(getPatButton(diagButton, 76, 78, 27, 27, "DiagPat", Pat.DIAG)); 68 add(getPatButton(squareButton, 76, 104, 27, 27, "SquarePat", Pat.SQUARE ));68 add(getPatButton(squareButton, 76, 104, 27, 27, "SquarePat", Pat.SQUARED)); 69 69 add(getPatButton(borderButton, 76, 130, 27, 27, "BorderPat", Pat.BORDER)); 70 70 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r27230 r27314 51 51 break; 52 52 case C: 53 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);53 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 54 54 dlg.panelMain.mark.setObjColour(Col.RED); 55 55 dlg.panelMain.mark.addObjColour(Col.WHITE); … … 59 59 } 60 60 } else { 61 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);61 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 62 62 switch (dlg.panelMain.mark.getRegion()) { 63 63 case A: -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java
r27230 r27314 35 35 if (dlg.panelMain.mark.testValid()) { 36 36 dlg.panelMain.panelChan.topmarkButton.setVisible(true); 37 dlg.panelMain.mark.setObjPattern(Pat.V ERT);37 dlg.panelMain.mark.setObjPattern(Pat.VSTRP); 38 38 dlg.panelMain.mark.setObjColour(Col.RED); 39 39 dlg.panelMain.mark.addObjColour(Col.WHITE); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r27230 r27314 51 51 break; 52 52 case C: 53 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);53 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 54 54 dlg.panelMain.mark.setObjColour(Col.GREEN); 55 55 dlg.panelMain.mark.addObjColour(Col.WHITE); … … 59 59 } 60 60 } else { 61 dlg.panelMain.mark.setObjPattern(Pat.H ORIZ);61 dlg.panelMain.mark.setObjPattern(Pat.HSTRP); 62 62 switch (dlg.panelMain.mark.getRegion()) { 63 63 case A: -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27230 r27314 202 202 SIS_DNGR, SIS_OBST, SIS_CABL, SIS_MILY, SIS_DSTR, SIS_WTHR, SIS_STRM, SIS_ICE, SIS_TIME, SIS_TIDE, 203 203 SIS_TSTM, SIS_TGAG, SIS_TSCL, SIS_DIVE, SIS_LGAG, LIT_DIRF, LIT_LEDG, 204 LMK_CHMY, LMK_CARN, LMK_DSHA, LMK_FLGS, LMK_FLRS, LMK_MNMT, LMK_ RADM, LMK_TOWR, LMK_WNDM, LMK_WTRT,204 LMK_CHMY, LMK_CARN, LMK_DSHA, LMK_FLGS, LMK_FLRS, LMK_MNMT, LMK_TOWR, LMK_WNDM, LMK_WTRT, 205 205 LMK_MAST, LMK_WNDS, LMK_CLMN, LMK_OBLK, LMK_STAT, LMK_CROS, LMK_DOME, LMK_SCNR, LMK_WNDL, LMK_SPIR 206 206 } … … 271 271 CatSTR.put(Cat.LMK_FLRS, "flare_stack"); 272 272 CatSTR.put(Cat.LMK_MNMT, "monument"); 273 CatSTR.put(Cat.LMK_RADM, "radio_mast");274 273 CatSTR.put(Cat.LMK_TOWR, "tower"); 275 274 CatSTR.put(Cat.LMK_WNDM, "windmotor"); … … 502 501 ChrMAP.put(EnumSet.of(Chr.FIXED, Chr.FLASH), "FFl"); 503 502 ChrMAP.put(EnumSet.of(Chr.FLASH, Chr.LFLASH), "FlLFl"); 503 ChrMAP.put(EnumSet.of(Chr.FIXED, Chr.OCCULTING), "FOc"); 504 ChrMAP.put(EnumSet.of(Chr.FIXED, Chr.LFLASH), "FLFl"); 504 505 ChrMAP.put(EnumSet.of(Chr.OCCULTING, Chr.FLASH), "OcFl"); 505 ChrMAP.put(EnumSet.of(Chr.FIXED, Chr.LFLASH), "FLFl");506 506 ChrMAP.put(EnumSet.of(Chr.QUICK, Chr.LFLASH), "Q+LFl"); 507 507 ChrMAP.put(EnumSet.of(Chr.VQUICK, Chr.LFLASH), "VQ+LFl"); … … 635 635 } 636 636 637 public void nulLight(int i) { 638 if (sectors.size() >= i) { 639 if (sectors.size() == 0) 640 sectors.add(sector.clone()); 641 else 642 sectors.add(i, sector.clone()); 643 } 644 } 645 637 646 public void addLight() { 638 647 if (sectors.size() == 0) … … 654 663 655 664 public enum Pat { 656 NOPAT, H ORIZ, VERT, DIAG, SQUARE, BORDER, CROSS665 NOPAT, HSTRP, VSTRP, DIAG, SQUARED, BORDER, CROSS 657 666 } 658 667 659 668 public static final EnumMap<Pat, String> PatSTR = new EnumMap<Pat, String>(Pat.class); 660 669 static { 661 PatSTR.put(Pat.H ORIZ, "horizontal");662 PatSTR.put(Pat.V ERT, "vertical");670 PatSTR.put(Pat.HSTRP, "horizontal"); 671 PatSTR.put(Pat.VSTRP, "vertical"); 663 672 PatSTR.put(Pat.DIAG, "diagonal"); 664 PatSTR.put(Pat.SQUARE , "squared");673 PatSTR.put(Pat.SQUARED, "squared"); 665 674 PatSTR.put(Pat.BORDER, "border"); 666 675 PatSTR.put(Pat.CROSS, "cross"); … … 1468 1477 String secStr = (i == 0) ? "" : (":" + Integer.toString(i)); 1469 1478 if (keys.containsKey("seamark:light" + secStr + ":colour")) { 1479 nulLight(i); 1470 1480 str = keys.get("seamark:light" + secStr + ":colour"); 1471 1481 if (str.contains(";")) { … … 1592 1602 setInfo(keys.get("seamark:information")); 1593 1603 } 1604 if (keys.containsKey("seamark:light:information")) { 1605 setInfo(getInfo() + keys.get("seamark:light:information")); 1606 } 1607 if (keys.containsKey("seamark:" + ObjSTR.get(getObject()) + "information")) { 1608 setInfo(getInfo() + keys.get("seamark:" + ObjSTR.get(getObject()) + "information")); 1609 } 1594 1610 if (keys.containsKey("seamark:source")) { 1595 1611 setSource(keys.get("seamark:source")); 1612 } 1613 if (keys.containsKey("seamark:light:source")) { 1614 setSource(getSource() + keys.get("seamark:light:source")); 1615 } 1616 if (keys.containsKey("seamark:" + ObjSTR.get(getObject()) + "source")) { 1617 setSource(getSource() + keys.get("seamark:" + ObjSTR.get(getObject()) + "source")); 1596 1618 } 1597 1619 if (keys.containsKey("seamark:height")) { … … 1814 1836 imgStr += "Monument"; 1815 1837 break; 1816 case LMK_ RADM:1838 case LMK_MAST: 1817 1839 imgStr += "RadioMast"; 1818 1840 break;
Note:
See TracChangeset
for help on using the changeset viewer.