Changeset 26549 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-08-19T20:49:23+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r26545 r26549 38 38 private ActionListener alCat = new ActionListener() { 39 39 public void actionPerformed(java.awt.event.ActionEvent e) { 40 Shp shp = null;40 Shp shp = Shp.UNKNOWN; 41 41 if (dlg.mark != null) 42 42 shp = dlg.mark.getShape(); 43 if (portButton.isSelected() || prefPortButton.isSelected()) {44 dlg.panelMain.panelTop.enableAll(false);45 dlg.panelMain.panelTop.noTopButton.setEnabled(true);46 dlg.panelMain.panelTop.canTopButton.setEnabled(true);47 dlg.panelMain.panelTop.panelCol.enableAll(false);48 dlg.panelMain.panelLit.panelCol.enableAll(false);49 dlg.panelMain.panelLit.panelCol.offButton.setEnabled(true);50 if (dlg.mark.getRegion() == Reg.B) {51 dlg.panelMain.panelTop.panelCol.greenButton.setEnabled(true);52 dlg.panelMain.panelTop.panelCol.greenButton.doClick();53 dlg.panelMain.panelLit.panelCol.greenButton.setEnabled(true);54 dlg.panelMain.panelLit.panelCol.greenButton.doClick();55 } else {56 dlg.panelMain.panelTop.panelCol.redButton.setEnabled(true);57 dlg.panelMain.panelTop.panelCol.redButton.doClick();58 dlg.panelMain.panelLit.panelCol.redButton.setEnabled(true);59 dlg.panelMain.panelLit.panelCol.redButton.doClick();60 }61 }62 43 if (portButton.isSelected()) { 63 44 dlg.mark.setCategory(Cat.LAT_PORT); … … 68 49 dlg.mark.setShape(Shp.UNKNOWN); 69 50 } 70 if (dlg.mark.getRegion() == Reg.B) { 71 dlg.mark.setColour(Ent.BODY, Col.GREEN); 51 if (dlg.mark.getRegion() == Reg.C) { 52 panelPort.regionCButton.doClick(); 53 } else if (dlg.mark.getRegion() == Reg.B) { 72 54 panelPort.regionBButton.doClick(); 73 55 } else { 74 dlg.mark.setColour(Ent.BODY, Col.RED);75 56 panelPort.regionAButton.doClick(); 76 57 } … … 91 72 dlg.mark.setShape(Shp.UNKNOWN); 92 73 } 93 if (dlg.mark.getRegion() == Reg.B) { 94 dlg.mark.setColour(Ent.BODY, Col.GREEN); 95 dlg.mark.addColour(Ent.BODY, Col.RED); 96 dlg.mark.addColour(Ent.BODY, Col.GREEN); 74 if (dlg.mark.getRegion() == Reg.C) { 75 panelPort.regionCButton.doClick(); 76 } else if (dlg.mark.getRegion() == Reg.B) { 97 77 panelPort.regionBButton.doClick(); 98 78 } else { 99 dlg.mark.setColour(Ent.BODY, Col.RED);100 dlg.mark.addColour(Ent.BODY, Col.GREEN);101 dlg.mark.addColour(Ent.BODY, Col.RED);102 79 panelPort.regionAButton.doClick(); 103 80 } … … 115 92 panelPort.setVisible(false); 116 93 } 117 if (stbdButton.isSelected() || prefStbdButton.isSelected()) {118 dlg.panelMain.panelTop.enableAll(false);119 dlg.panelMain.panelTop.noTopButton.setEnabled(true);120 dlg.panelMain.panelTop.coneTopButton.setEnabled(true);121 dlg.panelMain.panelTop.panelCol.enableAll(false);122 dlg.panelMain.panelLit.panelCol.enableAll(false);123 dlg.panelMain.panelLit.panelCol.offButton.setEnabled(true);124 if (dlg.mark.getRegion() == Reg.B) {125 dlg.panelMain.panelTop.panelCol.redButton.setEnabled(true);126 dlg.panelMain.panelTop.panelCol.redButton.doClick();127 dlg.panelMain.panelLit.panelCol.redButton.setEnabled(true);128 dlg.panelMain.panelLit.panelCol.redButton.doClick();129 } else {130 dlg.panelMain.panelTop.panelCol.greenButton.setEnabled(true);131 dlg.panelMain.panelTop.panelCol.greenButton.doClick();132 dlg.panelMain.panelLit.panelCol.greenButton.setEnabled(true);133 dlg.panelMain.panelLit.panelCol.greenButton.doClick();134 }135 }136 94 if (stbdButton.isSelected()) { 137 95 dlg.mark.setCategory(Cat.LAT_STBD); … … 142 100 dlg.mark.setShape(Shp.UNKNOWN); 143 101 } 144 if (dlg.mark.getRegion() == Reg.B) { 145 dlg.mark.setColour(Ent.BODY, Col.RED); 102 if (dlg.mark.getRegion() == Reg.C) { 103 panelStbd.regionCButton.doClick(); 104 } else if (dlg.mark.getRegion() == Reg.B) { 146 105 panelStbd.regionBButton.doClick(); 147 106 } else { 148 dlg.mark.setColour(Ent.BODY, Col.GREEN);149 107 panelStbd.regionAButton.doClick(); 150 108 } … … 165 123 dlg.mark.setShape(Shp.UNKNOWN); 166 124 } 167 if (dlg.mark.getRegion() == Reg.B) { 168 dlg.mark.setColour(Ent.BODY, Col.RED); 169 dlg.mark.addColour(Ent.BODY, Col.GREEN); 170 dlg.mark.addColour(Ent.BODY, Col.RED); 125 if (dlg.mark.getRegion() == Reg.C) { 126 panelStbd.regionCButton.doClick(); 127 } else if (dlg.mark.getRegion() == Reg.B) { 171 128 panelStbd.regionBButton.doClick(); 172 129 } else { 173 dlg.mark.setColour(Ent.BODY, Col.GREEN);174 dlg.mark.addColour(Ent.BODY, Col.RED);175 dlg.mark.addColour(Ent.BODY, Col.GREEN);176 130 panelStbd.regionAButton.doClick(); 177 131 } … … 196 150 dlg.mark.setShape(Shp.UNKNOWN); 197 151 } 198 dlg.panelMain.panelTop.enableAll(false);199 dlg.panelMain.panelTop.noTopButton.setEnabled(true);200 dlg.panelMain.panelTop.sphereTopButton.setEnabled(true);201 dlg.panelMain.panelTop.panelCol.enableAll(false);202 dlg.panelMain.panelTop.panelCol.redButton.setEnabled(true);203 dlg.panelMain.panelTop.panelCol.redButton.doClick();204 152 dlg.mark.setColour(Ent.BODY, Col.RED); 205 153 dlg.mark.addColour(Ent.BODY, Col.WHITE); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r26423 r26549 15 15 import oseam.Messages; 16 16 import oseam.dialogs.OSeaMAction; 17 import oseam.seamarks.SeaMark.Cat; 18 import oseam.seamarks.SeaMark.Col; 19 import oseam.seamarks.SeaMark.Pat; 20 import oseam.seamarks.SeaMark.Ent; 17 21 import oseam.seamarks.SeaMark.Reg; 18 22 import oseam.seamarks.SeaMark.Shp; … … 30 34 if (regionAButton.isSelected()) { 31 35 dlg.mark.setRegion(Reg.A); 36 dlg.mark.setColour(Ent.BODY, Col.RED); 37 dlg.mark.setPattern(Ent.BODY, Pat.NONE); 38 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) { 39 dlg.mark.addColour(Ent.BODY, Col.GREEN); 40 dlg.mark.addColour(Ent.BODY, Col.RED); 41 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 42 } 32 43 regionAButton.setBorderPainted(true); 33 } else { 44 } else { 34 45 regionAButton.setBorderPainted(false); 35 46 } 36 47 if (regionBButton.isSelected()) { 37 48 dlg.mark.setRegion(Reg.B); 49 dlg.mark.setColour(Ent.BODY, Col.GREEN); 50 dlg.mark.setPattern(Ent.BODY, Pat.NONE); 51 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) { 52 dlg.mark.addColour(Ent.BODY, Col.RED); 53 dlg.mark.addColour(Ent.BODY, Col.GREEN); 54 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 55 } 38 56 regionBButton.setBorderPainted(true); 39 } else { 57 } else { 40 58 regionBButton.setBorderPainted(false); 41 59 } 42 60 if (regionCButton.isSelected()) { 43 61 dlg.mark.setRegion(Reg.C); 62 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) { 63 dlg.mark.setColour(Ent.BODY, Col.RED); 64 dlg.mark.addColour(Ent.BODY, Col.GREEN); 65 dlg.mark.addColour(Ent.BODY, Col.RED); 66 dlg.mark.addColour(Ent.BODY, Col.GREEN); 67 } else { 68 dlg.mark.setColour(Ent.BODY, Col.RED); 69 dlg.mark.addColour(Ent.BODY, Col.WHITE); 70 dlg.mark.addColour(Ent.BODY, Col.RED); 71 dlg.mark.addColour(Ent.BODY, Col.WHITE); 72 } 73 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 44 74 regionCButton.setBorderPainted(true); 45 } else { 75 } else { 46 76 regionCButton.setBorderPainted(false); 47 77 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r26423 r26549 15 15 import oseam.Messages; 16 16 import oseam.dialogs.OSeaMAction; 17 import oseam.seamarks.SeaMark.Cat; 18 import oseam.seamarks.SeaMark.Col; 19 import oseam.seamarks.SeaMark.Ent; 20 import oseam.seamarks.SeaMark.Pat; 17 21 import oseam.seamarks.SeaMark.Shp; 18 22 import oseam.seamarks.SeaMark.Obj; … … 30 34 if (regionAButton.isSelected()) { 31 35 dlg.mark.setRegion(Reg.A); 36 dlg.mark.setColour(Ent.BODY, Col.GREEN); 37 dlg.mark.setPattern(Ent.BODY, Pat.NONE); 38 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) { 39 dlg.mark.addColour(Ent.BODY, Col.RED); 40 dlg.mark.addColour(Ent.BODY, Col.GREEN); 41 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 42 } 32 43 regionAButton.setBorderPainted(true); 33 44 } else { … … 36 47 if (regionBButton.isSelected()) { 37 48 dlg.mark.setRegion(Reg.B); 49 dlg.mark.setColour(Ent.BODY, Col.RED); 50 dlg.mark.setPattern(Ent.BODY, Pat.NONE); 51 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) { 52 dlg.mark.addColour(Ent.BODY, Col.GREEN); 53 dlg.mark.addColour(Ent.BODY, Col.RED); 54 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 55 } 38 56 regionBButton.setBorderPainted(true); 39 57 } else { … … 42 60 if (regionCButton.isSelected()) { 43 61 dlg.mark.setRegion(Reg.C); 62 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) { 63 dlg.mark.setColour(Ent.BODY, Col.RED); 64 dlg.mark.addColour(Ent.BODY, Col.GREEN); 65 dlg.mark.addColour(Ent.BODY, Col.RED); 66 dlg.mark.addColour(Ent.BODY, Col.GREEN); 67 } else { 68 dlg.mark.setColour(Ent.BODY, Col.GREEN); 69 dlg.mark.addColour(Ent.BODY, Col.WHITE); 70 dlg.mark.addColour(Ent.BODY, Col.GREEN); 71 dlg.mark.addColour(Ent.BODY, Col.WHITE); 72 } 73 dlg.mark.setPattern(Ent.BODY, Pat.HORIZ); 44 74 regionCButton.setBorderPainted(true); 45 75 } else { -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r26547 r26549 5 5 import java.util.ArrayList; 6 6 import java.util.EnumMap; 7 import java.util.EnumSet;8 7 import java.util.Map; 9 import java.util.HashMap;10 import java.util.regex.Matcher;11 import java.util.regex.Pattern;12 8 13 9 import org.openstreetmap.josm.Main; … … 15 11 import org.openstreetmap.josm.command.ChangePropertyCommand; 16 12 17 import oseam.Messages;18 13 import oseam.dialogs.OSeaMAction; 19 14 import oseam.seamarks.Light; … … 41 36 } 42 37 43 private String name ;38 private String name = ""; 44 39 45 40 public String getName() { … … 348 343 } 349 344 350 private Pat bodyPattern ;351 private Pat topPattern ;352 private Pat dayPattern ;345 private Pat bodyPattern = Pat.NONE; 346 private Pat topPattern = Pat.NONE; 347 private Pat dayPattern = Pat.NONE; 353 348 354 349 public Pat getPattern(Ent ent) { … … 581 576 582 577 for (Obj obj : ObjMAP.keySet()) { 578 if (keys.containsKey("seamark:" + ObjMAP.get(obj) + ":system")) { 579 str = keys.get("seamark:" + ObjMAP.get(obj) + ":system"); 580 if (str.equals("iala-a")) 581 setRegion(Reg.A); 582 else if (str.equals("iala-b")) 583 setRegion(Reg.B); 584 else setRegion(Reg.C); 585 } 586 } 587 588 for (Obj obj : ObjMAP.keySet()) { 583 589 if (keys.containsKey("seamark:" + ObjMAP.get(obj) + ":category")) { 584 590 str = keys.get("seamark:" + ObjMAP.get(obj) + ":category"); … … 602 608 } 603 609 } 604 } if (getShape() == Shp.UNKNOWN) { 610 } 611 if (getShape() == Shp.UNKNOWN) { 605 612 if (EntMAP.get(getObject()) == Ent.BEACON) 606 613 setShape(Shp.BEACON); … … 608 615 setShape(Shp.FLOAT); 609 616 } 610 611 617 612 618 for (Obj obj : ObjMAP.keySet()) { … … 635 641 } 636 642 } 637 638 switch (GrpMAP.get( dlg.mark.getObject())) {643 644 switch (GrpMAP.get(getObject())) { 639 645 case NUL: 640 646 dlg.panelMain.clearSelections(); … … 758 764 break; 759 765 default: 760 if (EntMAP.get( dlg.mark.getObject()) == Ent.BEACON)766 if (EntMAP.get(getObject()) == Ent.BEACON) 761 767 imgStr += "Beacon"; 762 else768 if (EntMAP.get(getObject()) == Ent.BUOY) 763 769 imgStr += "Pillar"; 764 770 } 765 for (Col col : bodyColour) { 766 switch (col) { 767 case WHITE: 768 imgStr += "_White"; 769 break; 770 case RED: 771 imgStr += "_Red"; 772 break; 773 case ORANGE: 774 imgStr += "_Orange"; 775 break; 776 case AMBER: 777 imgStr += "_Amber"; 778 break; 779 case YELLOW: 780 imgStr += "_Yellow"; 781 break; 782 case GREEN: 783 imgStr += "_Green"; 784 break; 785 case BLUE: 786 imgStr += "_Blue"; 787 break; 788 case VIOLET: 789 imgStr += "_Violet"; 790 break; 791 case BLACK: 792 imgStr += "_Black"; 793 break; 771 if (!imgStr.equals("/images/")) { 772 for (Col col : bodyColour) { 773 switch (col) { 774 case WHITE: 775 imgStr += "_White"; 776 break; 777 case RED: 778 imgStr += "_Red"; 779 break; 780 case ORANGE: 781 imgStr += "_Orange"; 782 break; 783 case AMBER: 784 imgStr += "_Amber"; 785 break; 786 case YELLOW: 787 imgStr += "_Yellow"; 788 break; 789 case GREEN: 790 imgStr += "_Green"; 791 break; 792 case BLUE: 793 imgStr += "_Blue"; 794 break; 795 case VIOLET: 796 imgStr += "_Violet"; 797 break; 798 case BLACK: 799 imgStr += "_Black"; 800 break; 801 } 794 802 } 795 803 } … … 817 825 818 826 for (String str : node.getKeys().keySet()) { 819 if (str. matches("^seamark:"))827 if (str.trim().matches("^seamark:\\S+")) 820 828 Main.main.undoRedo.add(new ChangePropertyCommand(node, str, null)); 821 829 } 822 830 823 if (! name.isEmpty())824 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:name", name));831 if (!getName().isEmpty()) 832 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:name", getName())); 825 833 826 834 String objStr = ObjMAP.get(object); … … 834 842 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":shape", ShpMAP.get(shape))); 835 843 836 str = ColMAP.get(bodyColour); 837 if (str != null) 844 if (getColour(Ent.BODY, 0) != Col.UNKNOWN) { 845 str = ColMAP.get(getColour(Ent.BODY, 0)); 846 for (int i = 1; bodyColour.size() > i; i++) { 847 str += (";" + ColMAP.get(getColour(Ent.BODY, i))); 848 } 838 849 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":colour", str)); 850 } 851 852 if (getPattern(Ent.BODY) != Pat.NONE) { 853 str = PatMAP.get(getPattern(Ent.BODY)); 854 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":colour_pattern", str)); 855 } 856 857 if (GrpMAP.get(object) == Grp.LAT) { 858 switch (region) { 859 case A: 860 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":system", "iala-a")); 861 break; 862 case B: 863 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":system", "iala-b")); 864 break; 865 case C: 866 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" + objStr + ":system", "other")); 867 break; 868 } 869 } 870 839 871 /* 840 872 * switch (bodyColour) { case RED_GREEN_RED: case GREEN_RED_GREEN: case … … 847 879 */} 848 880 849 /* String str = TopMAP.get(topShape);850 if (str != null) {851 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:topmark:shape", str));852 853 str = ColMAP.get(topColour);854 if (str != null)855 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:topmark:colour", str));856 }857 858 str = DayMAP.get(dayShape);859 if (str != null) {860 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:daymark:shape", str));861 862 str = ColMAP.get(dayColour);863 if (str != null)864 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:daymark:colour", str));865 }866 881 /* 867 * Col colour; if (isFired()) { if ((colour = lightColour[0]) != 868 * Col.UNKNOWN) if (colour == Col.RED) { Main.main.undoRedo.add(new 882 * String str = TopMAP.get(topShape); if (str != null) { 883 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 884 * "seamark:topmark:shape", str)); 885 * 886 * str = ColMAP.get(topColour); if (str != null) Main.main.undoRedo.add(new 887 * ChangePropertyCommand(node, "seamark:topmark:colour", str)); } 888 * 889 * str = DayMAP.get(dayShape); if (str != null) { Main.main.undoRedo.add(new 890 * ChangePropertyCommand(node, "seamark:daymark:shape", str)); 891 * 892 * str = ColMAP.get(dayColour); if (str != null) Main.main.undoRedo.add(new 893 * ChangePropertyCommand(node, "seamark:daymark:colour", str)); } /* Col 894 * colour; if (isFired()) { if ((colour = lightColour[0]) != Col.UNKNOWN) if 895 * (colour == Col.RED) { Main.main.undoRedo.add(new 869 896 * ChangePropertyCommand(node, "seamark:light:colour", "red")); } else if 870 897 * (colour.equals("G")) { Main.main.undoRedo.add(new … … 915 942 * i + ":sector_end", Bearing2[i])); } } 916 943 */ 917 /* if (hasRadar()) { 918 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_reflector", "yes")); 919 } 920 if (hasRacon()) { 921 switch (RaType) { 922 case RACON: 923 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_transponder:category", "racon")); 924 if (!getRaconGroup().isEmpty()) 925 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_transponder:group", getRaconGroup())); 926 break; 927 case RAMARK: 928 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_transponder:category", "ramark")); 929 break; 930 case LEADING: 931 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_transponder:category", "leading")); 932 break; 933 default: 934 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:radar_transponder", "yes")); 935 } 936 } 937 if (hasFog()) { 938 switch (getFogSound()) { 939 case HORN: 940 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "horn")); 941 break; 942 case SIREN: 943 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "siren")); 944 break; 945 case DIA: 946 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "diaphone")); 947 break; 948 case BELL: 949 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "bell")); 950 break; 951 case WHIS: 952 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "whistle")); 953 break; 954 case GONG: 955 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "gong")); 956 break; 957 case EXPLOS: 958 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:category", "explosive")); 959 break; 960 default: 961 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal", "yes")); 962 } 963 if (!getFogGroup().isEmpty()) 964 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:group", getFogGroup())); 965 if (!getFogPeriod().isEmpty()) 966 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:fog_signal:period", getFogPeriod())); 967 } 968 */ } 944 /* 945 * if (hasRadar()) { Main.main.undoRedo.add(new ChangePropertyCommand(node, 946 * "seamark:radar_reflector", "yes")); } if (hasRacon()) { switch (RaType) { 947 * case RACON: Main.main.undoRedo.add(new ChangePropertyCommand(node, 948 * "seamark:radar_transponder:category", "racon")); if 949 * (!getRaconGroup().isEmpty()) Main.main.undoRedo.add(new 950 * ChangePropertyCommand(node, "seamark:radar_transponder:group", 951 * getRaconGroup())); break; case RAMARK: Main.main.undoRedo.add(new 952 * ChangePropertyCommand(node, "seamark:radar_transponder:category", 953 * "ramark")); break; case LEADING: Main.main.undoRedo.add(new 954 * ChangePropertyCommand(node, "seamark:radar_transponder:category", 955 * "leading")); break; default: Main.main.undoRedo.add(new 956 * ChangePropertyCommand(node, "seamark:radar_transponder", "yes")); } } if 957 * (hasFog()) { switch (getFogSound()) { case HORN: 958 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 959 * "seamark:fog_signal:category", "horn")); break; case SIREN: 960 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 961 * "seamark:fog_signal:category", "siren")); break; case DIA: 962 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 963 * "seamark:fog_signal:category", "diaphone")); break; case BELL: 964 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 965 * "seamark:fog_signal:category", "bell")); break; case WHIS: 966 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 967 * "seamark:fog_signal:category", "whistle")); break; case GONG: 968 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 969 * "seamark:fog_signal:category", "gong")); break; case EXPLOS: 970 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 971 * "seamark:fog_signal:category", "explosive")); break; default: 972 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 973 * "seamark:fog_signal", "yes")); } if (!getFogGroup().isEmpty()) 974 * Main.main.undoRedo.add(new ChangePropertyCommand(node, 975 * "seamark:fog_signal:group", getFogGroup())); if 976 * (!getFogPeriod().isEmpty()) Main.main.undoRedo.add(new 977 * ChangePropertyCommand(node, "seamark:fog_signal:period", 978 * getFogPeriod())); } 979 */} 969 980 970 981 }
Note:
See TracChangeset
for help on using the changeset viewer.