Changeset 30738 in osm for applications/editors/josm/plugins/smed/src/panels/PanelSaw.java
- Timestamp:
- 2014-10-19T01:27:04+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/panels/PanelSaw.java
r30737 r30738 27 27 JRadioButton button = shapes.get(shp); 28 28 if (button.isSelected()) { 29 dlg.panelMain.mark.setShape(shp);30 dlg.panelMain.mark.setObject(objects.get(shp));29 SmedAction.panelMain.mark.setShape(shp); 30 SmedAction.panelMain.mark.setObject(objects.get(shp)); 31 31 button.setBorderPainted(true); 32 32 } else 33 33 button.setBorderPainted(false); 34 34 } 35 if ( dlg.panelMain.mark.testValid()) {36 dlg.panelMain.panelChan.topmarkButton.setVisible(true);37 dlg.panelMain.mark.setObjPattern(Pat.VSTRP);38 dlg.panelMain.mark.setObjColour(Col.RED);39 dlg.panelMain.mark.addObjColour(Col.WHITE);35 if (SmedAction.panelMain.mark.testValid()) { 36 SmedAction.panelMain.panelChan.topmarkButton.setVisible(true); 37 SmedAction.panelMain.mark.setObjPattern(Pat.VSTRP); 38 SmedAction.panelMain.mark.setObjColour(Col.RED); 39 SmedAction.panelMain.mark.addObjColour(Col.WHITE); 40 40 } else { 41 dlg.panelMain.panelChan.topmarkButton.setVisible(false);41 SmedAction.panelMain.panelChan.topmarkButton.setVisible(false); 42 42 } 43 dlg.panelMain.panelMore.syncPanel();43 SmedAction.panelMain.panelMore.syncPanel(); 44 44 } 45 45 }; … … 58 58 for (Shp shp : shapes.keySet()) { 59 59 JRadioButton button = shapes.get(shp); 60 if ( dlg.panelMain.mark.getShape() == shp) {60 if (SmedAction.panelMain.mark.getShape() == shp) { 61 61 button.setBorderPainted(true); 62 62 } else 63 63 button.setBorderPainted(false); 64 64 } 65 dlg.panelMain.mark.testValid();65 SmedAction.panelMain.mark.testValid(); 66 66 } 67 67
Note:
See TracChangeset
for help on using the changeset viewer.
