Changeset 26968 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-10-25T20:55:16+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r26949 r26968 59 59 if (stackCol.size() != 0) 60 60 stackIdx++; 61 dlg.mark.addColour(ent, stackIdx, col); 61 if (stackIdx == 0) 62 dlg.mark.setColour(ent, col); 63 else 64 dlg.mark.addColour(ent, stackIdx, col); 62 65 stackCol.add(stackIdx, new JRadioButton(new ImageIcon(getClass().getResource("/images/ColourButton.png")))); 63 66 JRadioButton btnI = stackCol.get(stackIdx); … … 73 76 JRadioButton btnI = stackCol.get(i); 74 77 btnI.setBounds(2, (2 + (i * height)), 30, height); 75 btnI.setBackground( dlg.mark.ColMAP.get(dlg.mark.getColour(ent, i)));78 btnI.setBackground(oseam.seamarks.SeaMark.ColMAP.get(dlg.mark.getColour(ent, i))); 76 79 if (stackIdx == i) { 77 80 btnI.setBorderPainted(true); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r26951 r26968 123 123 topmarkButton.setVisible(true); 124 124 dlg.panelMain.moreButton.setVisible(true); 125 dlg.panelMain.topButton.setEnabled(true); 126 dlg.panelMain.fogButton.setEnabled(true); 127 dlg.panelMain.radButton.setEnabled(true); 128 dlg.panelMain.litButton.setEnabled(true); 125 129 } else { 126 130 topmarkButton.setVisible(false); 127 131 dlg.panelMain.moreButton.setVisible(false); 128 } 129 dlg.mark.paintSign(); 132 dlg.panelMain.topButton.setEnabled(false); 133 dlg.panelMain.fogButton.setEnabled(false); 134 dlg.panelMain.radButton.setEnabled(false); 135 dlg.panelMain.litButton.setEnabled(false); 136 } 130 137 } 131 138 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r26881 r26968 150 150 dlg.panelMain.moreButton.setVisible(false); 151 151 } 152 dlg.mark.paintSign();153 152 } 154 153 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r26949 r26968 282 282 283 283 public void clearSelections() { 284 panelMore.clearSelections(); 284 // panelMore.clearSelections(); 285 panelMore.setVisible(false); 286 moreButton.setVisible(false); 285 287 typeButtons.clearSelection(); 286 288 alType.actionPerformed(null); 287 moreButton.setVisible(false);288 289 nameBox.setText(""); 289 290 alName.actionPerformed(null); … … 298 299 miscButtons.clearSelection(); 299 300 alMisc.actionPerformed(null); 300 panelChan.clearSelections();301 panelHaz.clearSelections();302 panelSpec.clearSelections();303 panelLights.clearSelections();304 panelTop.clearSelections();305 panelFog.clearSelections();306 panelRadar.clearSelections();307 panelLit.clearSelections();301 // panelChan.clearSelections(); 302 // panelHaz.clearSelections(); 303 // panelSpec.clearSelections(); 304 // panelLights.clearSelections(); 305 // panelTop.clearSelections(); 306 // panelFog.clearSelections(); 307 // panelRadar.clearSelections(); 308 // panelLit.clearSelections(); 308 309 shapeIcon.setIcon(null); 309 310 lightIcon.setIcon(null); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMore.java
r26949 r26968 186 186 regionCButton.setBorderPainted(false); 187 187 } 188 dlg.mark.paintSign();189 188 } 190 189 }; -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPat.java
r26949 r26968 52 52 break; 53 53 } 54 dlg.mark.paintSign();55 54 } 56 55 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r26949 r26968 104 104 dlg.panelMain.litButton.setEnabled(false); 105 105 } 106 dlg.mark.paintSign();107 106 } 108 107 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java
r26949 r26968 52 52 dlg.panelMain.litButton.setEnabled(false); 53 53 } 54 dlg.mark.paintSign();55 54 } 56 55 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r26925 r26968 119 119 dlg.panelMain.moreButton.setVisible(false); 120 120 } 121 dlg.mark.paintSign();122 121 } 123 122 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r26949 r26968 104 104 dlg.panelMain.litButton.setEnabled(false); 105 105 } 106 dlg.mark.paintSign();107 106 } 108 107 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r26951 r26968 18 18 public SeaMark(OSeaMAction dia) { 19 19 dlg = dia; 20 dlg.panelMain.clearSelections();21 20 } 22 21 … … 405 404 case BEACON: 406 405 case FLOAT: 407 bodyColour.remove(i); 406 if (bodyColour.size() > i) 407 bodyColour.remove(i); 408 408 break; 409 409 case TOPMARK: 410 topColour.remove(i); 410 if (topColour.size() > i) 411 topColour.remove(i); 411 412 break; 412 413 case LIGHT: 413 lightColour.remove(i); 414 if (lightColour.size() > i) 415 lightColour.remove(i); 414 416 break; 415 417 } … … 887 889 888 890 switch (GrpMAP.get(getObject())) { 889 case NUL:890 dlg.panelMain.clearSelections();891 break;892 891 case LAT: 893 892 dlg.panelMain.chanButton.doClick();
Note:
See TracChangeset
for help on using the changeset viewer.