Changeset 27317 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-12-26T16:09:04+01: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
r27314 r27317 105 105 } 106 106 topmarkButton.setVisible(dlg.panelMain.mark.testValid()); 107 alTop.actionPerformed(null);108 107 lightButton.setVisible(dlg.panelMain.mark.testValid()); 109 alLit.actionPerformed(null);108 dlg.panelMain.panelMore.syncPanel(); 110 109 } 111 110 }; -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r27314 r27317 68 68 isolButton.setBorderPainted(false); 69 69 } 70 alTop.actionPerformed(null);71 alLit.actionPerformed(null);70 topmarkButton.setVisible(dlg.panelMain.mark.testValid()); 71 lightButton.setVisible(dlg.panelMain.mark.testValid()); 72 72 dlg.panelMain.panelMore.syncPanel(); 73 73 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r27230 r27317 74 74 public void actionPerformed(java.awt.event.ActionEvent e) { 75 75 if (chanButton.isSelected()) { 76 mark.clearSign();77 76 chanButton.setBorderPainted(true); 77 panelChan.syncPanel(); 78 78 panelChan.setVisible(true); 79 79 } else { … … 82 82 } 83 83 if (hazButton.isSelected()) { 84 mark.clearSign();85 84 hazButton.setBorderPainted(true); 85 panelHaz.syncPanel(); 86 86 panelHaz.setVisible(true); 87 87 } else { … … 90 90 } 91 91 if (specButton.isSelected()) { 92 mark.clearSign();93 92 specButton.setBorderPainted(true); 93 panelSpec.syncPanel(); 94 94 panelSpec.setVisible(true); 95 95 } else { … … 98 98 } 99 99 if (lightsButton.isSelected()) { 100 mark.clearSign();101 100 lightsButton.setBorderPainted(true); 101 panelLights.syncPanel(); 102 102 panelLights.setVisible(true); 103 103 } else { -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27314 r27317 636 636 637 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()); 638 if (i == 0) { 639 clrLight(); 640 } else { 641 sectors.add(i, sector.clone()); 643 642 } 644 643 } … … 654 653 if (sectors.size() > i) 655 654 sectors.remove(i); 655 repaint(); 656 656 } 657 657 … … 660 660 addLight(); 661 661 setLightRef(""); 662 repaint(); 662 663 } 663 664 … … 1508 1509 if (keys.containsKey("seamark:light" + secStr + ":category")) { 1509 1510 str = keys.get("seamark:light" + secStr + ":category"); 1511 if (str.equals("vert")) 1512 str = "vertical"; 1513 if (str.equals("horiz")) 1514 str = "horizontal"; 1510 1515 for (Lit lit : LitSTR.keySet()) 1511 1516 if (LitSTR.get(lit).equals(str))
Note:
See TracChangeset
for help on using the changeset viewer.