Changeset 26554 in osm for applications/editors/josm
- Timestamp:
- 2011-08-21T19:30:39+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 16 added
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r26545 r26554 32 32 private ActionListener alCat = new ActionListener() { 33 33 public void actionPerformed(java.awt.event.ActionEvent e) { 34 if (catButtons.getSelection() != null) {35 dlg.panelMain.topButton.setEnabled(true);36 dlg.panelMain.fogButton.setEnabled(true);37 dlg.panelMain.radButton.setEnabled(true);38 dlg.panelMain.litButton.setEnabled(true);39 dlg.panelMain.panelTop.enableAll(false);40 dlg.panelMain.panelTop.panelCol.enableAll(false);41 dlg.panelMain.panelTop.panelCol.blackButton.setEnabled(true);42 dlg.panelMain.panelTop.panelCol.blackButton.doClick();43 }44 34 if (northButton.isSelected()) { 45 35 dlg.mark.setCategory(Cat.CARD_NORTH); 46 36 dlg.mark.setColour(Ent.BODY, Col.BLACK); 47 37 dlg.mark.addColour(Ent.BODY, Col.YELLOW); 48 dlg.panelMain.panelTop.northTopButton.setEnabled(true);49 dlg.panelMain.panelTop.northTopButton.doClick();50 38 northButton.setBorderPainted(true); 51 39 } else { … … 56 44 dlg.mark.setColour(Ent.BODY, Col.YELLOW); 57 45 dlg.mark.addColour(Ent.BODY, Col.BLACK); 58 dlg.panelMain.panelTop.southTopButton.setEnabled(true);59 dlg.panelMain.panelTop.southTopButton.doClick();60 46 southButton.setBorderPainted(true); 61 47 } else { … … 67 53 dlg.mark.addColour(Ent.BODY, Col.YELLOW); 68 54 dlg.mark.addColour(Ent.BODY, Col.BLACK); 69 dlg.panelMain.panelTop.eastTopButton.setEnabled(true);70 dlg.panelMain.panelTop.eastTopButton.doClick();71 55 eastButton.setBorderPainted(true); 72 56 } else { … … 78 62 dlg.mark.addColour(Ent.BODY, Col.BLACK); 79 63 dlg.mark.addColour(Ent.BODY, Col.YELLOW); 80 dlg.panelMain.panelTop.westTopButton.setEnabled(true);81 dlg.panelMain.panelTop.westTopButton.doClick();82 64 westButton.setBorderPainted(true); 83 65 } else { … … 88 70 dlg.mark.addColour(Ent.BODY, Col.RED); 89 71 dlg.mark.addColour(Ent.BODY, Col.BLACK); 90 dlg.panelMain.panelTop.spheres2TopButton.setEnabled(true);91 dlg.panelMain.panelTop.spheres2TopButton.doClick();92 72 isolButton.setBorderPainted(true); 93 73 } else { … … 123 103 button.setBorderPainted(false); 124 104 } 105 if (dlg.mark != null) 106 dlg.mark.paintSign(); 125 107 } 126 108 };
Note:
See TracChangeset
for help on using the changeset viewer.