Changeset 24879 in osm for applications/editors/josm/plugins/smed/plugs/oseam
- Timestamp:
- 2010-12-26T13:28:36+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels
- Files:
-
- 2 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r24875 r24879 15 15 import oseam.panels.PanelPort; 16 16 import oseam.panels.PanelStbd; 17 import oseam.panels.PanelPrefPort; 18 import oseam.panels.PanelPrefStbd; 17 import oseam.panels.PanelSaw; 19 18 import oseam.seamarks.SeaMark; 20 19 import oseam.seamarks.SeaMark.Cat; … … 50 49 portButton.setBorderPainted(true); 51 50 panelPort.setVisible(true); 51 panelPort.perchButton.setVisible(true); 52 52 } else { 53 53 portButton.setBorderPainted(false); 54 54 panelPort.setVisible(false); 55 panelPort.clearSelections();56 55 } 57 56 if (stbdButton.isSelected()) { … … 68 67 stbdButton.setBorderPainted(true); 69 68 panelStbd.setVisible(true); 69 panelStbd.perchButton.setVisible(true); 70 70 } else { 71 71 stbdButton.setBorderPainted(false); 72 72 panelStbd.setVisible(false); 73 panelStbd.clearSelections();74 73 } 75 74 if (prefPortButton.isSelected()) { … … 79 78 if (dlg.mark.getRegion() == SeaMark.IALA_A) { 80 79 dlg.mark.setColour(Obj.BODY, Col.RED_GREEN_RED); 81 panelP refPort.regionAButton.doClick();80 panelPort.regionAButton.doClick(); 82 81 } else { 83 82 dlg.mark.setColour(Obj.BODY, Col.GREEN_RED_GREEN); 84 panelP refPort.regionBButton.doClick();83 panelPort.regionBButton.doClick(); 85 84 } 86 85 prefPortButton.setBorderPainted(true); 87 panelPrefPort.setVisible(true); 86 panelPort.setVisible(true); 87 panelPort.perchButton.setVisible(false); 88 88 } else { 89 89 prefPortButton.setBorderPainted(false); 90 panelPrefPort.setVisible(false); 91 panelPrefPort.clearSelections(); 90 if (!portButton.isSelected()) panelPort.setVisible(false); 92 91 } 93 92 if (prefStbdButton.isSelected()) { … … 97 96 if (dlg.mark.getRegion() == SeaMark.IALA_A) { 98 97 dlg.mark.setColour(Obj.BODY, Col.GREEN_RED_GREEN); 99 panel PrefStbd.regionAButton.doClick();98 panelStbd.regionAButton.doClick(); 100 99 } else { 101 100 dlg.mark.setColour(Obj.BODY, Col.RED_GREEN_RED); 102 panel PrefStbd.regionBButton.doClick();101 panelStbd.regionBButton.doClick(); 103 102 } 104 103 prefStbdButton.setBorderPainted(true); 105 panelPrefStbd.setVisible(true); 104 panelStbd.setVisible(true); 105 panelStbd.perchButton.setVisible(false); 106 106 } else { 107 107 prefStbdButton.setBorderPainted(false); 108 panelPrefStbd.setVisible(false); 109 panelPrefStbd.clearSelections(); 108 if (!stbdButton.isSelected()) panelStbd.setVisible(false); 110 109 } 111 110 if (safeWaterButton.isSelected()) { … … 114 113 dlg.mark.setColour(Obj.BODY, Col.RED_WHITE); 115 114 safeWaterButton.setBorderPainted(true); 116 panelSa feWater.setVisible(true);115 panelSaw.setVisible(true); 117 116 } else { 118 117 safeWaterButton.setBorderPainted(false); 119 panelSafeWater.setVisible(false); 120 panelSafeWater.clearSelections(); 118 panelSaw.setVisible(false); 121 119 } 122 120 if (dlg.mark != null) … … 127 125 public PanelPort panelPort = null; 128 126 public PanelStbd panelStbd = null; 129 public PanelPrefPort panelPrefPort = null; 130 public PanelPrefStbd panelPrefStbd = null; 131 public PanelSafeWater panelSafeWater = null; 127 public PanelSaw panelSaw = null; 132 128 133 129 public PanelChan(OSeaMAction dia) { … … 139 135 panelStbd.setBounds(new Rectangle(55, 0, 225, 160)); 140 136 panelStbd.setVisible(false); 141 panelPrefPort = new PanelPrefPort(dlg); 142 panelPrefPort.setBounds(new Rectangle(55, 0, 225, 160)); 143 panelPrefPort.setVisible(false); 144 panelPrefStbd = new PanelPrefStbd(dlg); 145 panelPrefStbd.setBounds(new Rectangle(55, 0, 225, 160)); 146 panelPrefStbd.setVisible(false); 147 panelSafeWater = new PanelSafeWater(dlg); 148 panelSafeWater.setBounds(new Rectangle(55, 0, 225, 160)); 149 panelSafeWater.setVisible(false); 137 panelSaw = new PanelSaw(dlg); 138 panelSaw.setBounds(new Rectangle(55, 0, 225, 160)); 139 panelSaw.setVisible(false); 150 140 this.setLayout(null); 151 141 this.add(panelPort, null); 152 142 this.add(panelStbd, null); 153 this.add(panelPrefPort, null); 154 this.add(panelPrefStbd, null); 155 this.add(panelSafeWater, null); 143 this.add(panelSaw, null); 156 144 this.add(getCatButton(portButton, 0, 0, 52, 32, "PortTip"), null); 157 145 this.add(getCatButton(stbdButton, 0, 32, 52, 32, "StbdTip"), null); … … 166 154 panelPort.clearSelections(); 167 155 panelStbd.clearSelections(); 168 panelPrefPort.clearSelections(); 169 panelPrefStbd.clearSelections(); 170 panelSafeWater.clearSelections(); 156 panelSaw.clearSelections(); 171 157 } 172 158 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java
r24875 r24879 26 26 import java.util.Iterator; 27 27 28 public class PanelSa feWaterextends JPanel {28 public class PanelSaw extends JPanel { 29 29 30 30 private OSeaMAction dlg; … … 53 53 }; 54 54 55 public PanelSa feWater(OSeaMAction dia) {55 public PanelSaw(OSeaMAction dia) { 56 56 dlg = dia; 57 57 this.setLayout(null);
Note:
See TracChangeset
for help on using the changeset viewer.