Changeset 30738 in osm for applications/editors/josm/plugins/smed/src/panels/PanelChan.java
- Timestamp:
- 2014-10-19T01:27:04+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/panels/PanelChan.java
r29894 r30738 28 28 panelStbd.setVisible(false); 29 29 panelSaw.setVisible(false); 30 dlg.panelMain.moreButton.setVisible(false);31 dlg.panelMain.saveButton.setEnabled(false);30 SmedAction.panelMain.moreButton.setVisible(false); 31 SmedAction.panelMain.saveButton.setEnabled(false); 32 32 topmarkButton.setVisible(false); 33 33 lightButton.setVisible(false); 34 Shp shp = dlg.panelMain.mark.getShape();34 Shp shp = SmedAction.panelMain.mark.getShape(); 35 35 if (portButton.isSelected()) { 36 dlg.panelMain.mark.setCategory(Cat.LAM_PORT);36 SmedAction.panelMain.mark.setCategory(Cat.LAM_PORT); 37 37 if (panelPort.shapes.containsKey(shp)) { 38 38 panelPort.shapes.get(shp).setSelected(true); 39 39 } else { 40 40 panelPort.shapeButtons.clearSelection(); 41 dlg.panelMain.mark.setShape(Shp.UNKSHP);41 SmedAction.panelMain.mark.setShape(Shp.UNKSHP); 42 42 } 43 43 panelPort.alShape.actionPerformed(null); … … 48 48 } 49 49 if (stbdButton.isSelected()) { 50 dlg.panelMain.mark.setCategory(Cat.LAM_STBD);50 SmedAction.panelMain.mark.setCategory(Cat.LAM_STBD); 51 51 if (panelStbd.shapes.containsKey(shp)) { 52 52 panelStbd.shapes.get(shp).setSelected(true); 53 53 } else { 54 54 panelStbd.shapeButtons.clearSelection(); 55 dlg.panelMain.mark.setShape(Shp.UNKSHP);55 SmedAction.panelMain.mark.setShape(Shp.UNKSHP); 56 56 } 57 57 panelStbd.alShape.actionPerformed(null); … … 62 62 } 63 63 if (prefStbdButton.isSelected()) { 64 dlg.panelMain.mark.setCategory(Cat.LAM_PSTBD);64 SmedAction.panelMain.mark.setCategory(Cat.LAM_PSTBD); 65 65 if (panelPort.shapes.containsKey(shp)) { 66 66 panelPort.shapes.get(shp).setSelected(true); 67 67 } else { 68 68 panelPort.shapeButtons.clearSelection(); 69 dlg.panelMain.mark.setShape(Shp.UNKSHP);69 SmedAction.panelMain.mark.setShape(Shp.UNKSHP); 70 70 } 71 71 panelPort.alShape.actionPerformed(null); … … 76 76 } 77 77 if (prefPortButton.isSelected()) { 78 dlg.panelMain.mark.setCategory(Cat.LAM_PPORT);78 SmedAction.panelMain.mark.setCategory(Cat.LAM_PPORT); 79 79 if (panelStbd.shapes.containsKey(shp)) { 80 80 panelStbd.shapes.get(shp).setSelected(true); 81 81 } else { 82 82 panelStbd.shapeButtons.clearSelection(); 83 dlg.panelMain.mark.setShape(Shp.UNKSHP);83 SmedAction.panelMain.mark.setShape(Shp.UNKSHP); 84 84 } 85 85 panelStbd.alShape.actionPerformed(null); … … 90 90 } 91 91 if (safeWaterButton.isSelected()) { 92 dlg.panelMain.mark.setCategory(Cat.NOCAT);92 SmedAction.panelMain.mark.setCategory(Cat.NOCAT); 93 93 panelSaw.setVisible(true); 94 94 if (panelSaw.shapes.containsKey(shp)) { … … 96 96 } else { 97 97 panelSaw.shapeButtons.clearSelection(); 98 dlg.panelMain.mark.setShape(Shp.UNKSHP);98 SmedAction.panelMain.mark.setShape(Shp.UNKSHP); 99 99 } 100 100 panelSaw.alShape.actionPerformed(null); … … 104 104 safeWaterButton.setBorderPainted(false); 105 105 } 106 topmarkButton.setVisible( dlg.panelMain.mark.testValid());107 lightButton.setVisible( dlg.panelMain.mark.testValid());108 dlg.panelMain.panelMore.syncPanel();106 topmarkButton.setVisible(SmedAction.panelMain.mark.testValid()); 107 lightButton.setVisible(SmedAction.panelMain.mark.testValid()); 108 SmedAction.panelMain.panelMore.syncPanel(); 109 109 } 110 110 }; … … 113 113 public void actionPerformed(java.awt.event.ActionEvent e) { 114 114 if (topmarkButton.isSelected()) { 115 if (SeaMark.GrpMAP.get( dlg.panelMain.mark.getObject()) == Grp.SAW) {116 dlg.panelMain.mark.setTopmark(Top.SPHERE);117 dlg.panelMain.mark.setTopPattern(Pat.NOPAT);118 dlg.panelMain.mark.setTopColour(Col.RED);115 if (SeaMark.GrpMAP.get(SmedAction.panelMain.mark.getObject()) == Grp.SAW) { 116 SmedAction.panelMain.mark.setTopmark(Top.SPHERE); 117 SmedAction.panelMain.mark.setTopPattern(Pat.NOPAT); 118 SmedAction.panelMain.mark.setTopColour(Col.RED); 119 119 } else { 120 120 switch (dlg.panelMain.mark.getCategory()) {
Note:
See TracChangeset
for help on using the changeset viewer.
