Changeset 27124 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-11-22T17:37:01+01:00 (13 years ago)
- 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/panels/PanelLit.java
r27118 r27124 81 81 public void actionPerformed(java.awt.event.ActionEvent e) { 82 82 dlg.mark.setLightAtt(Att.MLT, 0, multipleBox.getText()); 83 dlg.mark.paintSign(); 83 84 } 84 85 }; … … 94 95 } 95 96 if (dlg.mark.getLightAtt(Att.LIT, 0) == Lit.DIR) { 97 dlg.mark.setLightAtt(Att.MLT, 0, ""); 98 multipleBox.setText(""); 96 99 orientationLabel.setVisible(true); 97 100 orientationBox.setVisible(true); … … 99 102 multipleBox.setVisible(false); 100 103 } else if ((dlg.mark.getLightAtt(Att.LIT, 0) == Lit.VERT) || (dlg.mark.getLightAtt(Att.LIT, 0) == Lit.HORIZ)) { 104 dlg.mark.setLightAtt(Att.ORT, 0, ""); 105 orientationBox.setText(""); 101 106 orientationLabel.setVisible(false); 102 107 orientationBox.setVisible(false); … … 104 109 multipleBox.setVisible(true); 105 110 } else { 111 dlg.mark.setLightAtt(Att.MLT, 0, ""); 112 multipleBox.setText(""); 113 dlg.mark.setLightAtt(Att.ORT, 0, ""); 114 orientationBox.setText(""); 106 115 orientationLabel.setVisible(false); 107 116 orientationBox.setVisible(false); … … 109 118 multipleBox.setVisible(false); 110 119 } 120 dlg.mark.paintSign(); 111 121 } 112 122 }; -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27118 r27124 509 509 510 510 public enum Exh { 511 UNKNOWN, H24, DAY, NIGHT, FOG 511 UNKNOWN, H24, DAY, NIGHT, FOG, WARN, STORM 512 512 } 513 513 … … 519 519 ExhSTR.put(Exh.NIGHT, "night"); 520 520 ExhSTR.put(Exh.FOG, "fog"); 521 ExhSTR.put(Exh.WARN, "warning"); 522 ExhSTR.put(Exh.STORM, "storm"); 521 523 } 522 524 … … 1971 1973 switch ((Col) getLightAtt(Att.COL, 0)) { 1972 1974 case RED: 1973 c += " 1975 c += ".R"; 1974 1976 break; 1975 1977 case GREEN: 1976 c += " 1978 c += ".G"; 1977 1979 break; 1978 1980 case AMBER: 1979 c += " 1981 c += ".Am"; 1980 1982 break; 1981 1983 case ORANGE: 1982 c += " 1984 c += ".Or"; 1983 1985 break; 1984 1986 case BLUE: 1985 c += " 1987 c += ".Bu"; 1986 1988 break; 1987 1989 case VIOLET: 1988 c += " Vi"; 1989 break; 1990 c += ".Vi"; 1991 break; 1992 } 1993 tmp = (String) getLightAtt(Att.MLT, 0); 1994 if (!tmp.isEmpty()) 1995 c = tmp + c; 1996 if (dlg.mark.getLightAtt(Att.LIT, 0) != Lit.UNKNOWN) { 1997 switch ((Lit)dlg.mark.getLightAtt(Att.LIT, 0)) { 1998 case VERT: 1999 c += "(Vert)"; 2000 break; 2001 case HORIZ: 2002 c += "(Horiz)"; 2003 break; 2004 } 1990 2005 } 1991 2006 tmp = (String) getLightAtt(Att.PER, 0);
Note:
See TracChangeset
for help on using the changeset viewer.